RFR: 8345614: Improve AnnotationFormatError message for duplicate annotation interfaces

Chen Liang liach at openjdk.org
Wed Jan 15 18:32:42 UTC 2025


On Thu, 5 Dec 2024 16:24:29 GMT, Scott Marlow <duke at openjdk.org> wrote:

> I am getting the `Duplication annotation for class` error as mentioned in https://hibernate.atlassian.net/browse/HHH-18901.  The current error message does not include the application class name (e.g. container) that the specified annotation is unexpectedly duplicated.  This pull request is for including the class name that has the (duplicate) annotation.

This enhancement is too late for 24. Backporting to 24.0.1; this is a prerequisite for backporting to 21.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22581#issuecomment-2593665890


More information about the core-libs-dev mailing list