FULL PRODUCT VERSION :
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b77, mixed mode)
EXTRA RELEVANT SYSTEM CONFIGURATION :
The Mustang API at:
http://download.java.net/jdk6/docs/api/
A DESCRIPTION OF THE PROBLEM :
Other bugs exist in the database, and have been fixed for various method arguments and return types in java.lang.Class that use the raw type instead of the wildcard; but there are still several references to the raw type that appear to need to be fixed:
Constructor<T> getConstructor(Class...)
should be:
Constructor<T> getConstructor(Class<?>...)
Class[] getDeclaredClasses()
should be:
Class<?>[] getDeclaredClasses()
Constructor<T> getDeclaredConstructor(Class...)
should be:
Constructor<T> getDeclaredConstructor(Class<?>...)
Constructor[] getDeclaredConstructors()
should be:
Constructor<T>[] getDeclaredConstructors()
Method getDeclaredMethod(String, Class...)
should be:
Method getDeclaredMethod(String, Class<?>...)
Method getMethod(String, Class...)
should be:
Method getMethod(String, Class<?>...)
And also:
java.lang.Member:
Class getDeclaringClass()
should be:
Class<?> getDeclaringClass()
(These cause compiler warnings in JSE 5.) Are these also scheduled to be fixed before release?
REPRODUCIBILITY :
This bug can be reproduced always.