[jboss-jira] [JBoss JIRA] (JASSIST-227) javassist.bytecode.InstructionPrinterm, case IINC: return opstring + " " + iter.byteAt(pos + 1);

Cao Tang (JIRA) issues at jboss.org
Sat Jul 12 21:52:29 EDT 2014


Cao Tang created JASSIST-227:
--------------------------------

             Summary: javassist.bytecode.InstructionPrinterm, case IINC: return opstring + " " + iter.byteAt(pos + 1);
                 Key: JASSIST-227
                 URL: https://issues.jboss.org/browse/JASSIST-227
             Project: Javassist
          Issue Type: Bug
    Affects Versions: 3.18.1-GA
         Environment: windows 7, redhat 6
            Reporter: Cao Tang
            Assignee: Shigeru Chiba
            Priority: Critical


javassist.bytecode.InstructionPrinterm.java

            case IINC:
                return opstring + " " + iter.byteAt(pos + 1);

it didn't include a INCREMENT/DECREMENT. the correct is:

                return opstring + " " + iter.byteAt(pos + 1)  + ", " + iter.bytecode[pos + 1] ;

bytecode is protected, so a method is needed to return the value if iter.bytecode[pos + 1].





--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list