]> source.dussan.org Git - aspectj.git/commitdiff
Test for Bugzilla Bug 42515
authoracolyer <acolyer>
Thu, 15 Jan 2004 12:50:59 +0000 (12:50 +0000)
committeracolyer <acolyer>
Thu, 15 Jan 2004 12:50:59 +0000 (12:50 +0000)
  NPE When compiling intertype declaration

tests/ajcTests.xml
tests/bugs/caseSensitivity/uniqueId/Bug.aj [new file with mode: 0644]
tests/bugs/caseSensitivity/uniqueId/Numbered.java [new file with mode: 0644]

index b7a030283937532f36fb3e602c1933ac95340bac..a853bef281b5ff20f94c8b61eec9a63399b4970d 100644 (file)
                <compile files="AbstractBaseAndInterTypeInterface.java">
                </compile>
        </ajc-test>
-    
+
+  <ajc-test dir="bugs/caseSensitivity" pr="42515"
+      title="NPE When compiling intertype declaration">
+        <compile files="uniqueId/Numbered.java,uniqueId/Bug.aj">
+                 <message kind="error" line="4"/>
+        </compile>
+  </ajc-test>   
+        
 </suite>
diff --git a/tests/bugs/caseSensitivity/uniqueId/Bug.aj b/tests/bugs/caseSensitivity/uniqueId/Bug.aj
new file mode 100644 (file)
index 0000000..cefd092
--- /dev/null
@@ -0,0 +1,5 @@
+package uniqueid;\r
+\r
+public aspect Bug {\r
+  private long Numbered.objId; \r
+}
\ No newline at end of file
diff --git a/tests/bugs/caseSensitivity/uniqueId/Numbered.java b/tests/bugs/caseSensitivity/uniqueId/Numbered.java
new file mode 100644 (file)
index 0000000..29287df
--- /dev/null
@@ -0,0 +1,2 @@
+package uniqueId;
+public interface Numbered {}
\ No newline at end of file