New JEP: Concise Method Bodies
Vicente Romero
vicente.romero at oracle.com
Tue Sep 25 19:35:46 UTC 2018
Hi all,
I have published a public amber repo for the concise method bodies JEP.
It can be found at [1], branch: concise-method-declarations. Also as
suggested by Brian I have created a new finder, see [2]. Using it I have
got some stats on the number of methods in the JDK that could
potentially benefit from this JEP. Modulo possible cases in which the
finder could be smarter these are the numbers so far:
potential number of concise methods: 12770
total number of methods (modulo synthetic methods and constructors): 562636
for a percentage of: 2.27
Thanks,
Vicente
[1] http://hg.openjdk.java.net/amber/amber
[2]
http://hg.openjdk.java.net/amber/amber/file/cac8618a27ec/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Analyzer.java#l338
More information about the amber-spec-experts
mailing list