commons-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/BCEL-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14351493#comment-14351493
] 

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: https://issues.apache.org/jira/browse/BCEL-196
>             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
(v6.3.4#6332)

Mime
View raw message