Bug 51563

Summary: [patch] InstConstraintVisitor does not handle class constants
Product: BCEL - Now in Jira Reporter: Jonas Maebe <jonas.bugzilla>
Component: MainAssignee: issues <issues>
Status: RESOLVED FIXED    
Severity: normal CC: dbrosius
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: All   
Attachments: Patch to add class constant support to ldc/ldc_w

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.