RFR: JDK-8190452: javac should not add MethodParameters attributes to v51 and earlier class files

Liam Miller-Cushon cushon at google.com
Thu Feb 1 18:56:15 UTC 2018


Bump. I'm happy to implement either of the alternatives I mentioned, but
was hoping to get feedback on the approach first.

On Wed, Jan 17, 2018 at 11:51 AM, Liam Miller-Cushon <cushon at google.com>
wrote:

> Please review a fix for JDK-8190452. The change causes javac to not emit MethodParameters
> attributes when targeting v51 class files.
>
> The change implements the suggestion from this thread:
> http://mail.openjdk.java.net/pipermail/compiler-dev/2018-
> January/011579.html
>
> There are two related changes that may be worth considering:
> * now that -parameters will be ignored when compiling with --release < 8,
> should this combination of flags result in a warning if -Xlint:options is
> enabled?
> * since this wasn't fixed in JDK 9, there are v51 class files in the wild
> that contain unexpected MethodParameters attributes. Should
> -Xlint:classfile be relaxed to avoid warning on those?
>
> bug: https://bugs.openjdk.java.net/browse/JDK-8190452
> webrev: http://cr.openjdk.java.net/~cushon/8190452/webrev.00/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20180201/c21aaae0/attachment.html>


More information about the compiler-dev mailing list