[patch] 6746458 support for exotic identifiers (identifier superquote)
John Rose
John.Rose at Sun.COM
Wed Sep 10 23:13:41 PDT 2008
On Sep 10, 2008, at 4:28 PM, Rémi Forax wrote:
> Anyway, i'm not sure it's a good idea to change the Java spec
> in order to be able to call a method with a non Java name.
> Why don't just use a bridge method ?
Then how do you write the bridge method? You'd have to apt it into
the class file. And then you'd need another mangling convention to
relate the Java name to the actual name.
It's simpler to make these things direct. Since the JVM supports
such names, and since Java is the system programming language for the
JVM (isn't it?), let Java support those names.
> Lot of languages perform some convertions of arguments
> before calling their methods, in my opinion,
> exotic identifiers support is just a part of that adaptation process.
But it's a separable part. And I think the trend with JSR 292 is to
make dynlang call sites look more like Java call sites, reducing the
amount of adaptation required.
This does raise the question of how to emit the extended call
bytecodes from javac (if at all). Not an easy question, but a simple
low-level solution would be worthwhile.
-- John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20080910/b36297eb/attachment.html
More information about the compiler-dev
mailing list