Bug 95963

Summary: (3.1M7) Compiler error when parameterizing with missing inner type.
Product: [Eclipse Project] JDT Reporter: David Gates <gatesda>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: blocker    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.