Bug 277145 - [ErrorHandling] Error persists after being corrected
Summary: [ErrorHandling] Error persists after being corrected
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.5 RC2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-20 10:38 EDT by Jonathan Camilleri CLA
Modified: 2009-05-22 10:30 EDT (History)
1 user (show)

See Also:


Attachments
Source code (976 bytes, application/octet-stream)
2009-05-20 10:38 EDT, Jonathan Camilleri CLA
no flags Details
Source code (1.16 KB, application/RAR)
2009-05-20 14:58 EDT, Jonathan Camilleri CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.