Re: synchronized class




"Thomas Hawtin" <usenet@xxxxxxxxxxxxxxxxx> wrote in message
news:43dfa14e$0$1491$ed2619ec@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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.

It has a huge effect on runtime behavior now: if you can't compile a class,
it won't run.


.



Relevant Pages

  • Re: synchronized class
    ... 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. ...
    (comp.lang.java.programmer)
  • Re: ANN (retry): C compliler, new download available
    ... The context between them is irrelevant to my statements. ... architecture or is compiled by a "normal" compiler, ... creating portable code for some architecture you can't test on. ...
    (alt.lang.asm)
  • Re: Overloading and method signatures.
    ... some part of my brain has been spoiled by Perl. ... Console.WriteLine("the number is " + theNumber); ... Knowing that the expression is in "string context", the compiler calls ...
    (microsoft.public.dotnet.csharp.general)
  • Re: Overloading and method signatures.
    ... some part of my brain has been spoiled by Perl. ... Console.WriteLine("the number is " + theNumber); ... Knowing that the expression is in "string context", the compiler calls ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: CHARACTER Function Useage Legal/Illegal?
    ... > There is nothing special about functions in this context. ... > somehow become undefined between the evaluation of the expression and ... > If I were probing for the extent of the presumed compiler bug, ... it's gotten "curiouser and curiouser" as the saying goes as ...
    (comp.lang.fortran)