[jacorb-bugs] [Bug 992] New: Can no longer name an exception Timeout if it has a data member
bugzilla-daemon at jacorb.org
bugzilla-daemon at jacorb.org
Thu Sep 11 00:00:45 CEST 2014
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: jacorb-bugs at lists.spline.inf.fu-berlin.de
Reporter: David.Rodenbaugh at digitalglobe.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-bugs/attachments/20140910/86e4217d/attachment.html>
More information about the jacorb-bugs
mailing list