MediumOne / checkthread

Automatically exported from code.google.com/p/checkthread
0 stars 0 forks source link

Anonymous inner classes can hide threading problems #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start with the original "HelloWorldThreadWithBug.java" file provided as 
an example.
2. Verify that running CheckThread reports a threading error.
3. Update the file to include an anonymous inner class.
4. Rerun CheckThread and the original threading error is no longer 
reported.

What version of the product are you using? On what operating system?
Windows Eclipse Galileo

Please provide any additional information below.
I haven't been able to identify what aspect of the anonymous inner class 
causes the problem.  Using "new MouseListener() {...}" didn't cause a 
problem, but "new CanvasState() {...}" did consistently hide the threading 
error.

Original issue reported on code.google.com by snmvaug...@gmail.com on 12 Oct 2009 at 6:32

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by joe.jco...@gmail.com on 25 Oct 2009 at 10:12