commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <>
Subject [jira] [Commented] (BCEL-196) why is Instruction.setOpcode private?
Date Sat, 07 Mar 2015 09:46:38 GMT


Emmanuel Bourg commented on BCEL-196:

[~markro]: what was your use case for changing the opcode? I guess you want to morph an instruction
into another one without changing the targeters? Maybe we could provide some helper methods
that swap an instruction with another one and modifies the targeters, but I agree with [~markt]
the opcode for a given instruction should not change.

> why is Instruction.setOpcode private?
> -------------------------------------
>                 Key: BCEL-196
>                 URL:
>             Project: Commons BCEL
>          Issue Type: Bug
>            Reporter: Mark Roberts
>         Attachments: instruction.diff
> Am I missing another way to modify an instruction opcode?  Deleting and recreating does
not appear to be a good alternative due to having to deal with target pointers. 

This message was sent by Atlassian JIRA

View raw message