| Summary: | cbuilder.literal(null) does not thrown java.lang.IllegalArgumentException as specified in the javadoc | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Stephen DiMilla <stephen.dimilla> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | blocker | ||||||
| Priority: | P3 | CC: | lance.andersen, stephen.dimilla, tom.ware | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Updating target milestone. Created attachment 223277 [details]
proposed fix and test cases
*** Bug 366248 has been marked as a duplicate of this bug. *** *** Bug 366206 has been marked as a duplicate of this bug. *** *** Bug 366199 has been marked as a duplicate of this bug. *** Fix checked into main (2.5) The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Build Identifier: eclipselink-2.3.0.v20110604-r9504 Client code: try { CriteriaBuilder cbuilder = getEntityManager().getCriteriaBuilder(); cbuilder.literal(null); System.out.println("Did not throw IllegalArgumentException"); } catch (IllegalArgumentException iae) { System.out.println("Received expected IllegalArgumentException"); } catch (Exception e) { System.out.println("Received unexpected exception:", e); } output: Did not throw IllegalArgumentException Reproducible: Always