You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr99191_6.java 418B

123456789101112131415
  1. @interface Annotation{}
  2. aspect B {
  3. declare @constructor : C.new(String) : @Annotation; // shouldn't have any errors
  4. declare @constructor : *.new(int) : @Annotation; // shouldn't have any errors
  5. declare @constructor : *.new(int) : @Annotation; // already get a warning for this, don't want an error saying method doesn't exist
  6. }
  7. class C {
  8. @Annotation public C(int i) {
  9. }
  10. }
  11. aspect D {
  12. public C.new(String s){}
  13. }