]> source.dussan.org Git - aspectj.git/commitdiff
BWD: Updated - now type processing order is sensible for applying decp, we don't...
authoraclement <aclement>
Wed, 5 Jan 2005 16:40:31 +0000 (16:40 +0000)
committeraclement <aclement>
Wed, 5 Jan 2005 16:40:31 +0000 (16:40 +0000)
org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PartiallyExposedHierarchyTestCase.java

index 7d0bdf113744016302e190c2ab7ee284e9c68739..915222cbddd9195b9affbd2150fe3420e9d68586 100644 (file)
@@ -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);
        }