Hello,
since i have updated ma java version to 8, the instrumentation of class seams perform, but when the instrumented class is called, the following problem is raised (see output traces):
Is there any now problem with jInstrument with java 8 ?
thanks a lot,
regards,
ant output traces :
BUILD FAILED
/Users/thomas/Documents/REQ_dev/REQ_Project/build.xml:6: The following error occurred while executing this line:
/Users/thomas/Documents/REQ_dev/REQ_Atelier/contract_instrum_test/build.xml:47: java.lang.VerifyError: Expecting a stackmap frame at branch target 7
Exception Details:
Location:
math/MyComputer.<init>()V @4: goto
Reason:
Expected stackmap frame at this location.
Bytecode:
0x0000000: 2ab7 0001 a700 03b8 0029 9900 1db8 002c
0x0000010: 2ab6 003b 9a00 10bb 003d 5912 3fb7 0040
0x0000020: b800 2fbf b800 2fb1
Exception Handler Table:
bci [7, 32] => handler: 32</init>
at test_instrum_contracts_appli.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
I have not run jInstrument with Java 8. It's very possible that there is
a problem. I will try to take a look at it over the weekend.
Java 7 introduced more strict bytecode verification than previous versions, and the instrumented bytecode generated by jContractor is failing these checks. A workaround is to disable verification by passing the -noverify flag to the JVM. I'll look into what it would take to bring jContractor up to compliance.
ok very nice...
i'm waiting your next release !
regards
Hi and happy new year ;-)
Just to know if you have enough time to fix the problem, and if yes, when do you think the next release will arrive...
thanks a lot
regards
hello,
i have seen that an other version of BCEL (6.0) is released...
I hope this version fix the problem...
regards