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

JavaAdapterBytecodeGenerator passes invalid type descriptor to ASM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • core-libs
    • b01
    • generic
    • generic

      When overiding the finalizer delegate method JavaAdapterBytecodeGenerator uses the internal class name of the generated class to ASM Type.getType(String) method. However, that method requires a type descriptor, i.e. java classes must have a leading 'L' and a trailing ';'.

      Since the version of ASM used up to JDK 10 accepts this (it returns a method type with the correct class name) correct code is generated. However, ASM v7 is stricter and throws when presented with an class name instead of a type descriptor.

      See JDK-8194907 for the original report.

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: