[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7339) Code Completion doesn't work with hibernate 3.5.6

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Fri Oct 15 01:39:39 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-7339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557236#action_12557236 ] 

Dmitry Geraskov commented on JBIDE-7339:
----------------------------------------

The problem is in inlined final constants.
org.hibernate.tool.ide.completion.HQLAnalyzer$SubQuery uses org.hibernate.hql.antlr.HqlSqlTokenTypes final constants. The constants defined as 
  public static final int IDENT = 120;//hibernate 3.3.2
  public static final int IDENT = 126;//hibernate 3.5.6
As hibernate-tools was compiled with hibernate3.3.2 "120" was inlined instead of HqlSqlTokenTypes.IDENT and why we try to use it with hibernate3.5.6 we check token types incorrectly.
Why the numbers changed? Because grammar was updated and lexer/parser were regenerated.
How to fix? Simple recompiling of hibernate-tool jar with hibernate3.5.6 should fix the problem.

> Code Completion doesn't work with hibernate 3.5.6
> -------------------------------------------------
>
>                 Key: JBIDE-7339
>                 URL: https://jira.jboss.org/browse/JBIDE-7339
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.2.0.Beta1
>            Reporter: Dmitry Geraskov
>            Assignee: Dmitry Geraskov
>             Fix For: 3.2.0.Beta2
>
>


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

        


More information about the jbosstools-issues mailing list