diff options
author | Andy Clement <aclement@pivotal.io> | 2016-03-29 10:01:01 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2016-03-29 10:01:01 -0700 |
commit | 9eae797dd9c96826c7ab23f1ed9d3c26552c5c88 (patch) | |
tree | 88638bcdfa00f10d06cbf1a46d88ca247a5a89fc /org.aspectj.ajdt.core | |
parent | ca093c254584afa382d073abe04144e968cdbccb (diff) | |
download | aspectj-9eae797dd9c96826c7ab23f1ed9d3c26552c5c88.tar.gz aspectj-9eae797dd9c96826c7ab23f1ed9d3c26552c5c88.zip |
Fix 490315 - InvokeDynamic.java:126 there is no classname for invokedynamic
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties | 2 | ||||
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties index 9218ada88..185ab046c 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties @@ -4,7 +4,7 @@ The -Xlintfile:lint.properties allows fine-grained control. In tools.jar, see org/aspectj/weaver/XlintDefault.properties for the default behavior and a template to copy. ### AspectJ-specific messages -compiler.name = AspectJ Compiler 1.8.9 +compiler.name = AspectJ Compiler 1.8.10 compiler.version = Eclipse Compiler Mars.2 #A7BBA8B1, 3.12 compiler.copyright = diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java index dd38f7750..7da62b87c 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java @@ -485,7 +485,12 @@ public class AsmHierarchyBuilder extends ASTVisitor { } } - ((IProgramElement) stack.peek()).addChild(peNode); + IProgramElement ipe = (IProgramElement)stack.peek(); + if (ipe!=null) { + // With AspectJ 1.8.9 the type structure must be slightly different as the guard + // is required (the null is due to a default constructor). + ((IProgramElement) stack.peek()).addChild(peNode); + } stack.push(peNode); return true; } |