mvanhorn opened a new pull request, #9777:
URL: https://github.com/apache/netbeans/pull/9777

   ### LLMs, Commit messages and PR description:
   
   Java indexing can fail with an AssertionError when a package annotation 
contains an unresolved type, preventing index signature generation. The 
annotation sanitization pass skipped package symbol metadata. Erroneous package 
annotations could therefore reach javac's class writer, which cannot generate 
signatures for error types.
   
   VanillaCompileWorker now sanitizes package annotations through the existing 
clearAnnotations logic when a package symbol is present. The regression test 
covers unresolved annotation types, class literals, and nested annotations, 
checking that signature generation succeeds, valid @Deprecated annotations 
remain, and source errors are still recorded.
   
   jvm_tests found no Maven or Gradle build owning the touched files, so it ran 
no tests.
   ant $OPTS -f java/debugger.jpda.truffle test was invoked, but the transcript 
reports no result.
   The tests in 
`java/java.source.base/test/unit/src/org/netbeans/modules/java/source/indexing/VanillaCompileWorkerTest.java`
 fail without the fix in the netbeans VanillaCompileWorker change (checked by 
reverting the source changes).
   
   Fixes #9740
   
   ### PR approval and merge checklist:
   
   1. [ ] Was this PR [correctly 
labeled](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=240884239#PRsandYouAreviewerGuide-PRtriggeredCIJobs(conditionalCIpipeline)),
 did the right tests run? When did they run?
   2. [ ] Is this PR 
[squashed](https://cwiki.apache.org/confluence/display/NETBEANS/git%3A+squash+and+merge)?
   3. [ ] Are author name / email address correct? Are 
[co-authors](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors#creating-co-authored-commits-on-the-command-line)
 correctly listed? Do the commit messages need updates?
   3. [ ] Does the PR title and description still fit after the Nth iteration? 
Is the description sufficient to appear in the release notes?
   
   If this PR targets the delivery branch: [don't 
merge](https://cwiki.apache.org/confluence/display/NETBEANS/Pull+requests+for+delivery).
 ([full wiki 
article](https://cwiki.apache.org/confluence/display/NETBEANS/PRs+and+You+-+A+reviewer+Guide))
   
   </details>
   
   AI was used for 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to