idea-bytecode-editor icon indicating copy to clipboard operation
idea-bytecode-editor copied to clipboard

Assembler failed with makeConcatWithConstants

Open mepsteinj opened this issue 5 years ago • 0 comments

Hello @pshirshov Really nice plugin!

I'm having problem saving a class with this code: <INVOKEDYNAMIC bsm="java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; (6)" desc="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" name="makeConcatWithConstants"> <bsmArg cst="\u0001=&quot;\u0001&quot;" desc="Ljava/lang/String;"/> </INVOKEDYNAMIC>

The error: 04:17 Assembler failed java.lang.RuntimeException: org.xml.sax.SAXException: Malformed handle java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; (6) java.lang.StringIndexOutOfBoundsException: begin 214, end -1, length 216 at com.github.pshirshov.conversion.xml.XmlAssembleStrategy.assemble(XmlAssembleStrategy.java:35) at com.github.pshirshov.AssembleAction.actionPerformed(AssembleAction.java:65) at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:265) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:282) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:256) at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:194) at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton... (show balloon) Can you please take a look?

Thank You.

mepsteinj avatar Nov 07 '19 08:11 mepsteinj