What can we improve in JSR292 for Java 9?
Jochen Theodorou
blackdrag at gmx.org
Thu Feb 26 10:27:34 UTC 2015
Am 26.02.2015 01:02, schrieb Charles Oliver Nutter:
> After talking with folks at the Jfokus VM Summit, it seems like
> there's a number of nice-to-have and a few need-to-have features we'd
> like to see get into java.lang.invoke. Vladimir suggested I start a
> thread on these features.
my biggest request: allow the call of a super constructor (like
super(foo,bar)) using MethodHandles an have it understood by the JVM
like a normal super constructor call... same for this(...)
Because what we currently do is annoying and a major pita, plus it
bloats the bytecode we have to produce. And let us better not talk about
speed or the that small verifier change that made our hack unusable in
several java update versions for 7 and 8.
This has been denied in the past because of security reasons... And
given that we need dynamic argument types to determine the constructor
to be called, and since that we have to do a call from the runtime in
the uncached case, I fully understand why this is not done... just... it
would be nice to have a solution that does not require us doing
basically a big switch table with several invokespecial calls
bye Jochen
--
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org
More information about the mlvm-dev
mailing list