slachiewicz commented on issue #210:
URL: 
https://github.com/apache/maven-dependency-analyzer/issues/210#issuecomment-5742930879

   This is a compiler difference, not an analyzer gap. For `s.getList().size()` 
with `List<MyObject> getList()`, javac compiles the caller without `MyObject` 
on the classpath (erasure), so a compile-scope requirement does not exist for a 
Maven build; only ecj refuses. Where the type is named — a typed local 
(`LocalVariableTypeTable`, present with Maven's default `-g`), a field, a 
signature, or a method call on the element — the analyzer already reports it. 
Verified with 1.17.2 against javac 27 and ecj 3.46.100.
   


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