mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
test checks that setting warn:constructorName works
This commit is contained in:
parent
c9f7a604ab
commit
11c67124a2
@ -6249,4 +6249,12 @@
|
||||
<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>
|
||||
|
9
tests/harness/ConstructorNameWarning.java
Normal file
9
tests/harness/ConstructorNameWarning.java
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
public class ConstructorNameWarning {
|
||||
|
||||
/** expecting warning: method with constructor name */
|
||||
public void ConstructorNameWarning(String s) { // CW 5 -warn:constructorName
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user