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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...