StringBuffer contains methods of AbstractStringBuilder
I am using ASM 9.2 as java byte code decompiler. While using I have come across a case. For class java.lang.StringBuffer
, when I have looked for method delete
, I have found two instances. I am giving the name and desc of these two methods.
- name:
delete
; desc:(II)Ljava/lang/StringBuffer;
- name:
delete
; desc:(II)Ljava/lang/AbstractStringBuilder;
According to my understanding, the second instance should belong to AbstractStringBuilder
and seems like an issue. Please let me know the expected behavior.
For demonstration purpose, I am also including a simple project where I have tried to show the case. Here is the link https://github.com/diptopol/ASMStringBufferIssueReproduction