slachiewicz opened a new pull request, #1195: URL: https://github.com/apache/maven-plugin-tools/pull/1195
Adds a `JavaSourceModelTest` case pinning the three shapes from GH-944's generated class - a type-use annotation nested inside another generic's type argument, the same annotated type used as an anonymous-class type argument, and in a cast expression - so a future parser regression fails a test instead of silently dropping Javadoc. No open PR touches `JavaSourceModelTest.java`; on master the only GH-944-related changes are the exclusion workaround (#1046/#1142) and the JavaParser migration (#1150), both already merged. `maven-plugin-tools-3.x` also has `JavaSourceModel` now that #1193 landed the JavaParser migration there; will port this test there too with a `-3x` suffix. Verified: `mvn -pl maven-plugin-tools-annotations test` -> 7/7 pass in `JavaSourceModelTest`; `mvn -pl maven-plugin-tools-annotations spotless:check` clean. *This change was created with AI assistance.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
