Hi Tom, hi Jielin,
attached you find my changes to fix issue 1421 "JPQL: allow
identification variable as constructor argument":
https://glassfish.dev.java.net/issues/show_bug.cgi?id=1421.
With this change a query may use an identification variable as
constructor argument, e.g
SELECT new mypackage.EmployeeDetail(emp) FROM Employee emp WHERE ...
This fix turned out to be a one-liner, because I can use a non-terminal
symbol Jielin recently introduced for another fix.
Thanks!
Regards Michael