| Summary: | map values of javax.persistence.validation.mode are incorrectly throwing exception | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Bernd Müller <bernd23> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | david.minsky | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Reproduced issue in trunk. Created attachment 208956 [details]
Fix and testcase
Checked into trunk (2.4) at revision: 10644 Checked into 2.3 branch at revision: 10645 The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Build Identifier: eclipselink-2.3.1.v20111018-r10243 JPA 2.0 spec section 3.6.1.1 mention auto, callback, none as correct values of map key javax.persistence.validation.mode. But EclipseLink 2.3.1 and lower throws an Internal Exception: java.lang.IllegalArgumentException: No enum const class javax.persistence.ValidationMode.none Reproducible: Always Steps to Reproduce: run code like the following: Map<String, String> props = new HashMap<String, String>(); props.put("javax.persistence.validation.mode", "none"); // works with 'NONE' EntityManagerFactory emf = Persistence.createEntityManagerFactory("..", props);