idea-bytecode-editor
idea-bytecode-editor copied to clipboard
Assembler failed with makeConcatWithConstants
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="\u0001"" 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.