jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanpa...@apache.org
Subject svn commit: r1444279 - in /incubator/jspwiki/trunk/src/org/apache/wiki/event: WikiSecurityEvent.java WorkflowEvent.java
Date Fri, 08 Feb 2013 23:15:21 GMT
Author: juanpablo
Date: Fri Feb  8 23:15:21 2013
New Revision: 1444279

URL: http://svn.apache.org/r1444279
Log:
removed Java5 compilation problems. Argh.

Modified:
    incubator/jspwiki/trunk/src/org/apache/wiki/event/WikiSecurityEvent.java
    incubator/jspwiki/trunk/src/org/apache/wiki/event/WorkflowEvent.java

Modified: incubator/jspwiki/trunk/src/org/apache/wiki/event/WikiSecurityEvent.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/org/apache/wiki/event/WikiSecurityEvent.java?rev=1444279&r1=1444278&r2=1444279&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/org/apache/wiki/event/WikiSecurityEvent.java (original)
+++ incubator/jspwiki/trunk/src/org/apache/wiki/event/WikiSecurityEvent.java Fri Feb  8 23:15:21
2013
@@ -210,7 +210,8 @@ public final class WikiSecurityEvent ext
         StringBuffer msg = new StringBuffer();
         msg.append( "WikiSecurityEvent." );
         msg.append(  eventName( getType() ) );
-        msg.append( " [source=" + getSrc().toString() );
+        Object obj = getSrc(); // cfr. https://forums.oracle.com/forums/thread.jspa?threadID=1184115
+        msg.append( " [source=" + obj.toString() );
         if( m_principal != null )
         {
             msg.append( ", princpal=" + m_principal.getClass().getName() );

Modified: incubator/jspwiki/trunk/src/org/apache/wiki/event/WorkflowEvent.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/org/apache/wiki/event/WorkflowEvent.java?rev=1444279&r1=1444278&r2=1444279&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/org/apache/wiki/event/WorkflowEvent.java (original)
+++ incubator/jspwiki/trunk/src/org/apache/wiki/event/WorkflowEvent.java Fri Feb  8 23:15:21
2013
@@ -109,7 +109,8 @@ public final class WorkflowEvent extends
         StringBuffer msg = new StringBuffer();
         msg.append("WorkflowEvent.");
         msg.append(eventName(getType()));
-        msg.append(" [source=" + getSrc().toString());
+        Object obj = getSrc(); // cfr. https://forums.oracle.com/forums/thread.jspa?threadID=1184115
+        msg.append(" [source=" + obj.toString());
         msg.append("]");
         return msg.toString();
     }



Mime
View raw message