]> source.dussan.org Git - aspectj.git/commitdiff
testcode for pr113066
authoraclement <aclement>
Mon, 7 Nov 2005 08:33:35 +0000 (08:33 +0000)
committeraclement <aclement>
Mon, 7 Nov 2005 08:33:35 +0000 (08:33 +0000)
tests/bugs150/pr113066/Consts.java [new file with mode: 0644]
tests/bugs150/pr113066/TestNPE.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml

diff --git a/tests/bugs150/pr113066/Consts.java b/tests/bugs150/pr113066/Consts.java
new file mode 100644 (file)
index 0000000..d79bcbd
--- /dev/null
@@ -0,0 +1,4 @@
+package a;
+public class Consts {
+   static String A_CONST="bla";
+}
diff --git a/tests/bugs150/pr113066/TestNPE.java b/tests/bugs150/pr113066/TestNPE.java
new file mode 100644 (file)
index 0000000..2a722fd
--- /dev/null
@@ -0,0 +1,4 @@
+package a;
+import static a.Consts.A_CONST;
+public class TestNPE {}
+
index 01344255abe050bf1e8a7f3d6f445b464959aacb..3a75602901385c309983003475c0bc775ce8dd54 100644 (file)
@@ -51,6 +51,7 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
   public void testITDCtor_pr112783()       { runTest("Problem with constructor ITDs");}
   */
   
+  //public void testPossibleStaticImports_pr113066() { runTest("possible static imports bug");}
   public void testBrokenDecp_pr112476()       { runTest("binary weaving decp broken");}
   public void testUnboundFormal_pr112027()    { runTest("unexpected error unboundFormalInPC");}
   public void testNPEScopeSetup_pr115038()    { runTest("NPE in ensureScopeSetup");}
index 2f43ab7d36df8b374c9d5896e68ab4ce9ad74043..4dab46ce29c440d7cf0856e54334c15ccbac443e 100644 (file)
         </run>
     </ajc-test>
     
+    
+    <ajc-test dir="bugs150/pr113066" title="possible static imports bug">
+        <compile files="Consts.java,TestNPE.java" options="-1.5"/>
+    </ajc-test>
+    
     <ajc-test dir="java5/staticImports" title="import static java.lang.System.out">
         <compile files="StaticImport.aj" options="-1.5"/>
     </ajc-test>