JDK-8032884 : Globalbindings optionalProperty="primitive" does not work when minOccurs=0
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxb
  • Affected Version: 7u3
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-01-28
  • Updated: 2016-07-01
  • Resolved: 2014-06-09
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.
JDK 9
9 masterFixed
Related Reports
Duplicate :  
Description
If we have an element type= xsd:boolean minOccurs=0 , then jaxb conversion 
converts it to java.lang.Boolean object instead of primitive java type  
boolean. 

To resolve this, optionalProperty="primitive" is specified in the xjb binding file. 
Inspite of this, the jaxb convertor converts boolean xsd type to 
java.lang.Boolean.  
 

Comments
Chris, it is exactly as you just described - the bulk update within JDK-8036030 is fixing the issue, the most recent changeset is just adding regression test.
10-06-2014

Miran, this bug would appear to have been re-purposed to add a regression test to the jdk regression library to verify the issue described in the description section. The source defect I assume is still fixed as part of JDK-8036030. If so, can you please update the description, or otherwise, to reflect that.
09-06-2014

Re-opening as this bug Id has since been used in a changeset pushed to a JDK 9 repository.
09-06-2014

Since there is no changeset in the OpenJDK source for 8032884, then this bug should be marked as a duplicate of the bug that delivered the fix, i.e. JDK-8036030.
01-04-2014

fix integrated into jdk together with JDK-8036030; new jtreg test submitted for review: http://cr.openjdk.java.net/~mkos/8032884/jdk.01/
01-04-2014

Fixed in JAXB trunk. Waiting for integration into JDK.
14-02-2014