JDK-6470106 : (reflect) Method.toGenericString() needs to be be updated to handle varargs
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2006-09-13
  • Updated: 2017-05-16
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7 b05Fixed OpenJDK6Fixed
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_07-b03, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux jks-desktop 2.6.17-1.2157_FC5 #1 SMP Tue Jul 11 22:53:56 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
Method.toGenericString() was added in 1.5, but it apparently doesn't know about varargs, because a method declared like this:
 public void tempMethod(int... ia) throws Exception;
is output like this:
 public abstract transient void package.classname.tempMethod(int[]) throws java.lang.Exception



REPRODUCIBILITY :
This bug can be reproduced always.

Comments
SUGGESTED FIX See attached webrev tar-ball and http://sa.sfbay.sun.com/projects/langtools_data/dolphin/6470106.0
28-11-2006

EVALUATION A reasonable request.
14-09-2006