Skip to content

Instantly share code, notes, and snippets.

@jcalvert
Created April 28, 2011 14:43
Show Gist options
  • Save jcalvert/946476 to your computer and use it in GitHub Desktop.
Save jcalvert/946476 to your computer and use it in GitHub Desktop.
Hibernate HqlLexer patch.
--- hibernate-core/src/main/java/org/hibernate/hql/ast/HqlLexer.java 2011-04-28 10:39:48.000000000 -0400
+++ hibernate-core/src/main/java/org/hibernate/hql/ast/HqlLexer.java 2011-04-28 10:40:56.000000000 -0400
@@ -51,7 +51,7 @@
public void setTokenObjectClass(String cl) {
// Ignore the token class name parameter, and use a specific token class.
- super.setTokenObjectClass( HqlToken.class.getName() );
+ tokenObjectClass = HqlToken.class;
}
protected void setPossibleID(boolean possibleID) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment