mbien commented on issue #4470:
URL: https://github.com/apache/netbeans/issues/4470#issuecomment-2278951713

   still reproducible with javac 23
   change
   ```java
   ArrayList<Object> arrayList = new ArrayList<>();
   ```
   into
   ```java
   ArrayList<Object> arrayList = new ArrayList<ArrayList>();
   ```
   and it should cause
   ```
   Caused: java.lang.AssertionError: Analyzer error when processing: 
ArrayList<Object> arrayList = new ArrayList<ArrayList>():
   java.lang.NullPointerException: Cannot invoke 
"com.sun.tools.javac.code.Type.isPartial()" because "s" is null
   ...
   ```
   running javac over CLI would result in :
   ```
   NewClass.java:[16,39] incompatible types: 
java.util.ArrayList<java.util.ArrayList> cannot be converted to 
java.util.ArrayList<java.lang.Object>
   ```


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