[
https://issues.apache.org/jira/browse/BCEL-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Bourg updated BCEL-148:
--------------------------------
Priority: Blocker
Environment: (was: Operating System: Linux
Platform: PC)
Fix Version/s: 6.0
Summary: BCELifier produces incorrect code for methods containing
loads of class literals from constant pool (was: BCELifier produces incorrect
code for methods containing loads of class literals from constant pool [PATCH].)
> BCELifier produces incorrect code for methods containing loads of class
> literals from constant pool
> ---------------------------------------------------------------------------------------------------
>
> Key: BCEL-148
> URL: https://issues.apache.org/jira/browse/BCEL-148
> Project: Commons BCEL
> Issue Type: Bug
> Components: Main
> Affects Versions: 5.3
> Reporter: Tassos Bassoukos
> Assignee: Apache Commons Developers
> Priority: Blocker
> Labels: PatchAvailable
> Fix For: 6.0
>
> Attachments: bcel-1.patch
>
>
> When a class literal is loaded from the constant pool, the BCELifier produces
> not compilable code. The attached patch fixes this issue with 3 modifications:
> * LDC#getValue(): when a class constant is referenced, return a correct
> ObjectType instance.
> * PUSH: new constructor that takes an ObjectType instance and does the right
> thing (I hope)
> * BCELFactory#createConstant(): if the constant is an ObjectType, produce the
> correct embedding string.
--
This message was sent by Atlassian JIRA
(v6.2#6252)