JDK-4504275 : CORBA boolean type unions do not generate compilable code from idlj
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba:idl
  • Affected Version: 1.4.0,1.4.2,5.0u39,6u39,7u13,8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,windows_nt
  • CPU: x86
  • Submitted: 2001-09-18
  • Updated: 2013-09-12
  • Resolved: 2013-04-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
6u60Fixed 7u40Fixed 8 b89Fixed
Name: bsT130419			Date: 09/18/2001

$ java -version
java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

The java code generated from an idl union where the switch is the boolean type
will not compile with javac.  The following example IDL will compile java code
with idlj, but when we run the java code through javac it fails with syntax
--- example IDL follows --------------
module xyz
        union LongTypeOpt switch (boolean) {
                case TRUE: long value;

(Review ID: 132062) 
###@###.### 11/2/04 18:27 GMT

Reopen due to customer escalation.

EVALUATION Old bug with no customer demand, and we have no resources for fixing this. Closing.

EVALUATION The IDL compiler backend method UnionGen.writeVerifyDefault needs to have a case added for boolean discriminators.

WORK AROUND Name: bsT130419 Date: 09/18/2001 No work around is possible as the IDL is part of an ANSI standard. IDL can not be changed, else the client and server will not operate properly together. ======================================================================