I2JAV 1.1 NO IDEA Avatar
  1. OMG Issue

I2JAV11 — Need clarification on custructor(s) for stream-based

  • Key: I2JAV11-124
  • Legacy Issue Number: 3707
  • Status: closed  
  • Source: Borland Software Corporation ( Vijaykumar Natarajan)
  • Summary:

    In OMG IDL to Java Language Mapping spec, $1.21.5.1 "Stub/Skeleton Architecture" there
    are examples of stream- and DSI- based stubs/skeletons. These examples do not
    provide any constructors (this mean thay have only default ones). But, it seems that
    signatures of constructors should be clarified, because orb vendors have a freedom in
    defining these signatures. For example, the VisiBroker's 4.0 idl2java compiler
    generates stubs that have only default constructors, but in jdk 1.2 there stubs that
    have only constructors that take org.omg.CORBA.portable.Delegate as a single
    parameter. This leads to impossibility for generated stubs to extend the jdk 1.2
    provided ones.

    Since the example is not normative, vendors are free to add whatever constructors they
    would like. This makes it impossible to generate code for interfaces that are
    inherited from interfaces for which code is generated by another vendor, which is true
    especially in the case of Java 2 and its inclusion of some stubs.

    I would like to propose the following:
    To Seciton 1.21.5.1 under subheading Stub Design, add a bullet:

    Stubs are not required to define any constructors. However, if they do define special
    constructors, a constructor with no arguments must also be defined.

    This ensures that all stubs are guaranteed to have the no argument constructor
    irrespective of whether they have other constructors or not.

  • Reported: I2JAV 1.0 — Wed, 14 Jun 2000 04:00 GMT
  • Disposition: Resolved — I2JAV 1.1
  • Disposition Summary:

    see below

  • Updated: Fri, 6 Mar 2015 21:38 GMT