Bug 277145

Summary: [ErrorHandling] Error persists after being corrected
Product: [Eclipse Project] JDT Reporter: Jonathan Camilleri <camilleri.jon>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.4.2   
Target Milestone: 3.5 RC2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Source code
none
Source code none

Description Jonathan Camilleri CLA 2009-05-20 10:38:25 EDT
Created attachment 136507 [details]
Source code

Build ID: Build id: M20090211-1700

Steps To Reproduce:
Review this code in the attached source:

Problem 1
package homenetwork.bkr.training;

import java.awt.event.ActionListener;;

public class TimerTest {
	public static void main (String[] args)
	{
		ActionListener 
//now I've added an import but the error still remains...er?
}

}

Problem 2

Review the following code snippet:
package homenetwork.bkr.training;

import java.awt.*; //I wrote this import
import java.awt.event.ActionEvent; //why did I have to write this?
import java.util.*;

public class TimePrinter {
	public static void actionPerformed (ActionEvent event)
	{
		Date now = new Date();
		System.out.println("At the tone, the time is: " + now);
		Toolkit.getDefaultToolkit().beep();
	}
}


More information:
Comment 1 Jonathan Camilleri CLA 2009-05-20 10:39:06 EDT
Source code doesn't compile it is just for illustration.  Why doesn't it compile?  I'll have to check with the author :)
Comment 2 Olivier Thomann CLA 2009-05-20 13:55:54 EDT
Problem 1:
The code is not syntactically correct. Please fix the syntax error first.

Problem 2:
java.awt.* doesn't include java.awt.event.ActionEvent.

Closing as INVALID.
Reopen if this doesn't answer your concerns.
Comment 3 Olivier Thomann CLA 2009-05-20 13:56:12 EDT
Closing as INVALID.
Comment 4 Jonathan Camilleri CLA 2009-05-20 14:00:22 EDT
The point in reporting bugs is not to have the code written perfectly, since an IDE is meant to be used during development, rather when the code is complete, imho.
Comment 5 Jonathan Camilleri CLA 2009-05-20 14:58:48 EDT
Created attachment 136553 [details]
Source code 

This is the working version.
Comment 6 Olivier Thomann CLA 2009-05-22 10:30:28 EDT
Verified for 3.5RC2 using I20090521-2000.