Bug 278047

Summary: [ErrorHandling] Error is misleading ...
Product: [Eclipse Project] JDT Reporter: Jonathan Camilleri <camilleri.jon>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.4.2   
Target Milestone: 3.6 M1   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Source code
none
source code none

Description Jonathan Camilleri CLA 2009-05-27 09:47:55 EDT
Created attachment 137330 [details]
Source code

Build ID: Build id: M20090211-1700

Steps To Reproduce:
As I'm typing this code, I get prompted: The constructor Insets() is undefined.  The first suggestion that appears is misleading because it is not valid syntax.  I haven't checked the rest because there is a whole list.

add(faceLabel, new GridBagConstraints(0,0,0,0,0,0,0,0, new Insets(getDefaultCloseOperation(), defaultCloseOperation, defaultCloseOperation, defaultCloseOperation), 0, 0));




More information:
NOTE: I have included a video to demonstrate this issue.

NOTE 2: Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

NOTE 3: Source code does not run (see Bug#278042)
Comment 1 Jonathan Camilleri CLA 2009-05-27 09:51:28 EDT
Created attachment 137337 [details]
source code

Replaced source code because there was an error in the original source.
Comment 2 Olivier Thomann CLA 2009-07-22 14:06:48 EDT
I don't get any error with the second attachment.
Closing as INVALID.
Reopen if you have better steps to reproduce.
Comment 3 Frederic Fusier CLA 2009-08-03 10:45:24 EDT
Verified for 3.6M1