Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

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

Open
glassfishrobot opened this issue Oct 18, 2006 · 6 comments
Open

Comments

@glassfishrobot
Copy link
Contributor

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
Copy link
Contributor Author

Reported by jdidion

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

File: handle_enums_and_primitive_wrappers.patch
Attached By: jdidion

@glassfishrobot
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant