Bug 25995

Summary: Marker for "static method should be accessed in a static way"
Product: [Eclipse Project] JDT Reporter: Vijay Aravamudhan <avijayr>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Vijay Aravamudhan CLA 2002-11-11 15:00:09 EST
hi,
In some of my projects, we have code like this:
Toolkit.getDefaultToolkit().getSystemEventQueue().invokeAndWait(new Runnable())

This is the "standard" way of posting an event to the EventQueue. Can this task 
marker be made more intelligent?

I know that we can put in some filters - but that again seems like just a 
workaround, and not a real solution.
Comment 1 Vijay Aravamudhan CLA 2002-11-11 15:02:41 EST
Another example is:
Thread.currentThread().sleep(1000);
Comment 2 Philipe Mulet CLA 2002-11-11 17:13:15 EST
I agree for the filtering counter-argument.
Why don't you simply write: Thread.sleep(1000) ?

This warning is optional, you can turn it off in the compiler preferences.

Comment 3 Philipe Mulet CLA 2002-11-11 17:13:40 EST
*** Bug 25994 has been marked as a duplicate of this bug. ***
Comment 4 Philipe Mulet CLA 2002-11-11 17:15:55 EST
Is it ok to close?
Comment 5 Philipe Mulet CLA 2002-11-12 09:26:14 EST
Closing. Option exists if such pattern is meant to be desired.
Comment 6 Philipe Mulet CLA 2002-11-12 09:26:28 EST
Forgot to assign
Comment 7 Philipe Mulet CLA 2002-11-12 09:27:04 EST
Closing