United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8011986 [corba] idlj generates read/write union helper methods that throw wrong exception in some cases
JDK-8011986 : [corba] idlj generates read/write union helper methods that throw wrong exception in some cases

Details
Type:
Bug
Submit Date:
2013-04-11
Status:
Resolved
Updated Date:
2013-06-22
Project Name:
JDK
Resolved Date:
2013-04-29
Component:
other-libs
OS:
generic
Sub-Component:
corba
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

Description
IDL-to-java code generator generates read/write union helper methods that throw org.omg.CORBA.BAD_OPERATION in cases when boolean discriminator's value isn't matched. This is wrong.

According to section "7.11.2.2  Discriminated Unions" [1]:

  It is not required that all possible values of the union discriminator be
  listed in the <switch_body>. The value of a union is the value of the
  discriminator together with one of the following:

  ??? If the discriminator value was explicitly listed in a case statement, the
  value of the element associated with that case statement;

  ??? If a default case label was specified, the value of the element associated
  with the default case label;

  ??? No additional value.

[1] http://www.omg.org/spec/CORBA/3.2/Interfaces/PDF/

                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/tl/corba/rev/846aaf02e516
User:  dmeetry
Date:  2013-04-29 12:52:14 +0000

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

                                     
2013-05-07



Hardware and Software, Engineered to Work Together