Fixed
Details
Assignee
Strong LiuStrong LiuReporter
Marton PappMarton PappFix versions
Priority
Major
Details
Details
Assignee
Strong Liu
Strong LiuReporter
Marton Papp
Marton PappFix versions
Priority
Created May 24, 2006 at 8:22 PM
Updated March 7, 2014 at 10:08 PM
Resolved July 28, 2011 at 12:13 PM
Hello!
I think I found a bug in Hibernate, in class org.hibernate.hql.ast.HqlParser.
It is in the methtod:
public AST negateNode(AST x)
The switch lacks the node type: EXISTS.
The default negateNode() implementation in org.hibernate.hql.antlr.HqlBaseParser seems to be broken by me, since it does not actually inverts the node but returns a node that is inverted. Or, to be more exact, the negation of OR and AND types are buggy, since they seem to assume that negateNode() will change the node itself, and so they simply discard its return value.
I wish the branch for NOT was not commented out, since it would provide a workaround, but now i'm stuck.
Regards,
Marton