Announcing bytecodehacks 0.10

Toby J Sargeant tjs at longford.cs.monash.edu.au
Thu May 13 08:09:57 EDT 1999


On Thu, May 13, 1999 at 12:07:54PM +0100, Michael Hudson wrote:
> No, I very much doubt it. JPython compiles to Java bytecodes doesn't
> it? Anyway I doubt the runtime permits functions to play with
> bytecodes on the fly given Java's security concerns.

I'm 99% positive that it's possible to define a class loader in java that
creates bytecodes on the fly. The JVM does lazy code validation on methods
that it executes anyway, so it would catch any potential hazards before
they were executed. I don't think you can modify the code of a method after
it has been loaded, however.

Toby.




More information about the Python-list mailing list