Message3797
I've been playing with the ExposeTask and ExposedTypeProcessor to expose
Java classes as Python types, and I got this exception:
java.lang.RuntimeException: JSR/RET are not supported with computeFrames
option
at org.python.objectweb.asm.Frame.a(Unknown Source)
at org.python.objectweb.asm.MethodWriter.visitJumpInsn(Unknown
Source)
at org.python.objectweb.asm.MethodAdapter.visitJumpInsn(Unknown
Source)
at org.python.objectweb.asm.ClassReader.accept(Unknown Source)
at org.python.objectweb.asm.ClassReader.accept(Unknown Source)
at
org.python.expose.generate.ExposedTypeProcessor.<init>(ExposedTypeProcessor.java:52)
at org.python.expose.generate.ExposeTask.execute(ExposeTask.java:84)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
The kind people on #jython told me to file a bug and that what's
happening here is that the Expose code is seeing a "finally" clause and
the exposer generating 1.6 bytecode despite the fact that I'm running
1.5. I don't really understand the bug well enough to give a more
thorough explanation, but I'm attaching a class that caused this problem
(when using a 1.5 compiler).
Ethan |
|
Date |
User |
Action |
Args |
2008-11-20 22:18:07 | ethan-10gen | set | recipients:
+ ethan-10gen |
2008-11-20 22:18:07 | ethan-10gen | set | messageid: <1227219487.36.0.177033751968.issue1179@psf.upfronthosting.co.za> |
2008-11-20 22:18:07 | ethan-10gen | link | issue1179 messages |
2008-11-20 22:18:06 | ethan-10gen | create | |
|