javaee / jaxb2-commons

JAXB Implementation project has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/jaxb-ri/
Other
17 stars 15 forks source link

Improve default-value-plugin to handle enums and primite wrappers #3

Open glassfishrobot opened 18 years ago

glassfishrobot commented 18 years ago

1. Unbox types before checking if they are primitive 2. For non-primitive types, check if they are enums, and if so init the property with the enum reference.

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 18 years ago

Reported by jdidion

glassfishrobot commented 18 years ago

jdidion said: Created an attachment (id=1) Pathc

glassfishrobot commented 17 years ago

kohsuke said: I recommend contacting the plugin owner directly. He might not be monitoring this issue tracker. You can check CVS history for who committed it.

If he doesn't respond, we can talk about plan B — I can apply the patch, or if you are interetsed, I'd be very happy to have you take over the plugin.

But please try to contact the author directly first.

glassfishrobot commented 16 years ago

jorgew said: I have an enumerated schema type that I'm mapping to an integer for legacy reasons and I'm getting a NumberFormatException when setting a default value. It looks like this patch might resolve the issue What's the status of this issue – looks like it's been at "STARTED" for a long time.

glassfishrobot commented 18 years ago

File: handle_enums_and_primitive_wrappers.patch Attached By: jdidion

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB2_COMMONS-3