You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2010/08/12 03:57:15 UTC

[jira] Assigned: (OPENJPA-1741) Unecessary class load attempts when parsing JPQL

     [ https://issues.apache.org/jira/browse/OPENJPA-1741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis reassigned OPENJPA-1741:
------------------------------------

    Assignee: Rick Curtis

> Unecessary class load attempts when parsing JPQL
> ------------------------------------------------
>
>                 Key: OPENJPA-1741
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1741
>             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, skip-known-variables.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.
-
You can reply to this email to add a comment to the issue online.