https://issues.apache.org/bugzilla/show_bug.cgi?id=49615
Summary: BCELifier produces incorrect code for methods
containing loads of class literals from constant pool
[PATCH].
Product: BCEL
Version: 5.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=25784)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25784)
Proposed fix, please review.
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.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]