DavidGradwell opened a new issue, #5642:
URL: https://github.com/apache/netbeans/issues/5642

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   Whilst trying to move a class from one package to another in the same 
project, I repeatedly get:
   
   java.lang.NullPointerException: Cannot invoke 
"com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is 
null. Please report a bug against Java Refactoring module and attach your 
var/log/messages.log.
   
   If I proceed then the refactor fails.
   
   ### How to reproduce
   
   Set up a Java Maven project with two source packages and several java source 
files within each.  Make sure it all compiles using Clean and Build.
   
   Drag one source file from one package to the other and the problem occurs.
   
   Going right click/refactor/move hits the same issue.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Mac OS Ventura 13.2.1
   
   ### JDK
   
   Product Version: Apache NetBeans IDE 17 Java: 16-ea; OpenJDK 64-Bit Server 
VM 16-ea+27-1884 Runtime: OpenJDK Runtime Environment 16-ea+27-1884 System: Mac 
OS X version 10.16 running on x86_64; UTF-8; en_GB (nb) User directory: 
/Users/davidjlgradwell/Library/Application Support/NetBeans/17 Cache directory: 
/Users/davidjlgradwell/Library/Caches/NetBeans/17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   I have never encountered this problem before installing NetBeans 17, however 
I'm not sure when was the last time a refactor succeeded.
   
   Also, the message "Please report a bug against Java Refactoring module and 
attach your var/log/messages.log." gives an incorrect location for the log file 
or such a file does not exist (search failed).
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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