-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
b61
-
sparc
-
solaris_2.5.1
Name: jk109818 Date: 06/21/2002
FULL PRODUCT VERSION :
(irrelevant)
FULL OPERATING SYSTEM VERSION :
irrelevant
ADDITIONAL OPERATING SYSTEMS :
any
EXTRA RELEVANT SYSTEM CONFIGURATION :
This is a bug against the javadoc of
java.lang.reflect.Constructor and java.lang.Class.
A DESCRIPTION OF THE PROBLEM :
When I call a constructor of a non-static inner class
via reflection, I need to provide an instance
of the outer class as initargs[0] when calling
java.lang.reflect.Constructor.newInstance(...).
This should be documented in the javadoc of
java.lang.reflect.Constructor.newInstance(...),
and also in the javadoc of
java.lang.reflect.Constructor.getParameterTypes().
Similarily, when I want to aquire a Constructor object
of a non-static inner class, via a call to
java.lang.Class.getConstructor(Class[] parameterTypes),
I need to provide an additional Class object for the
outer class as parameterTypes[0].
This should be documented in the javadoc of
java.lang.Class.getConstructor(Class[] parameterTypes).
REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 153958)
======================================================================
FULL PRODUCT VERSION :
(irrelevant)
FULL OPERATING SYSTEM VERSION :
irrelevant
ADDITIONAL OPERATING SYSTEMS :
any
EXTRA RELEVANT SYSTEM CONFIGURATION :
This is a bug against the javadoc of
java.lang.reflect.Constructor and java.lang.Class.
A DESCRIPTION OF THE PROBLEM :
When I call a constructor of a non-static inner class
via reflection, I need to provide an instance
of the outer class as initargs[0] when calling
java.lang.reflect.Constructor.newInstance(...).
This should be documented in the javadoc of
java.lang.reflect.Constructor.newInstance(...),
and also in the javadoc of
java.lang.reflect.Constructor.getParameterTypes().
Similarily, when I want to aquire a Constructor object
of a non-static inner class, via a call to
java.lang.Class.getConstructor(Class[] parameterTypes),
I need to provide an additional Class object for the
outer class as parameterTypes[0].
This should be documented in the javadoc of
java.lang.Class.getConstructor(Class[] parameterTypes).
REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 153958)
======================================================================