Bug 265883 - Unexpected runtime error while computing a text hover
Summary: Unexpected runtime error while computing a text hover
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Editor & Outline View (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Jeffrey Overbey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-23 16:11 EST by Jeffrey Overbey CLA
Modified: 2009-06-20 00:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Overbey CLA 2009-02-23 16:11:49 EST
Unexpected runtime error while computing a text hover

(while working on Fortran Collections code)

java.lang.IllegalArgumentException
	at org.eclipse.photran.core.vpg.PhotranTokenRef.<init>(PhotranTokenRef.java:32)
	at org.eclipse.photran.core.vpg.PhotranTokenRef.<init>(PhotranTokenRef.java:37)
	at org.eclipse.photran.internal.core.lexer.Token.getTokenRef(Token.java:370)
	at org.eclipse.photran.internal.core.analysis.binding.Intrinsics.resolveIntrinsic(Intrinsics.java:37)
	at org.eclipse.photran.internal.ui.editor_vpg.DefinitionMap.lookup(DefinitionMap.java:104)
	at org.eclipse.photran.internal.ui.editor_vpg.DefinitionMap.lookup(DefinitionMap.java:74)
	at org.eclipse.photran.internal.ui.editor_vpg.hover.FortranDeclarationHover.getHoverInfo(FortranDeclarationHover.java:93)
	at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168)
Comment 1 Jeffrey Overbey CLA 2009-06-20 00:53:03 EDT
I can't reproduce this, but I added a wrapper around FortranDeclarationHover line 93 to silently ignore any exceptions that happen to be thrown