The following JPQL is not working in OpenJPA 1.2.2 because the JPQL parser expects all constructor parameters to have at DOT. It appears that the OpenJPA 2 parser has been corrected.
select new com.test.Context(parent,child) from Parent parent join parent.child child I believe the issue has to do with the path() expression of the JavaCC parser. Compare the path() parsing for 1.2.2 with that of the trunk. branches/1.3.x/openjpa-kernel/src/main/jjtree/org/apache/openjpa/kernel/jpql/JPQL.jjt @ line 437 trunk/openjpa-kernel/src/main/jjtree/org/apache/openjpa/kernel/jpql/JPQL.jjt @ line 467 I couldn't find any current JIRA bugs for this issue - do you know if this is a known issue?
