This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 33761 - Wrong code generation when a boolean type is used as discriminator
Summary: Wrong code generation when a boolean type is used as discriminator
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: corba (show other bugs)
Version: 3.x
Hardware: Sun Other
: P4 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-20 11:39 UTC by Antonin Nebuzelsky
Modified: 2009-12-21 07:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2003-05-20 11:39:40 UTC
Description: 
Wrong code generation when a boolean type is used as discriminator. When the
following statement in a idl file was compiled, union FloatTypeOpt switch
(boolean) { case TRUE: float value; }; the folloving code was generated in the
FloatTypeOpt.java file:: private void verifyDefault( boolean value ) { switch
(value) { case true: throw new org.omg.CORBA.BAD_OPERATION() ; default: return;
} } When java file is compiled the switch on a boolean is not allowed.

Evaluation: 
Not a showstopper for Nevada/NB3.5. Works for me with JDK 1.4.1 (supported JDK
for Nevada). This is probably a problem of JDK 1.3 IDL compiler.
xxx@xxxx 2003-04-07

(moved from bugtraq (#4751204)).
A comment.
Comment 1 Quality Engineering 2009-12-21 07:10:22 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team