You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/06/22 15:22:37 UTC

[GitHub] [netbeans] sdedic opened a new pull request, #4270: Recursively print type parameter's type parameters.

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

   This error can be reproduced i.e. on `micronaut-core/http` project; the project mixes Groovy + Java sources. Java references Groovy classes, so our `GroovyVirtualSourceProvider` generates a java stub source during indexing, so Java indexer is happy and can resolve the class' symbols.
   
   But it seems that the stub generator stops at 1st level of type parameters and does not print potential type parameters of the actual type parameter(s). So instead of `Map<String, Map<String, ClassNode>>` it prints just `Map<String, Map>`. Javac will then complain about usage of such (incompatible) type in the java source which expects the correct one.
   
   The fix is simple: recursively print the complete type incl. parameters and bounds.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


[GitHub] [netbeans] sdedic merged pull request #4270: Recursively print type parameter's type parameters.

Posted by GitBox <gi...@apache.org>.
sdedic merged PR #4270:
URL: https://github.com/apache/netbeans/pull/4270


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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