Just to know Why a static variable is not serializable?
On Sat, Jan 15, 2011 at 7:44 PM, Emmanouil Batsis ma...@abiss.gr wrote:
Quoting Alexandros Karypidis akary...@yahoo.gr:
I'm using SLF4J and was wondering whether pages should declare:
private transient final Logger log =
Just to know Why a static variable is not serializable?
Because objects (instances) are serialized and static data belongs to the class
and not instances.
- Tor Iver
-
To unsubscribe, e-mail:
Hello,
I'm using SLF4J and was wondering whether pages should declare:
private transient final Logger log = LoggerFactory
.getLogger(SomePage.class);
as members. I guess that accessing a page that was saved and then re-loaded
would result in breaking logging, as the variable
try static
On Sat, Jan 15, 2011 at 3:59 PM, Alexandros Karypidis akary...@yahoo.grwrote:
Hello,
I'm using SLF4J and was wondering whether pages should declare:
private transient final Logger log = LoggerFactory
.getLogger(SomePage.class);
as members. I guess that accessing
Quoting Alexandros Karypidis akary...@yahoo.gr:
I'm using SLF4J and was wondering whether pages should declare:
private transient final Logger log = LoggerFactory
.getLogger(SomePage.class);
as members. I guess that accessing a page that was saved and then re-loaded
would