aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers
diff options
context:
space:
mode:
authorpeichhorn <peichhor@web.de>2011-07-30 14:02:04 +0200
committerpeichhorn <peichhor@web.de>2011-07-30 14:02:04 +0200
commit72cb022231a6c43c97b36377a85f2d4de875b1d9 (patch)
treebf915ed10b12145e3b900b180b1c3eb2b706ab8d /src/core/lombok/javac/handlers
parent3b504cf4d06c00f41f3e7bf472843568e618b83d (diff)
downloadlombok-72cb022231a6c43c97b36377a85f2d4de875b1d9.tar.gz
lombok-72cb022231a6c43c97b36377a85f2d4de875b1d9.tar.bz2
lombok-72cb022231a6c43c97b36377a85f2d4de875b1d9.zip
fixed Issue 244:
Between javac 1.6 and 1.7 the type of the field JCClassDecl.extending has changed from JCTree to JCExpression, but the method getExtendsClause() still returns a JCTree. So we use this for now.
Diffstat (limited to 'src/core/lombok/javac/handlers')
-rw-r--r--src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java
index eb733eb4..47255a2c 100644
--- a/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java
+++ b/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java
@@ -136,7 +136,7 @@ public class HandleEqualsAndHashCode extends JavacAnnotationHandler<EqualsAndHas
}
}
- JCTree extending = ((JCClassDecl)typeNode.get()).extending;
+ JCTree extending = ((JCClassDecl)typeNode.get()).getExtendsClause();
if (extending != null) {
String p = extending.toString();
isDirectDescendantOfObject = p.equals("Object") || p.equals("java.lang.Object");