[jboss-dev-forums] [Javassist development Forum] - "Illegal exception table range" preverify error

thematrix do-not-reply at jboss.com
Fri Aug 4 12:40:39 EDT 2006


Hi,

I encountered the following error:

Error preverifying class Test
VERIFIER ERROR Test.open()V:
Illegal exception table range

after trying to copy a constructor body to a new method with the following instructions: (final code is the body of the constructor)

MethodInfo mf = cf.getMethod("");
mf.setName("open");
CodeAttribute ca = mf.getCodeAttribute();
CodeAttribute codeAttribute = new CodeAttribute(ca.getConstPool(), ca.getMaxStack(), ca.getMaxLocals(), finalCode, ca.getExceptionTable());

It only doesn´t work if in the original constructor includes a try() catch() statement.

Does anyone has a solution for the problem?

Thanks a lot in advance

Regards,

theamtrix








View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963260#3963260

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963260




More information about the jboss-dev-forums mailing list