[Bug 992] New: Can no longer name an exception Timeout if it has a data member

[email protected] Wed, 10 Sep 2014 22:00:45 +0000
Newsgroups gmane.comp.corba.jacorb.bugs
Message-ID <[email protected]/bugzilla/>
http://www.jacorb.org/bugzilla/show_bug.cgi?id=992

            Bug ID: 992
           Summary: Can no longer name an exception Timeout if it has a
                    data member
           Product: JacORB
           Version: 3.5
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: IDL compiler
          Assignee: [email protected]
          Reporter: [email protected]

Starting with JacORB 2.3.1 and thru 3.5, I found that I can no longer define an
exception called "Timeout" in idl that has a data member.
The generated code will not compile.
The problem goes away if I rename the exception something other than "Timeout".
It also goes away if I remove the data member, in this case "long id;".
Does this sound like a bug or is "Timeout" a reserved name?

   exception Timeout
   {
      long id;
   };

    [javac] Compiling 2 source files to /home/davidr/crss2/build/classes
    [javac] TimeoutHelper.java:62: cannot find symbol
    [javac] symbol  : constructor Timeout(java.lang.String,int)
    [javac] location: class Timeout
    [javac]             final Timeout result = new Timeout(id, x0);
    [javac]                                    ^
    [javac] TimeoutHelper.java:68: cannot find symbol
    [javac] symbol  : variable id
    [javac] location: class Timeout
    [javac]             out.write_long(s.id);
    [javac]                             ^
    [javac] 2 errors

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
jacorb-bugs mailing list
[email protected]
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-bugs