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

JEP 457: ClassRemapper forgets to remap bootstrap method references

    XMLWordPrintable

Details

    Description

      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)));



      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: