Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
For commit
commit 603d64ca26e9c0852831bebeec0f7e55857a7797 Merge: 460608ee8 32fc0eaa5 Date: Tue Dec 19 20:49:41 2017 +0100
To reproduce:
I was creating an ant task, that contains a "getProject()" method that returns an "Ant project". I wanted to retrieve a property of the project, so I typed "getProject().", and then the autocompletion hint failed and the following exception was thrown
Exception:
java.lang.AssertionError at jdk.compiler/com.sun.tools.javac.comp.Attr.visitTree(Attr.java:4310) at jdk.compiler/com.sun.tools.javac.tree.JCTree$Visitor.visitCatch(JCTree.java:3069) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCatch.accept(JCTree.java:1345) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:653) at jdk.compiler/com.sun.tools.javac.comp.Attr.visitErroneous(Attr.java:4303) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCErroneous.accept(JCTree.java:2909) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:653) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:700) at jdk.compiler/com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1678) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1446) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:653) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:723) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:742) at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1203) at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:63) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1014) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:653) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:723) at jdk.compiler/com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1094) at org.netbeans.lib.nbjavac.services.NBAttr.visitMethodDef(NBAttr.java:57) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:866) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:653) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:723) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4562) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4454) at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4383) at jdk.compiler/com.sun.tools.javac.api.JavacTrees.getElement(JavacTrees.java:390) at jdk.compiler/com.sun.tools.javac.api.JavacTrees.getElement(JavacTrees.java:158) at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$Context.initMethodContext(JPACodeCompletionProvider.java:500) at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$Context.getMethod(JPACodeCompletionProvider.java:604) at org.netbeans.modules.j2ee.persistence.editor.completion.ETCompletionContextResolver.resolve(ETCompletionContextResolver.java:57) at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery$TaskUserAction.run(JPACodeCompletionProvider.java:244) at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery$TaskUserAction.run(JPACodeCompletionProvider.java:220) at org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsMetadataModelImpl$1.call(EntityMappingsMetadataModelImpl.java:59) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runCallable(AnnotationModelHelper.java:231) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.access$100(AnnotationModelHelper.java:54) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$2.run(AnnotationModelHelper.java:159) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$2.run(AnnotationModelHelper.java:156) at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:60) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:357) at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:340) 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:311) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:430) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTask(AnnotationModelHelper.java:156) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTask(AnnotationModelHelper.java:124) at org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsMetadataModelImpl.runReadAction(EntityMappingsMetadataModelImpl.java:57) at org.netbeans.modules.j2ee.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:97) at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.run(JPACodeCompletionProvider.java:208) at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.access$600(JPACodeCompletionProvider.java:81) at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery$Task.run(JPACodeCompletionProvider.java:258) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114) 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:81) at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.query(JPACodeCompletionProvider.java:118) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
NOTE: The stack trace seems truncated after "task failed due to".