You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mbien (via GitHub)" <gi...@apache.org> on 2025/09/26 19:46:15 UTC

Re: [PR] fixes an ambiguous method reference in SearchTask. [netbeans]

mbien commented on PR #4864:
URL: https://github.com/apache/netbeans/pull/4864#issuecomment-3340244934

   revisited this old PR now that we have enough infrastructure to be able to use `javac.release=11`.. and as soon the release flag is set it does also fail in the build:
   ```
   /home/mbien/NetBeansProjects/netbeans/platform/api.search/src/org/netbeans/modules/search/SearchTask.java:86: error: reference to writeAccess is ambiguous
               Mutex.EVENT.writeAccess(resultViewPanel::requestFocusInWindow);
     both method <T>writeAccess(ExceptionAction<T>) in Mutex and method writeAccess(Runnable) in Mutex match
     where T is a type-variable:
       T extends Object declared in method <T>writeAccess(ExceptionAction<T>)
   ```
   this would make the behavior at least consistent between embedded javac use and CLI javac use - which was my main worry tbh. (cc @lahodaj )
   
   Will refresh this PR and bump the module to release 11 which would make this essentially PR part of https://github.com/apache/netbeans/issues/8813


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