Wrong constant pool created

Issue #79 resolved
Michael Eichberg repo owner created an issue

When we add LDC instructions some indexes are updated in an invalid manner val constantsBuffer = ConstantsBuffer(Set(LoadString("test1"))) //null -> 0 //CONSTANT_Utf8_info(test1) -> 1 //CONSTANT_String_info(1) -> 2

   constantsBuffer.CPEUtf8("test2")
   //null                      -> 0
   //CONSTANT_Utf8_info(test1) -> 1
   //CONSTANT_String_info(1)   -> 2
   //CONSTANT_Utf8_info(test2) -> 2

Comments (3)

  1. Log in to comment