diff options
author | aclement <aclement> | 2005-01-05 16:40:31 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-01-05 16:40:31 +0000 |
commit | adbc8972aa3c68cee65585fb4b3bb9452cdb8678 (patch) | |
tree | ed4810cba23b0508021816981f7d325d3d831a12 | |
parent | 7f81377868c16bb2ea666d83bd06a6651fbad60a (diff) | |
download | aspectj-adbc8972aa3c68cee65585fb4b3bb9452cdb8678.tar.gz aspectj-adbc8972aa3c68cee65585fb4b3bb9452cdb8678.zip |
BWD: Updated - now type processing order is sensible for applying decp, we don't get an error here.
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PartiallyExposedHierarchyTestCase.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PartiallyExposedHierarchyTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PartiallyExposedHierarchyTestCase.java index 7d0bdf113..915222cbd 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PartiallyExposedHierarchyTestCase.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PartiallyExposedHierarchyTestCase.java @@ -37,15 +37,19 @@ public class PartiallyExposedHierarchyTestCase extends AjcTestCase { */ public void testPartiallyExposedHierarchy () { Message warning = new Message(11,"no interface constructor-execution join point"); - Message error = new Message(15, "type sample.Base must be accessible for weaving interface inter type declaration from aspect sample.Trace"); + + // This error can't happen with the new logic to process types in hierarchical order + // when applying declare parents (rather than just processing them in the order encountered + // like we have been doing) - this kind of makes the test redundant ?!? + // Message error = new Message(15, "type sample.Base must be accessible for weaving interface inter type declaration from aspect sample.Trace"); CompilationResult result = ajc(baseDir, new String[]{"-classpath","fullBase.jar", "-injars","base.jar", "sample"+File.separator+"Trace.aj"}); -// System.err.println(result.getWarningMessages()); -// System.err.println(result.getErrorMessages()); -// System.err.println(result.getStandardOutput()); - MessageSpec spec = new MessageSpec(null,newMessageList(warning),newMessageList(error)); + System.err.println(result.getWarningMessages()); + System.err.println(result.getErrorMessages()); + System.err.println(result.getStandardOutput()); + MessageSpec spec = new MessageSpec(null,newMessageList(warning),null);//newMessageList(error)); assertMessages(result,spec); } |