[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

Shafi Ahmad shafi.s.ahmad at oracle.com
Tue Jul 18 06:18:17 UTC 2017


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


I have tested it with the jprt.

Regards,
Shafi



More information about the jdk9-dev mailing list