United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4504275 CORBA boolean type unions do not generate compilable code from idlj
JDK-4504275 : CORBA boolean type unions do not generate compilable code from idlj

Details
Type:
Bug
Submit Date:
2001-09-18
Status:
Closed
Updated Date:
2013-09-12
Project Name:
JDK
Resolved Date:
2013-04-29
Component:
other-libs
OS:
windows_nt,linux
Sub-Component:
corba:idl
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0,1.4.2,5.0u39,6u39,7u13,8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
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
errors.
--- example IDL follows --------------
module xyz
{
        union LongTypeOpt switch (boolean) {
                case TRUE: long value;
        };

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

                                    

Comments
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.
======================================================================
                                     
2004-06-11
EVALUATION

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

Old bug with no customer demand, and we have no resources for fixing this.
Closing.
                                     
2008-10-29
Reopen due to customer escalation.
                                     
2013-02-10
URL:   http://hg.openjdk.java.net/jdk8/tl/corba/rev/8f0a461776a9
User:  dmeetry
Date:  2013-04-29 12:45:49 +0000

                                     
2013-04-29
URL:   http://hg.openjdk.java.net/jdk8/jdk8/corba/rev/8f0a461776a9
User:  lana
Date:  2013-05-07 18:21:26 +0000

                                     
2013-05-07



Hardware and Software, Engineered to Work Together