runTest("annotation pcds with parameterized types");
}
-// public void testAnnotationPatternsWithParameterizedTypes() {
-// runTest("annotation patterns with parameterized types");
-// }
+ public void testAnnotationPatternsWithParameterizedTypes() {
+ runTest("annotation patterns with parameterized types");
+ }
public void testStaticInitializationWithParameterizedTypes() {
runTest("staticinitialization and parameterized types");
runTest("staticinitialization and parameterized type matching");
}
-// public void testStaticInitializationWithGenericTypes() {
-// runTest("staticinitialization with generic types");
-// }
+ public void testStaticInitializationWithGenericTypes() {
+ runTest("staticinitialization with generic types");
+ }
// public void testStaticInitializationWithGenericTypesAdvanced() {
// runTest("staticinitialization with generic types - advanced");
<message kind="warning" line="1" text="works with classes too"/>
<message kind="warning" line="4" text="Type T does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericInterface"/>
<message kind="warning" line="20" text="Type pattern does not match because the wrong number of type parameters are specified: Type GenericImplementingClass requires 1 parameter(s)"/>
- <message kind="warning" line="24" text="Type N extends java.lang.Name & java.lang.Comparable does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericImplementingClass"/>
+ <message kind="warning" line="24" text="Type N extends java.lang.Number & java.lang.Comparable does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericImplementingClass"/>
</compile>
</ajc-test>
<message kind="warning" line="63" text="matches a generic type with any upper bound and i/f bounds"/>
<message kind="warning" line="76" text="matches a generic type with any upper bound and i/f bounds"/>
<message kind="warning" line="82" text="matches a generic type with any upper bound and i/f bounds"/>
+ <message kind="warning" line="19" text="Type X does not meet the specification for type parameter 1 (T extends java.lang.Number & java.lang.Comparable & java.io.Serializable) in generic type ClassWithInterfaceBounds"/>
+ <message kind="warning" line="23" text="Type Y extends java.lang.Number does not meet the specification for type parameter 1 (T extends java.lang.Number & java.lang.Comparable & java.io.Serializable) in generic type ClassWithInterfaceBounds"/>
+ <message kind="warning" line="27" text="Type Z extends java.lang.Number & java.lang.Comparable does not meet the specification for type parameter 1 (T extends java.lang.Number & java.lang.Comparable & java.io.Serializable) in generic type ClassWithInterfaceBounds"/>
</compile>
</ajc-test>