diff options
author | jhugunin <jhugunin> | 2003-08-08 01:23:31 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-08-08 01:23:31 +0000 |
commit | 3e5974557278e81a9891edd4269eca39a8d42f43 (patch) | |
tree | 3b6198180f7da196f47896ba3d5570bb58ebefe2 /org.aspectj.ajdt.core | |
parent | efc1cc47398443b33fe90da11c4cf1d14dc9c108 (diff) | |
download | aspectj-3e5974557278e81a9891edd4269eca39a8d42f43.tar.gz aspectj-3e5974557278e81a9891edd4269eca39a8d42f43.zip |
fix and tests for Bugzilla Bug 41123
Weaving failure when using injars
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java index daacbc4e5..8bbf228a8 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java @@ -160,7 +160,7 @@ public class AjLookupEnvironment extends LookupEnvironment { Collection mungers = onType.getWeaverState().getTypeMungers(onType); - //System.out.println("mungers: " + mungers); + //System.out.println(onType + " mungers: " + mungers); for (Iterator i = mungers.iterator(); i.hasNext(); ) { ConcreteTypeMunger m = (ConcreteTypeMunger)i.next(); EclipseTypeMunger munger = factory.makeEclipseTypeMunger(m); @@ -235,6 +235,12 @@ public class AjLookupEnvironment extends LookupEnvironment { if (!newParents.isEmpty()) { for (Iterator i = newParents.iterator(); i.hasNext(); ) { ResolvedTypeX parent = (ResolvedTypeX)i.next(); + if (dangerousInterfaces.containsKey(parent)) { + ResolvedTypeX onType = factory.fromEclipse(sourceType); + factory.showMessage(IMessage.ERROR, + onType + ": " + dangerousInterfaces.get(parent), + onType.getSourceLocation(), null); + } addParent(sourceType, parent); } } |