On 11/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Author: laurieh
> Date: Wed Nov 30 19:56:35 2005
> New Revision: 350142
>
> URL: http://svn.apache.org/viewcvs?rev=350142&view=rev
> Log:
> Fix non-static Log instance, which was breaking serializability.


There was a thread somewhere recently (I'm afraid I don't recall where)
about going in the opposite direction, for a good reason that I don't
recall. I'm hoping someone else here saw the same thing and has a better
memory. ;-) IIRC, the solution was to make the log instance transient and
access it through a getter.

--
Martin Cooper


Modified:
>
>     
> struts/action/trunk/src/java/org/apache/struts/action/DynaActionFormClass.java
>
> Modified:
> struts/action/trunk/src/java/org/apache/struts/action/DynaActionFormClass.java
> URL:
> http://svn.apache.org/viewcvs/struts/action/trunk/src/java/org/apache/struts/action/DynaActionFormClass.java?rev=350142&r1=350141&r2=350142&view=diff
>
> ==============================================================================
> ---
> struts/action/trunk/src/java/org/apache/struts/action/DynaActionFormClass.java
> (original)
> +++
> struts/action/trunk/src/java/org/apache/struts/action/DynaActionFormClass.java
> Wed Nov 30 19:56:35 2005
> @@ -49,7 +49,7 @@
>
> public class DynaActionFormClass implements DynaClass, Serializable {
>
> -    private Log log = LogFactory.getLog(DynaActionFormClass.class);
> +    private static Log log = LogFactory.getLog(DynaActionFormClass.class
> );
>
>      // -----------------------------------------------------------
> Constructors
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to