From: Ethan Glasser-C. <re...@bu...> - 2008-11-20 22:18:13
|
New submission from Ethan Glasser-Camp <et...@10...>: 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 ---------- components: Core files: Simple.java messages: 3797 nosy: ethan-10gen severity: normal status: open title: Expose should produce a class with the same bytecode version as the one it reads in versions: 2.5b0 Added file: http://bugs.jython.org/file561/Simple.java _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1179> _______________________________________ |