openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-1741) Unecessary class load attempts when parsing JPQL
Date Wed, 27 Mar 2013 14:43:16 GMT


Rick Curtis commented on OPENJPA-1741:

Closing this JIRA as I don't expect that we're ever going to make this change.
> Unecessary class load attempts when parsing JPQL
> ------------------------------------------------
>                 Key: OPENJPA-1741
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.2.2, 2.0.0
>            Reporter: David Minor
>            Assignee: Rick Curtis
>         Attachments: cache-class-load-attempts.patch, only-load-uppercase-java-lang.patch,
> When parsing JPQL, JPQLExpressionBuilder.getPathOrConstant() tries to determine if a
token is a java class or enum by doing a class load (via QueryImpl.classForName()). The same
token will be tried as often as it appears in the query. It might be better to
> 1) cache the results
> 2) avoid the lookup if the token is a known variable name

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message