RFR(13): JDK-8217047: Provide a way to inject missing parameter names
Jan Lahoda
jan.lahoda at oracle.com
Mon Jan 21 12:32:37 UTC 2019
Hi,
When a type is load from a classfile, and some or all of its methods
have neither the MethodParameters or LocalVariableTable attributes, then
the parameters of the methods have an artificial synthesized name, which
is visible through VariableElement.getSimpleName().
The proposal here is to allow to plug in an external provider that could
provide more user-friendly names lazily/on demand. These could originate
e.g. in adjacent sources.
JBS: https://bugs.openjdk.java.net/browse/JDK-8217437
Webrev: http://cr.openjdk.java.net/~jlahoda/8217047/webrev.01/
Specdiff:
http://cr.openjdk.java.net/~jlahoda/8217047/specdiff.01/overview-summary.html
CSR: https://bugs.openjdk.java.net/browse/JDK-8217437
What do you think?
Thanks,
Jan
More information about the compiler-dev
mailing list