Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346562

Summary: NPE in CriteriaBuilderImpl.or
Product: z_Archived Reporter: Mitesh Meswani <mitesh.meswani>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P2 CC: gordon.yorke, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Mitesh Meswani CLA 2011-05-19 19:34:24 EDT
Following reproduces the issue



            CriteriaBuilder cb = em.getCriteriaBuilder();
            CriteriaQuery<Employee> cq = cb.createQuery(Employee.class);
            Root<Employee> root = cq.from(Employee.class);
            Predicate disjunction = cb.disjunction();
            disjunction = cb.or(disjunction, root.<Date>get("hireDate").isNull(), cb.lessThan(root.<Date>get("hireDate"), cb.currentDate()));
Comment 1 Mitesh Meswani CLA 2011-05-19 19:35:15 EDT
See http://java.net/jira/browse/GLASSFISH-16591
Comment 2 Tom Ware CLA 2011-05-31 09:43:11 EDT
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:28:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink