[prev in list] [next in list] [prev in thread] [next in thread]
List: bcel-dev
Subject: DO NOT REPLY [Bug 46722] New: problem using bcel in jdk15
From: bugzilla () apache ! org
Date: 2009-02-17 17:22:51
Message-ID: bug-46722-8203 () https ! issues ! apache ! org/bugzilla/
[Download RAW message or body]
https://issues.apache.org/bugzilla/show_bug.cgi?id=46722
Summary: problem using bcel in jdk15
Product: BCEL
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: psramkumar@adventnet.com
Hi ,
I am using Bcel to instrument java classes of webapplications in JDK1.6 ,1.5
.We encountered ClassFormat exception for classes using Generics
which prevented application from loading.From
https://issues.apache.org/bugzilla/show_bug.cgi?id=33549
I saw a workaround to delete "LocalVariableTypeTable".I followed that
suggestion and loop through the attributes
and deleted attribute named "LocalVariableTypeTable".Still While loading
application I get ClassFormatException.
Example code in which i delete attribute "LocalvariableTypeTable" jc is
JavaClass Object
Method[] ma = jc.getMethods();
for(int i=0,x=ma.length;i<x;i++)
{
try{
MethodGen mg = new
MethodGen(ma[i],cg.getClassName(),cg.getConstantPool());
Attribute[] atts = mg.getCodeAttributes();
for( int j=0; j<atts.length; j++ ) {
if(atts[j].getNameIndex()==mg.getConstantPool().lookupUtf8("LocalVariableTypeTable"))
{
mg.removeCodeAttribute(atts[j]);
}
}
}
catch(Exception o1)
{
output.write("exception "+o1);
}
}
Also i get other error
Caused by: java.lang.ClassFormatError: LVTT entry for 'patterns' in
class file org/springframework/classname does not match any LVT entry
and application fails to load
--
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: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic