You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (JIRA)" <ji...@apache.org> on 2018/04/26 21:40:00 UTC
[jira] [Resolved] (NETBEANS-345) "Move Inner to Outer Level"
refactoring adds erroneous "" to the new outer class'
source
[ https://issues.apache.org/jira/browse/NETBEANS-345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laszlo Kishalmi resolved NETBEANS-345.
--------------------------------------
Resolution: Fixed
Fix Version/s: 9.0
Marked resolved as the corresponding PR has been merged.
> "Move Inner to Outer Level" refactoring adds erroneous "<captured wildcard>" to the new outer class' source
> -----------------------------------------------------------------------------------------------------------
>
> Key: NETBEANS-345
> URL: https://issues.apache.org/jira/browse/NETBEANS-345
> Project: NetBeans
> Issue Type: Bug
> Components: java - Refactoring
> Affects Versions: Next
> Reporter: Daniel Trebbien
> Priority: Major
> Labels: pull-request-available
> Fix For: 9.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Steps to reproduce:
> # Open the following source file:
> {code:java}
> package bugs;
> import java.util.List;
> import java.util.concurrent.RunnableFuture;
> public class MoveInnerToOuterTest {
> public static class Inner {
> public Inner(List<? extends Runnable> runnables) {
> assert runnables.stream()
> .noneMatch((r) -> r instanceof RunnableFuture);
> }
> }
> }
> {code}
> # Right click on {{class Inner}} and select *Refactor > Move Inner to Outer Level…*
> # Click the "Refactor" button on the dialog.
> The newly-generated {{Inner.java}} has the following contents:
> {code:java}
> package bugs;
> import java.util.List;
> import java.util.concurrent.RunnableFuture;
> public class Inner {
>
> public Inner(List<? extends Runnable> runnables) {
> assert runnables.stream().noneMatch((<captured wildcard> r) -> r instanceof RunnableFuture);
> }
> }
> {code}
> Notice the invalid "<captured wildcard>".
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists