Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 992 - Can no longer name an exception Timeout if it has a data member
Summary: Can no longer name an exception Timeout if it has a data member
Status: RESOLVED INVALID
Alias: None
Product: JacORB
Classification: Unclassified
Component: IDL compiler (show other bugs)
Version: 3.5
Hardware: Other Linux
: P5 minor
Assignee: Mailinglist to track bugs
URL:
Depends on:
Blocks:
 
Reported: 2014-09-10 18:00 UTC by David Rodenbaugh
Modified: 2014-10-03 04:57 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Rodenbaugh 2014-09-10 18:00:45 UTC
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
Comment 1 Nick Cross 2014-09-11 11:54:59 UTC
I believe this happened as it clashes with the built in timeout exception.