Community
Participate
Working Groups
Build Identifier: eclipselink-2.3.0.v20110604-r9504 When calling javax.persistence.Parameter.getParameterType() on a parameter from a JPQL TypedQuery, IllegalStateException is not being thrown. Currently the parameter type is being returned. Gordon Yorke indicated that IllegalStateException should be thrown therefore I am filing this bug. Reproducible: Always Steps to Reproduce: Run the attached test code with the attached entity class.
Created attachment 203000 [details] test code
Created attachment 203001 [details] entity class
Updating target milestone.
I discussed this with Gordon and we agreed the functionality should be as follows: If we can determine the type, we may return it. If we cannot, we should throw IllegalStateException In the test above, we can determine the type, and hence are allowed to return it.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink