-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b49
-
generic
-
solaris_8
The following API elements improperly use raw types:
package java.lang.annotation;
public class IncompleteAnnotationException extends RuntimeException {
// Class, below, should be Class<? extends Annotation>
public IncompleteAnnotationException(Class annotationType,
String memberName);
public Class annotationType();
}
package java.lang.reflect;
public final class Array {
// Class, below, should be Class<?>
public static Object newInstance(Class componentType, int length);
public static Object newInstance(Class componentType, int[] dimensions);
}
public final
class Constructor<T> extends AccessibleObject implements
GenericDeclaration,
Member {
// Class[], below, should be Class<?>[]
public Class[] getParameterTypes();
public Class[] getExceptionTypes();
}
public final
class Field extends AccessibleObject implements Member {
// Class, below, should be Class<?>
public Class getDeclaringClass();
public Class getType();
}
public
interface Member {
// Class, below, should be Class<?>
public Class getDeclaringClass();
}
public final
class Method extends AccessibleObject implements GenericDeclaration,
Member {
// Class, below, should be Class<?>
public Class getDeclaringClass();
public Class getReturnType();
// Class[], below, should be Class<?>[]
public Class[] getParameterTypes();
public Class[] getExceptionTypes();
}
public class Proxy implements java.io.Serializable {
// Class, below, should be Class<?>
public static Class getProxyClass(ClassLoader loader,
Class... interfaces);
public static Object newProxyInstance(ClassLoader loader,
Class[] interfaces,
InvocationHandler h);
public static boolean isProxyClass(Class cl);
}
package java.lang.annotation;
public class IncompleteAnnotationException extends RuntimeException {
// Class, below, should be Class<? extends Annotation>
public IncompleteAnnotationException(Class annotationType,
String memberName);
public Class annotationType();
}
package java.lang.reflect;
public final class Array {
// Class, below, should be Class<?>
public static Object newInstance(Class componentType, int length);
public static Object newInstance(Class componentType, int[] dimensions);
}
public final
class Constructor<T> extends AccessibleObject implements
GenericDeclaration,
Member {
// Class[], below, should be Class<?>[]
public Class[] getParameterTypes();
public Class[] getExceptionTypes();
}
public final
class Field extends AccessibleObject implements Member {
// Class, below, should be Class<?>
public Class getDeclaringClass();
public Class getType();
}
public
interface Member {
// Class, below, should be Class<?>
public Class getDeclaringClass();
}
public final
class Method extends AccessibleObject implements GenericDeclaration,
Member {
// Class, below, should be Class<?>
public Class getDeclaringClass();
public Class getReturnType();
// Class[], below, should be Class<?>[]
public Class[] getParameterTypes();
public Class[] getExceptionTypes();
}
public class Proxy implements java.io.Serializable {
// Class, below, should be Class<?>
public static Class getProxyClass(ClassLoader loader,
Class... interfaces);
public static Object newProxyInstance(ClassLoader loader,
Class[] interfaces,
InvocationHandler h);
public static boolean isProxyClass(Class cl);
}