Bug 95963 - (3.1M7) Compiler error when parameterizing with missing inner type.
Summary: (3.1M7) Compiler error when parameterizing with missing inner type.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-19 12:19 EDT by David Gates CLA
Modified: 2005-05-27 09:29 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 David Gates CLA 2005-05-19 12:19:17 EDT
//Example:
class Foo<T> {}
class Bar extends Foo<Bar.Baz> {}

Above code causes an internal compiler NullPointerException.  Trying to copy 
code from editor or focus on error tooltip triggers an error popup that says:

The command for the key you pressed failed

Reason:
java.lang.NullPointerException
Comment 1 David Gates CLA 2005-05-19 12:20:21 EDT
J2SE 5 compliance was on, otherwise used default settings.
Comment 2 David Gates CLA 2005-05-19 12:54:01 EDT
Only causes internal compiler error in clean environment, but creates endless 
'An internal error occurred during: "Requesting Java AST from selection"' error 
popups in my production environment.

This is a serious problem, since this happens whenever the compiler doesn't 
think the inner class exists, such as when there are unmatched brackets or an 
unfinished method declaration.

Sorry, but I have no idea which setting might be causing the difference.
Comment 3 Kent Johnson CLA 2005-05-24 12:53:53 EDT
Can you paste the complete stack trace please.

Looks like a duplicate of bug 96134.
Comment 4 Kent Johnson CLA 2005-05-24 15:20:35 EDT
Added GenericType test682
Comment 5 Maxime Daniel CLA 2005-05-27 09:24:05 EDT
Verified on build I20050527-0010.