New method-name-mangling may not be JVM specification compliant
---------------------------------------------------------------
Key: JRUBY-5225
URL: http://jira.codehaus.org/browse/JRUBY-5225
Project: JRuby
Issue Type: Bug
Components: Compiler
Affects Versions: JRuby 1.6
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Priority: Blocker
Fix For: JRuby 1.6
For the new backtrace logic, I formalized the mangling of Ruby method names to
JVM method identifiers according to John Rose's "symbolic freedom in the VM"
article: http://blogs.sun.com/jrose/entry/symbolic_freedom_in_the_vm
However, it appears from the JVM specification that only valid Java identifiers
are legal for method names:
http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#1327
Because of this, the CheckClassAdapter from ASM rejects my mangled method
names, and I have temporarily disabled that checking. We will need to address
this, and possibly choose a different mangling scheme, before JRuby 1.6 is
released.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email