Bug 8042 - ClassCastException hovering in java editor
Summary: ClassCastException hovering in java editor
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-22 16:18 EST by John Arthorne CLA
Modified: 2002-01-24 06:36 EST (History)
0 users

See Also:


Attachments
Log file showing stack trace (7.42 KB, text/plain)
2002-01-22 16:19 EST, John Arthorne CLA
no flags Details
The java file that was being edited (45.85 KB, text/plain)
2002-01-22 16:19 EST, John Arthorne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2002-01-22 16:18:07 EST
I got an internal notification error and a stack trace in my log while I was 
reading some java code.  I was not typing anything at the time.  I will attach 
the file I was editing, but I don't know exactly where the mouse was hovering at 
the time.  I was using the snippet editor, I had the class selected in the 
content outline, and I was reorganizing field declarations around the time it 
happened.  Here is a snippet of the log, I will attach the rest:

java.lang.ClassCastException: 
org.eclipse.jdt.internal.compiler.lookup.BaseTypeBinding
	at 
org.eclipse.jdt.internal.codeassist.select.SelectionOnMessageSend.resolveType(Se
lectionOnMessageSend.java:45)
Comment 1 John Arthorne CLA 2002-01-22 16:19:15 EST
Created attachment 239 [details]
Log file showing stack trace
Comment 2 John Arthorne CLA 2002-01-22 16:19:48 EST
Created attachment 240 [details]
The java file that was being edited
Comment 3 John Arthorne CLA 2002-01-22 16:30:14 EST
After much playing around I have a reproducible case.  Hover over the "hello" 
method call in this example:

public class A {
	boolean foo;
	public int boo() {
		foo.hello();
	}
}
Comment 4 David Audel CLA 2002-01-24 06:36:04 EST
find method only if receiver type is a ReferenceBinding

Fixed