[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16878843#comment-16878843 ] Neil C Smith commented on NETBEANS-2240: Great, glad to know it's working for you. I didn't close this when merging (unlike others) because the PR was marked partial fix. Let's treat this as complete, but open another issue and link this one in if there are other circumstances that trigger the same problem. Thanks! > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Assignee: Neil C Smith >Priority: Major > Labels: ca_survey, pull-request-available > Fix For: 11.1 > > Attachments: MyServiceTest.dump, RefactorTestProject.zip, > messages.log, netbeans-2240.mp4 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NetBeans 10, 11 and 11.1-beta2 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > I have attached a complete Maven project that consistently reproduces this > problem on two different Windows computers with OpenJDK 11, 12 and Oracle JDK > 11 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16878361#comment-16878361 ] Geertjan Wielenga commented on NETBEANS-2240: - Excellent news. Please close this issue. > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Assignee: Neil C Smith >Priority: Major > Labels: ca_survey, pull-request-available > Fix For: 11.1 > > Attachments: MyServiceTest.dump, RefactorTestProject.zip, > messages.log, netbeans-2240.mp4 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NetBeans 10, 11 and 11.1-beta2 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > I have attached a complete Maven project that consistently reproduces this > problem on two different Windows computers with OpenJDK 11, 12 and Oracle JDK > 11 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16878317#comment-16878317 ] Thomas Kellerer commented on NETBEANS-2240: --- I just tested 11.1-beta3 and refactoring works now - with my real-world project, as well as with the attached sample project. Thanks. > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Assignee: Neil C Smith >Priority: Major > Labels: ca_survey, pull-request-available > Fix For: 11.1 > > Attachments: MyServiceTest.dump, RefactorTestProject.zip, > messages.log, netbeans-2240.mp4 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NetBeans 10, 11 and 11.1-beta2 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > I have attached a complete Maven project that consistently reproduces this > problem on two different Windows computers with OpenJDK 11, 12 and Oracle JDK > 11 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16875190#comment-16875190 ] Thomas Kellerer commented on NETBEANS-2240: --- I uploaded a video that shows the following steps: * Downloading NetBeans 11.1-beta2 * Downloading the sample project from this Issue * Starting NetBeans 11.1-beta2 on an empty userdir * Opening the project * Trying to rename the method and the resulting error > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: MyServiceTest.dump, RefactorTestProject.zip, > messages.log, netbeans-2240.mp4 > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NetBeans 10, 11 and 11.1-beta2 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > I have attached a complete Maven project that consistently reproduces this > problem on two different Windows computers with OpenJDK 11, 12 and Oracle JDK > 11 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874843#comment-16874843 ] Geertjan Wielenga commented on NETBEANS-2240: - The description says, your words: {quote}Doing the refactoring with NetBeans 10 on the same project works without problems.{quote} So, it's unclear now, to me, still. I'm on Mac, that may be a difference. Will try on Windows, but not until it is very clear in which releases of NetBeans this problem occurs (please update this issue to be very explicit about this). > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874839#comment-16874839 ] Thomas Kellerer commented on NETBEANS-2240: --- This happens with NetBeans 10.0 as well. I don't really do anything else. I open the project, adjust the Java Platorm, run Clean & Build, Open the MyService class, put the cursor on the "getAnswer()" method, then choose "Refactor -> Rename", provide a different name and click on OK and then I get the NullPointerException in {noformat} Caused: java.lang.NullPointerException at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$MembersPhase.runPhase(TypeEnter.java:934){noformat} I tried with OpenJDK 11 and 12 (from AdoptOpenJDK) and with the Oracle JDK 11. Tried with an empty UserDir as well. This happens on two different computers (private and office) both running Windows 10 (1803), one is Windows 10 Professional, the other Windows 10 Home. I will record a video this evening showing all steps. > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874827#comment-16874827 ] Geertjan Wielenga commented on NETBEANS-2240: - Refactored the name without a problem. Possibly I'm doing something different to you, can't know for sure until you provide the exact steps you're doing here. > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874823#comment-16874823 ] Geertjan Wielenga commented on NETBEANS-2240: - And the description says: {quote}Doing the refactoring with NetBeans 10 on the same project works without problems.{quote} So, this problem is specific to 11.x? > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874691#comment-16874691 ] Thomas Kellerer commented on NETBEANS-2240: --- Works fine in 8.2 Note that you need to remove the dependency to the Oracle JDBC driver from the pom.xml to be able to properly build the project as that isn't available in the public maven repository (but is in the Artifactory of my company) > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874486#comment-16874486 ] Geertjan Wielenga commented on NETBEANS-2240: - And the description indicates this is specifically a problem relating to TestNG? > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874484#comment-16874484 ] Geertjan Wielenga commented on NETBEANS-2240: - Cool, will take a look. Do you know/can you check if this was also a problem with 8.2? > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874468#comment-16874468 ] Thomas Kellerer commented on NETBEANS-2240: --- As I have written before: # Download the attached project # Unpack the ZIP # Open the project # Rename e.g. MyService.getAnswer() > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874467#comment-16874467 ] Geertjan Wielenga commented on NETBEANS-2240: - Provide step by step instructions and I will try to reproduce. > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874462#comment-16874462 ] Thomas Kellerer commented on NETBEANS-2240: --- This still happens with NetBeans 11.1 Beta 2 > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 10.0, 11.0 >Reporter: Thomas Kellerer >Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16792883#comment-16792883 ] Thomas Kellerer commented on NETBEANS-2240: --- OK, it seems the project group was not the cause. It just happened again today. Re-Creating the group did not help. Switching the group did not help. Nuking the userdir and starting NetBeans with a completely empty userdir, did not help either. > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 11.0 >Reporter: Thomas Kellerer >Priority: Major > Attachments: CommentsTest.dump, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16790785#comment-16790785 ] Thomas Kellerer commented on NETBEANS-2240: --- In my attempt to isolate the problem into an independent Maven project, it turned out that the project itself isn't the problem. I switched to a different project group where the same project was open and suddenly the refactoring worked without problems. So I re-created (delete/create) my original project group and now the refactoring works there as well. Unfortunately, I wasn't smart enough to make a backup of my (defunct) project group, but maybe that information helps. I might be that there were some invalid paths stored in project group (as I moved around stuff in the file system). > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 11.0 >Reporter: Thomas Kellerer >Priority: Major > Attachments: CommentsTest.dump, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16789814#comment-16789814 ] Thomas Kellerer commented on NETBEANS-2240: --- Any refactoring that does not affect private members will do (as mentioned "rename class" or "rename method") As documented in the logfile I am using OpenJDK 11.0.2 64bit on Windows 10 > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 11.0 >Reporter: Thomas Kellerer >Priority: Major > Attachments: CommentsTest.dump, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-2240) NPE thrown when refactoring a class
[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16789800#comment-16789800 ] Geertjan Wielenga commented on NETBEANS-2240: - Step by step instructions for how to reproduce, so that we're all on exactly the same page about this problem. Also, which JDK specifically should be used to reproduce this on which operating system. > NPE thrown when refactoring a class > --- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Affects Versions: 11.0 >Reporter: Thomas Kellerer >Priority: Major > Attachments: CommentsTest.dump, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists