Bug 96944 - [1.5][assist] shoud not suggest type parameters after new
Summary: [1.5][assist] shoud not suggest type parameters after new
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-27 06:47 EDT by Maxime Daniel CLA
Modified: 2005-06-10 12:22 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (1.54 KB, text/plain)
2005-05-31 04:56 EDT, David Audel CLA
no flags Details
Tests patch (2.48 KB, text/plain)
2005-05-31 04:57 EDT, David Audel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Daniel CLA 2005-05-27 06:47:20 EDT
In the following example, with | figuring the insertion point:
class E <T> {
	T u = new |
}
code assist suggests T, wherease calling new on T is not correct.
Build I20050527-0010.
(Side effect of https://bugs.eclipse.org/bugs/show_bug.cgi?id=95505)
Comment 1 David Audel CLA 2005-05-31 04:56:24 EDT
Created attachment 22012 [details]
Proposed patch
Comment 2 David Audel CLA 2005-05-31 04:57:14 EDT
Created attachment 22013 [details]
Tests patch
Comment 3 Philipe Mulet CLA 2005-06-02 04:42:25 EDT
+1 for RC2
Comment 4 David Audel CLA 2005-06-02 06:27:17 EDT
Fixed and test added
  CompletionTest_1_5#test0230() -> test0232()
Comment 5 Olivier Thomann CLA 2005-06-06 15:35:31 EDT
Verified using N20050606-0010 + JDT/Core HEAD
Comment 6 Olivier Thomann CLA 2005-06-10 12:22:50 EDT
Verified in I20050610-0010.