(reflect) Method.toGenericString() needs to be be updated to handle varargs

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 7
    • Affects Version/s: 5.0
    • Component/s: core-libs
    • b05
    • x86
    • linux
    • Verified

        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.

              Assignee:
              Joe Darcy
              Reporter:
              Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: