Hi Michael,
The changes look good to me.
-Tom
Michael Bouschen wrote:
>Hi Tom, hi Jielin,
>
>I fixed issue 1464 "JPQL: NPE for undefined variable in JOIN clause":
>https://glassfish.dev.java.net/issues/show_bug.cgi?id=1464
>
>The query compiler runs into an NPE in case the JOIN clause uses an
>identification variable that is not declared. E.g. the following query
>declares an variable c, but uses an variable d in the JOIN clause:
>SELECT c FROM Customer c JOIN d.orders o.
>The bug is in an internal compiler helper class TypeHelperImpl when
>accessing the persistence metadata.
>
>You find the source and test changes attached.
>
>Thanks!
>
>Regards Michael
>
>