Bug 94244 - [content assist] stack overflow in GenericJavaTypeProposal
Summary: [content assist] stack overflow in GenericJavaTypeProposal
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P2 major (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Tom Hofmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 94269 94551 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-10 05:16 EDT by Tom Hofmann CLA
Modified: 2005-05-18 07:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2005-05-10 05:16:58 EDT
I20050509-2000

- have this code (| == caret):

import java.util.HashMap ;
import java.util.Map;

class GenericTypes {
	Map<String, ? extends Number> createMap() {
		
		return new HashMa|
	}
}

- invoke content assist
-> eclipse hangs, stack overflow in GenericJavaTypeProposal

The reason is the lazy computation of some fields that are interdependent. The
fix is to inline the call to getContextInformationPosition in the constructor of
GenericJavaTypeProposal.ContextInformation.
Comment 1 Tom Hofmann CLA 2005-05-10 05:18:33 EDT
should fix for M7 as the type parameter guessing is severely broken. Advertised
feature for M7.
Comment 2 Dani Megert CLA 2005-05-10 05:30:24 EDT
approved for M7 candidate build
Comment 3 Tom Hofmann CLA 2005-05-10 05:34:14 EDT
fixed > 20050510
Comment 4 Dani Megert CLA 2005-05-11 02:29:26 EDT
*** Bug 94551 has been marked as a duplicate of this bug. ***
Comment 5 Christof Marti CLA 2005-05-13 06:17:17 EDT
verified in I20050513-0010
Comment 6 David Audel CLA 2005-05-18 07:49:50 EDT
*** Bug 94269 has been marked as a duplicate of this bug. ***