Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6963287

Core Reflection API needs to be synchronized with JSR 292

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 7
    • 7
    • hotspot
    • None
    • generic
    • generic

      The types MethodHandle and InvokeDynamic support signature-polymorphic calls. This needs to be suitably modeled by the Core Reflection API. Probably getDeclaredMethod needs to return a different Method for every requested set of argument types, for signature-polymorphic names.

      Clearly getDeclaredMethods cannot return an infinite list of overloads.

      There does not seem to be a way to specify non-default return value types.

            jrose John Rose
            jrose John Rose
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: