I've got a reproducable error during refactoring, but i cannot give any source code. it also is a big project, so i cannot easily build a MRE.

Do with it what you will.

during rename of a class:


Caused: java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null
        at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitApply(Flow.java:1769)
at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1816)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
        at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:455)
        at 
com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitVarDef(Flow.java:1486)
        at 
com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:1022)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
        at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:455)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:58)
        at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitBlock(Flow.java:1494)
        at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1092)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
        at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:455)
at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitMethodDef(Flow.java:1460)
        at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:916)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
        at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:455)
        at 
com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitClassDef(Flow.java:1423)
        at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:814)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
        at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:455)
        at 
com.sun.tools.javac.comp.Flow$FlowAnalyzer.analyzeTree(Flow.java:1862)
        at 
com.sun.tools.javac.comp.Flow$FlowAnalyzer.analyzeTree(Flow.java:1852)
        at com.sun.tools.javac.comp.Flow.analyzeTree(Flow.java:231)
        at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1419)
        at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1383)
        at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:404)
at com.sun.tools.javac.api.JavacTaskImpl.lambda$analyze$1(JavacTaskImpl.java:379) at com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
        at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:379)
Caused: java.lang.IllegalStateException
        at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:771) at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:426) at org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:90)
        at 
org.netbeans.api.java.source.WorkingCopy.toPhase(WorkingCopy.java:192)
at org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.setWorkingCopy(RefactoringVisitor.java:111) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:437) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:420) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.lambda$processFiles$1(JavaRefactoringPlugin.java:325)
        at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:675)
        at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:665)
at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:504) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:169) at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:140) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:85) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:454) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:425) at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:686) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:323) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:264) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:246) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.createAndAddElements(JavaRefactoringPlugin.java:338) at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin.prepare(RenameRefactoringPlugin.java:627) [catch] at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:417) at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:401) at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:212) at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:1063)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1420)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2035)



--
create firmware without programming https://www.bendyroad.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

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



Reply via email to