Bug 51563 - [patch] InstConstraintVisitor does not handle class constants
Summary: [patch] InstConstraintVisitor does not handle class constants
Status: RESOLVED FIXED
Alias: None
Product: BCEL - Now in Jira
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: issues@commons.apache.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 12:21 UTC by Jonas Maebe
Modified: 2011-07-28 03:21 UTC (History)
1 user (show)



Attachments
Patch to add class constant support to ldc/ldc_w (1.49 KB, patch)
2011-07-27 12:21 UTC, Jonas Maebe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Maebe 2011-07-27 12:21:31 UTC
Created attachment 27321 [details]
Patch to add class constant support to ldc/ldc_w

InstConstraintVisitor gives an error if ldc/ldc_w is used to load a class constant (svn r1151433). This is allowed since the JVM 1.5 specifications (and I've seen this has been fixed in several other places in BCEL already).

The attached patch fixes this problem.
Comment 1 Dave Brosius 2011-07-28 03:21:39 UTC
Thanks for the patch
Committed revision 1151709.