diff options
Diffstat (limited to 'tests/bugs150/Pr62606.aj')
-rw-r--r-- | tests/bugs150/Pr62606.aj | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/bugs150/Pr62606.aj b/tests/bugs150/Pr62606.aj new file mode 100644 index 000000000..0cf661647 --- /dev/null +++ b/tests/bugs150/Pr62606.aj @@ -0,0 +1,35 @@ +import org.aspectj.lang.annotation.*; + +public aspect Pr62606 { + + // xlint + public Target.new() {} + + // no xlint + public Target.new(String s) { + this(1); + } + + // no xlint + @SuppressAjWarnings + public Target.new(double d) {} + + // no xlint + @SuppressAjWarnings({"noExplicitConstructorCall"}) + public Target.new(float f) {} + + // no xlint + @SuppressAjWarnings({"adviceDidNotMatch","noExplicitConstructorCall"}) + public Target.new(short s) {} +} + +class Target { + + int x = 5; + int y; + + public Target(int z) { + this.y = z; + } + +}
\ No newline at end of file |