Sory for my bad explanation, i will try again:
1. @Logger inserts instance of org.jboss.seam.log.LogImpl in a field of my
component (lets name it 'mylog', not marked as transient)
2. LogImpl class has field log marked as transient.
3. After postback, 'myname' is restored, but it's LogImpl.log
So i looked at implementation of LogImpl class: log field is initialized in
ctors and readObject. Nor ctors, nor readObject() are called in postback, i
think it is bug.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985367#3985367
Reply to the post :
LogImpl has the following method:
void readObject(ObjectInputStream ois)
| throws ClassNotFoundException, IOException
|{
| ois.defaultReadObject();
| log = LogFactory.getLog(category);
|}
Are you trying to tell me that Java serialization is broken?
Right, you should not declare the Log field transient, it is injected at bean
instantiation time, logging has nothing to do with Seam bijection!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985302#3985302
Reply to the post :