]> source.dussan.org Git - aspectj.git/commitdiff
test checks that setting warn:constructorName works
authorwisberg <wisberg>
Tue, 27 May 2003 07:30:12 +0000 (07:30 +0000)
committerwisberg <wisberg>
Tue, 27 May 2003 07:30:12 +0000 (07:30 +0000)
tests/ajcTests.xml
tests/harness/ConstructorNameWarning.java [new file with mode: 0644]

index f271d2e6847bc9ffb457f9bd2de9735db0561c95..9ed79f34d9e5556478451dfc665064605464b959 100644 (file)
         <run class="Big"/>
     </ajc-test>
 
+   <ajc-test dir="harness" 
+        title="setting -warn:constructorName works">
+        <compile files="ConstructorNameWarning.java" 
+               options="-warn:constructorName">
+               <message kind="warning" line="5" text="constructor name"/>
+       </compile>
+    </ajc-test>
+
 </suite>
diff --git a/tests/harness/ConstructorNameWarning.java b/tests/harness/ConstructorNameWarning.java
new file mode 100644 (file)
index 0000000..ddf8095
--- /dev/null
@@ -0,0 +1,9 @@
+
+public class ConstructorNameWarning {
+    
+    /** expecting warning: method with constructor name */
+    public void ConstructorNameWarning(String s) { // CW 5 -warn:constructorName
+    }
+}
+
+