gnodet commented on PR #1165:
URL: 
https://github.com/apache/maven-compiler-plugin/pull/1165#issuecomment-7394841463

   _Claude Code on behalf of Guillaume Nodet_
   
   **Processor classification blind spot**: Unclassified processors are only 
detected when the classification map is completely empty. If the processorPath 
contains a mix of classified and unclassified processors, the unclassified ones 
are silently ignored.
   
   **Issue**: Lines 751-755 check `classificationMap.isEmpty()`, but this only 
triggers `hasUnknown=true` when NO processors have metadata. If Processor A is 
classified as ISOLATING and Processor B has no metadata, the map is non-empty, 
so `hasUnknown` remains false and B is incorrectly treated as ISOLATING.
   
   **Fix**: After building the classification map, discover all processors on 
the processorPath (via ServiceLoader or META-INF/services) and check if any 
discovered processor is NOT in the classification map. If so, set 
`hasUnknown=true`.
   
   ```java
   // After line 755, add:
   if (!hasUnknown && processorPath != null && !processorPath.isEmpty()) {
       // Check if any discovered processors lack classification
       for (Path entry : processorPath) {
           if (hasUnclassifiedProcessors(entry, classificationMap.keySet())) {
               hasUnknown = true;
               break;
           }
       }
   }
   ```
   


-- 
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]

Reply via email to