Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27590

Re: praise

Newsgroups comp.lang.java.programmer
Date 2014-02-25 15:01 -0800
References <praise-20140225152547@ram.dialup.fu-berlin.de>
Message-ID <b19ab8ff-6c01-4435-a38e-ab2b92dd584d@googlegroups.com> (permalink)
Subject Re: praise
From Lew <lewbloch@gmail.com>

Show all headers | View raw


Stefan Ram wrote:
>   One can even learn from it notions such as »package-tree
>   semantics« versus »traditional package semantics« or facts
>   such as »a class's constructors and methods can run prior to
>   its initialization« (»its« = »the class'«).

Strange. The JLS says:
http://docs.oracle.com/javase/specs/jls/se7/html/jls-12.html#jls-12.4
"A class or interface type T will be initialized immediately before the first occurrence of any one of the following:
 - T is a class and an instance of T is created.
 - T is a class and a static method declared by T is invoked.
 - A static field declared by T is assigned.
 - A static field declared by T is used and the field is not a constant variable (§4.12.4).
 - T is a top level class (§7.6), and an assert statement (§14.10) lexically nested within T (§8.1.3) is executed."

So that contradicts.

-- 
Lew

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: praise Lew <lewbloch@gmail.com> - 2014-02-25 15:01 -0800
  Re: praise markspace <markspace@nospam.nospam> - 2014-02-25 16:46 -0800
    Re: praise Mike Amling <mamling@chaff.us> - 2014-03-04 13:06 -0600

csiph-web