Re: I'm annoyed



"Mike Schilling" wrote:
Excpet that it didn't happen "as part of a normal method call or as
part of creating a new instance using the new expression"

Lew wrote:
Except that it did happen as part of a normal method call.

"Mike Schilling" wrote:
What in Java does not?  

Constructor calls.

I read "as part of a normal method call" as
"the class in loaded as a side effect of calling a method".  This
wasn't a side effect, it was the purpose of the call.

There is no mention of "side effect" behavior in the Javadocs, so you
are pulling that rabbit out of a hat.

I read "as part of a normal method call" as distinct from the next
clause in the very same sentence, "or as part of creating a new
instance using the new expression". It is clear, since there is not a
Java concept of "normal method call" otherwise, that they meant normal
method vs. new constructor call. This is consistent with the sentence
structure, which clearly contrasts the "normal method call" clause
from the "new expression" clause.

There is no "normal vs. abnormal" method call distinction in Java, so
that cannot be relevant to what they meant.

--
Lew
.