| Summary: | Can no longer name an exception Timeout if it has a data member | ||
|---|---|---|---|
| Product: | JacORB | Reporter: | David Rodenbaugh <David.Rodenbaugh> |
| Component: | IDL compiler | Assignee: | Mailinglist to track bugs <jacorb-bugs> |
| Status: | RESOLVED INVALID | ||
| Severity: | minor | CC: | jacorb |
| Priority: | P5 | ||
| Version: | 3.5 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
I believe this happened as it clashes with the built in timeout exception. |
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