[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5457) QueryTranslatorImpl.doCompile() to handle IllegalStateExceptions

Jürgen (JIRA) noreply at atlassian.com
Tue Aug 10 18:38:40 EDT 2010


QueryTranslatorImpl.doCompile() to handle IllegalStateExceptions
----------------------------------------------------------------

                 Key: HHH-5457
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5457
             Project: Hibernate Core
          Issue Type: Improvement
          Components: query-hql
    Affects Versions: 3.5.4, 3.3.1
            Reporter: Jürgen
            Priority: Minor


org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(Map, boolean, String)
should additionally handle (and probably rethrow as QueryException) IllegalStateExceptions thrown by e.g. 
org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(FromClause)

you only get
{code}
java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode 
 \-[IDENT] IdentNode: 'rc' {originalText=rc}

	at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:167)
{code}
which does not allow to identify the query easily

this might apply to other runtime exceptions thrown but not catched as well

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list