Bug 83756 - [hovering] exception in hover thread
Summary: [hovering] exception in hover thread
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-01-26 15:20 EST by Adam Kiezun CLA
Modified: 2007-06-22 10:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2005-01-26 15:20:34 EST
3.1M4
not sure how this happened.
I was editing code that used some type params (before I actually declared them)

Exception in thread "Text Viewer Hover Presenter" java.lang.InterruptedException
	at org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:176)
	at org.eclipse.jdt.core.dom.CompilationUnitResolver.<init>
(CompilationUnitResolver.java:109)
	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve
(CompilationUnitResolver.java:435)
	at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST
(ASTParser.java:708)
	at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:574)
	at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST
(ASTProvider.java:563)
	at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST
(ASTProvider.java:494)
	at 
org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo
(NLSStringHover.java:84)
	at 
org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo
(BestMatchHover.java:102)
	at 
org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInf
o(JavaEditorTextHoverProxy.java:69)
	at org.eclipse.jface.text.TextViewerHoverManager$4.run
(TextViewerHoverManager.java:160)
Comment 1 Dani Megert CLA 2005-01-27 04:57:50 EST
Nothing more in .log?
Comment 2 Philipe Mulet CLA 2005-02-03 05:15:45 EST
Looks like the thread got interrupted from the outside.
Comment 3 Dani Megert CLA 2005-02-03 05:23:33 EST
Adam, do you have more details?
Comment 4 Adam Kiezun CLA 2005-02-03 09:13:16 EST
not much.
i think i was writting code that referred to type parameters before I declared
them in the class itself. but other than that i'm not sure.
that log file is gone now :(
Comment 5 Markus Keller CLA 2006-07-25 07:02:00 EDT
I just saw something similar on the console (nothing in the log).

It looks like org.eclipse.jface.text.TextViewerHoverManager.TextViewerHoverManager(...).new ITextListener() {...}.textChanged(TextEvent) is causing this, since it sends an explicit "fThread.interrupt();".

I think the "Text Viewer Hover Presenter" thread's run() method should try to catch and swallow InterruptedExceptions.


Exception in thread "Text Viewer Hover Presenter" java.lang.InterruptedException
        at org.eclipse.jdt.internal.compiler.parser.Parser.consumeToken(Parser.java:7170)
        at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:8876)
        at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9219)
        at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.parseStatements(MethodDeclaration.java:117)
        at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.parseMethod(TypeDeclaration.java:805)
        at org.eclipse.jdt.internal.compiler.parser.Parser.getMethodBodies(Parser.java:8168)
        at org.eclipse.jdt.internal.compiler.SourceElementParser.parseCompilationUnit(SourceElementParser.java:1527)
        at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:135)
        at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:229)
        at org.eclipse.jdt.internal.core.SourceRefElement.generateInfos(SourceRefElement.java:107)
        at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:505)
        at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:249)
        at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:235)
        at org.eclipse.jdt.internal.core.SearchableEnvironment.find(SearchableEnvironment.java:95)
        at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:163)
        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:122)
        at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:178)
        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findImport(CompilationUnitScope.java:439)
        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findSingleImport(CompilationUnitScope.java:493)
        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInImports(CompilationUnitScope.java:357)
        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:426)
        at org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver.resolve(HierarchyResolver.java:725)
        at org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver.resolve(HierarchyResolver.java:542)
        at org.eclipse.jdt.internal.core.hierarchy.HierarchyBuilder.buildSupertypes(HierarchyBuilder.java:113)
        at org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyBuilder.build(IndexBasedHierarchyBuilder.java:134)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.compute(TypeHierarchy.java:300)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.refresh(TypeHierarchy.java:1235)
        at org.eclipse.jdt.internal.core.CreateTypeHierarchyOperation.executeOperation(CreateTypeHierarchyOperation.java:90)
        at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:720)
        at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:779)
        at org.eclipse.jdt.internal.core.SourceType.newSupertypeHierarchy(SourceType.java:697)
        at org.eclipse.jdt.internal.core.SourceType.newSupertypeHierarchy(SourceType.java:649)
        at org.eclipse.jdt.ui.JavadocContentAccess.findDocInHierarchy(JavadocContentAccess.java:148)
        at org.eclipse.jdt.ui.JavadocContentAccess.getContentReader(JavadocContentAccess.java:73)
        at org.eclipse.jdt.ui.JavadocContentAccess.getHTMLContentReader(JavadocContentAccess.java:115)
        at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:153)
        at org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover.getHoverInfo(AbstractJavaEditorTextHover.java:129)
        at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo(BestMatchHover.java:102)
        at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo(JavaEditorTextHoverProxy.java:69)
        at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:160)
Comment 6 Dani Megert CLA 2007-06-22 09:59:17 EDT
Get rid of deprecated state.
Comment 7 Dani Megert CLA 2007-06-22 10:04:33 EDT
.