I2JAV 1.1 NO IDEA Avatar
  1. OMG Issue

I2JAV11 — Package name issue

  • Key: I2JAV11-148
  • Legacy Issue Number: 5696
  • Status: closed  
  • Source: Triodia Technologies Pty Ltd ( Michi Henning)
  • Summary:

    This is an issue for the Java RTF. Related issue in Core RTF is Issue
    5327.

    Originally from Michi Henning:

    suppose the following [pseudo-]idl:

    #pragma prefix "2abc.def"

    module xyz {
    interface q

    {...}

    ;
    };

    It would generate a Java class 'q' within package 'def.2abc.xyz'.
    The package name '2abc' is not that popular with the java compiler
    since it starts with a digit.

    Discussion from Jishnu Mukerji:

    It seems to me that this is more of a language mapping issue. I don't
    think that the Repository Ids have any requirement to be of the same
    shape as a valid IDL identifier. It would be kind of hard to have GUIDs
    as RepId if that were the case.

    But even for IDL type RepIds 12345.com seems to be a perfectly good
    domain name as is 2ab.com. I don't see why these perfectly valid
    domain names should be disallowed because the Java language mapping
    is unable to deal with them.

    Further discussion from Michi Henning:

    One way to fix it would be to state that:

    1) For the Java mapping, any prefix that starts with a digit gets
    translated with an underscore prefix, so 2ab would turn into
    _2ab for the Java mapping.

    2) Characters that can appear in a prefix pragma are limited to
    some set we'd have to agree on. (Probably the same as for IDL
    identifiers, plus '.' and possibly hyphen ('-').)

    Further discussion from Jishnu Mukerji:

    Item 1 in Michi's list needs to be handled by the IDL-Java RTF. This
    message to issues@omg.org is requesting the creation of an issue
    covering this item for the Java RTF.

    Item 2 can be taken care of in the resolution for Core Issue 5327.

  • Reported: I2JAV 1.0 — Wed, 23 Oct 2002 04:00 GMT
  • Disposition: Resolved — I2JAV 1.1
  • Disposition Summary:

    close no change

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