[ 
https://issues.apache.org/jira/browse/NETBEANS-1561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Eckstein updated NETBEANS-1561:
---------------------------------------
    Description: 
_(Edit: When reporting this first, I neglected to mention that in certain 
situations when this NullPointerException is triggered, refactoring is actually 
broken.)_

 

I found a reproducible case of NullPointerException when trying to 
refactor-move a class. In the attached testProject1, each module contains two 
classes. In mod1a, class Test1A2.java can be moved to package mod1a.pkg without 
issue. Trying the same thing in mod1b with Test1B2.java results in an exception.

*Importantly, I can still select 'Refactor' afterwards, but the classes just 
are moved without refactoring.*

Not sure what triggers this, but simpler projects with less class/module 
relations seem to work fine.

Platform:

Linux x86_64

openjdk version "11.0.1" 2018-10-16

NetBeans-dev-incubator-netbeans-linux-882-on-20181025-release.zip

(I've seen this error since Netbeans 9.0/JDK9)

  was:
_(Edit: When reporting this first, I neglected to mention that refactoring in 
certain situations when this NullPointerException is triggered, refactoring is 
actually broken.)_

 

I found a reproducible case of NullPointerException when trying to 
refactor-move a class. In the attached testProject1, each module contains two 
classes. In mod1a, class Test1A2.java can be moved to package mod1a.pkg without 
issue. Trying the same thing in mod1b with Test1B2.java results in an exception.

*Importantly, I can still select 'Refactor' afterwards, but the classes just 
are moved without refactoring.*

Not sure what triggers this, but simpler projects with less class/module 
relations seem to work fine.

Platform:

Linux x86_64

openjdk version "11.0.1" 2018-10-16

NetBeans-dev-incubator-netbeans-linux-882-on-20181025-release.zip

(I've seen this error since Netbeans 9.0/JDK9)


> Reproducible NullPointerException at Refactor-Move in Java Modular Project 
> breaks refactoring
> ---------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-1561
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1561
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Refactoring
>    Affects Versions: 10.0
>            Reporter: Andreas Eckstein
>            Priority: Major
>              Labels: ca_survey
>         Attachments: testProject1.zip
>
>
> _(Edit: When reporting this first, I neglected to mention that in certain 
> situations when this NullPointerException is triggered, refactoring is 
> actually broken.)_
>  
> I found a reproducible case of NullPointerException when trying to 
> refactor-move a class. In the attached testProject1, each module contains two 
> classes. In mod1a, class Test1A2.java can be moved to package mod1a.pkg 
> without issue. Trying the same thing in mod1b with Test1B2.java results in an 
> exception.
> *Importantly, I can still select 'Refactor' afterwards, but the classes just 
> are moved without refactoring.*
> Not sure what triggers this, but simpler projects with less class/module 
> relations seem to work fine.
> Platform:
> Linux x86_64
> openjdk version "11.0.1" 2018-10-16
> NetBeans-dev-incubator-netbeans-linux-882-on-20181025-release.zip
> (I've seen this error since Netbeans 9.0/JDK9)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to