Re: synchronized class
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 18:02:01 +0000
John Goche wrote:
I would like to know whether the "synchronized class" construct is valid in JDK 1.5 and whether it has any meaning at all in the context of multithreaded programming or whether the compiler will ignore it altogether. I have read some posts stating that "synchronized class" is not a legal way to begin a Java class definitions. Any comments on this would be sincerely appreciated.
JDK 1.0.2 (not sure about 1.1, certainly not 1.2) allowed "synchronized class". That was a bug. IIRC, it set the equivalent but unassigned bit in class file. It had, and has still, absolutely no effect on runtime behaviour.
Tom Hawtin -- Unemployed English Java programmer http://jroller.com/page/tackline/ .
- Follow-Ups:
- Re: synchronized class
- From: Mike Schilling
- Re: synchronized class
- References:
- synchronized class
- From: John Goche
- synchronized class
- Prev by Date: Re: java money
- Next by Date: Re: Problems while accessing Synchronized method.
- Previous by thread: Re: synchronized class
- Next by thread: Re: synchronized class
- Index(es):
Relevant Pages
|