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

JEP 457: ClassRemapper forgets to remap bootstrap method references

XMLWordPrintable

    • b25
    • generic
    • generic
    • Verified

      A DESCRIPTION OF THE PROBLEM :
      In method ClassRemapperImpl.asCodeTransform() the bootstrap method handle needs to be remapped as well; see fix below:

      case InvokeDynamicInstruction idi ->
                          cob.invokeDynamicInstruction(DynamicCallSiteDesc.of(
      // idi.bootstrapMethod(), idi.name().stringValue(),
                                  mapDirectMethodHandle(idi.bootstrapMethod()), idi.name().stringValue(),
                                  mapMethodDesc(idi.typeSymbol()),
                                  idi.bootstrapArgs().stream().map(this::mapConstantValue).toArray(ConstantDesc[]::new)));



            asotona Adam Sotona
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: