import java.util.*; | |||||
public class pr104529 { | |||||
/* | |||||
* AJDT is ignoring the @SuppressWarnings( "unchecked" ) annotation. It is giving | |||||
* me a type safety warning when I don't specify the type when declaring a generic | |||||
* even though I have the @SuppressWarnings( "unchecked" ) annotation specified. | |||||
*/ | |||||
void unsuppressed() { | |||||
List<String> l = new ArrayList(); | |||||
} | |||||
@SuppressWarnings("unchecked") | |||||
void suppressed() { | |||||
List<Double> l = new ArrayList(); | |||||
} | |||||
} |
runTest("overriding final pointcut from super-aspect"); | runTest("overriding final pointcut from super-aspect"); | ||||
} | } | ||||
public void testAtSuppressWarnings() { | |||||
runTest("@SuppressWarnings should suppress"); | |||||
} | |||||
// helper methods..... | // helper methods..... | ||||
public SyntheticRepository createRepos(File cpentry) { | public SyntheticRepository createRepos(File cpentry) { |
</compile> | </compile> | ||||
</ajc-test> | </ajc-test> | ||||
<ajc-test dir="bugs150" pr="104529" title="@SuppressWarnings should suppress"> | |||||
<compile files="pr104529.aj" options = "-1.5 -warn:+unchecked"> | |||||
<message line="11" kind="warning" text="needs unchecked conversion"/> | |||||
</compile> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150" pr="107059" title="parser crashes on call(void (@a *)(..)"> | <ajc-test dir="bugs150" pr="107059" title="parser crashes on call(void (@a *)(..)"> | ||||
<compile files="pr107059.aj"> | <compile files="pr107059.aj"> | ||||
<message line="3" kind="error" text="Syntax error on token "(", "name pattern" expected"/> | <message line="3" kind="error" text="Syntax error on token "(", "name pattern" expected"/> |