Browse Source

testcode for 124105

tags/POST_MEMORY_CHANGES
aclement 18 years ago
parent
commit
86797879e8

+ 9
- 0
tests/bugs151/pr124105/com/test/IOption.java View File

@@ -0,0 +1,9 @@
package com.test;





public interface IOption {

}

+ 17
- 0
tests/bugs151/pr124105/com/test/IXOption.java View File

@@ -0,0 +1,17 @@
package com.test;













public interface IXOption extends IOption {

}

+ 34
- 0
tests/bugs151/pr124105/com/test/IYOption.java View File

@@ -0,0 +1,34 @@
package com.test;






























public interface IYOption extends IOption {

}

+ 4
- 0
tests/bugs151/pr124105/com/test/IZOption.java View File

@@ -0,0 +1,4 @@
package com.test;
public interface IZOption extends IOption {

}

+ 10
- 0
tests/bugs151/pr124105/com/test/MyBrokenXOption.java View File

@@ -0,0 +1,10 @@
package com.test;


public class MyBrokenXOption implements IXOption {

public MyBrokenXOption() {
super();
}

}

+ 9
- 0
tests/bugs151/pr124105/com/test/MyXOption.java View File

@@ -0,0 +1,9 @@
package com.test;

public class MyXOption implements IXOption {

public MyXOption(OptionType optionType) {
super();
}

}

+ 11
- 0
tests/bugs151/pr124105/com/test/OptionAspect.aj View File

@@ -0,0 +1,11 @@
package com.test;

public aspect OptionAspect {
interface IBadOptionSubtype {};

declare parents : (IOption+ && !IOption && !IXOption && !IYOption && !IZOption) && !hasmethod(new(OptionType))
implements IBadOptionSubtype;

declare error : staticinitialization(IOption+ && IBadOptionSubtype+)
: "IOption implementations must provide a constructor which accepts an OptionType";
}

+ 9
- 0
tests/bugs151/pr124105/com/test/OptionType.java View File

@@ -0,0 +1,9 @@
package com.test;

public class OptionType {

public OptionType() {
super();
}

}

Loading…
Cancel
Save