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/10/26 15:09:13 UTC

[GitHub] [netbeans] mbien opened a new pull request, #4864: fixes an ambiguous method reference.

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

   The compiler can't decide if this is an `ExceptionAction` or a `Runnable` and marks the line as an error in-editor. Interestingly, the module builds fine.
   
   We can help the compiler by casting to Runnable or by using a lambda expression. Cast is more compact.
   
   
   ![ambiguous](https://user-images.githubusercontent.com/114367/198063533-e8e6fc54-07a9-4e95-bb46-709c3fad5eaa.png)
   


-- 
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] matthiasblaesing commented on pull request #4864: fixes an ambiguous method reference.

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on PR #4864:
URL: https://github.com/apache/netbeans/pull/4864#issuecomment-1309347157

   @jlahoda @singh-akhilesh could you please have a look at this? Either there is a bug in the OpenJDK javac or in the NetBeans Java Editor integration of javac. Only one of these can be right. At least I hope, that the JLS defines which method resolution is the right one.


-- 
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] mbien commented on pull request #4864: fixes an ambiguous method reference.

Posted by GitBox <gi...@apache.org>.
mbien commented on PR #4864:
URL: https://github.com/apache/netbeans/pull/4864#issuecomment-1304853438

   > The change looks ok, but it raises the question whether the javac or NetBeans java editing is wrong.
   
   yeah exactly. The module uses a different nb-javac version than the one in the editor. The one in the editor appears to be more strict.


-- 
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] matthiasblaesing commented on pull request #4864: fixes an ambiguous method reference.

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on PR #4864:
URL: https://github.com/apache/netbeans/pull/4864#issuecomment-1304847268

   The change looks ok, but it raises the question whether the javac or NetBeans java editing is wrong.


-- 
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] mbien commented on pull request #4864: fixes an ambiguous method reference.

Posted by GitBox <gi...@apache.org>.
mbien commented on PR #4864:
URL: https://github.com/apache/netbeans/pull/4864#issuecomment-1375965499

   moving this to NB18 since its super low prio if at all a problem.


-- 
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] mbien commented on pull request #4864: fixes an ambiguous method reference.

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #4864:
URL: https://github.com/apache/netbeans/pull/4864#issuecomment-1666975713

   I still see the same in-editor error in NB 18 using vanilla javac of JDK 20.0.2 and in NB 19 which currently uses javac based on JDK 21+26. The module builds fine on all tested JDKs without warnings in that class.
   
   @lahodaj @jlahoda @dbalek any idea what could cause this?


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


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

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #4864:
URL: https://github.com/apache/netbeans/pull/4864#issuecomment-1757355687

   removing milestone


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