Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6533

[classlib] [luni] Proxy.getProxyClass's interfaces paramter should be declared as varargs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.0M1
    • 6.0M3, 5.0M15
    • Classlib
    • None

    Description

      Currently, java.lang.reflect.Proxy.getProxyClass accepts an array of Class<?> as its second argument: interfaces. According to the Java SE 6 API, however, interfaces should be a varargs parameter. This might not matter in a lot of cases, but it confuses the Scala compiler (scalac) big-time, making it impossible to compile the Scala library against the Apache Harmony classlib (note the array of arrays scalac mistakenly requires):

      found : Array[java.lang.Class[_]]
      required: Array[_ <: Array[java.lang.Class[_]]]
      java.lang.reflect.Proxy.getProxyClass(cl, ifaces: _*)

      Attachments

        Activity

          People

            hindessm Mark Hindess
            sewe Andreas Sewe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: