You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Austin Stephens (JIRA)" <ji...@apache.org> on 2018/05/31 15:46:00 UTC

[jira] [Comment Edited] (NETBEANS-892) Refactor -> Move Class into other class breaks multicatches and lambas in destination class

    [ https://issues.apache.org/jira/browse/NETBEANS-892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16496731#comment-16496731 ] 

Austin Stephens edited comment on NETBEANS-892 at 5/31/18 3:45 PM:
-------------------------------------------------------------------

Ok, it appears it only happens when moving a class into another class, but it modifies every file in the project, even if they are unrelated. The example project has versioning on it so you can see what it changed.
* It modifies generated code in read-only blocks. This will be a pain with versioning since the user would appear to have modified code for no reason whatsoever.
* It breaks the files it touches. Have fun going through your large project and trying to figure out what changes were yours and what changes were done by the refactoring engine being stupid.


was (Author: sir intellegence):
Ok, it appears it only happens when moving a class into another class, but it modifies every file in the project, even if they are unrelated. The 
* It modifies generated code in read-only blocks. This will be a pain with versioning since the user would appear to have modified code for no reason whatsoever.
* It breaks the files it touches. Have fun going through your large project and trying to figure out what changes were yours and what changes were done by the refactoring engine being stupid.

> Refactor -> Move Class into other class breaks multicatches and lambas in destination class
> -------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-892
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-892
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Refactoring
>    Affects Versions: 9.0
>            Reporter: Austin Stephens
>            Priority: Blocker
>         Attachments: EvilRefactorBug.zip
>
>
> Move the class "MoveMe" into the class "Killer". Things break. Many, many thing break.



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