[9] Request for enhancement backport approval for JDK-8171194: Exception "Duplicate field name&signature in class file" should report the name and signature of the field

Alan Bateman Alan.Bateman at oracle.com
Tue Jul 18 11:51:43 UTC 2017


On 18/07/2017 07:18, Shafi Ahmad wrote:
> Hi,
>
> May I get the approval of enhancement backport of 'JDK-8171194: Exception "Duplicate field name&signature in class file" should report the name and signature of the field' to jdk9.
>
> "java.lang.ClassFormatError: Duplicate field name&signature in class file CampaignClient"
>
>  From the above Exception message, there is no easy way to know what is triggering the problem.
> If the class in question is quite big so removing code by trial and error is very time consuming.
>
> This changes required to improve the ability to diagnose issues in large projects.
> This change will emit field name + signature in aforesaid exception message,
> so pinpointing the actual problematic code will be easy and time saving.
>
> The information is available it is just that it is not being emitted in the exception message.
> This should fall under improvements to serviceability.
>
> Jdk10 bug: https://bugs.openjdk.java.net/browse/JDK-8171194
> Jdk10 review thread: http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-February/025922.html
>
JDK 9 is in the Release Candidate phase [1] so only P1 showstopper 
regressions are allowed now. I see you have a backport in jdk8u/dev 
already so I assume you you are looking to queue this up for a JDK 9 
update release. There isn't a JDK 9 update project at this time so you 
may have to create a backport issue to track it and come back to it in a 
few months.

-Alan

[1] http://openjdk.java.net/projects/jdk9/rc


More information about the jdk9-dev mailing list