You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jb...@apache.org on 2007/05/07 00:31:01 UTC

svn commit: r535666 - /incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ResourceReference.java

Author: jbq
Date: Sun May  6 15:31:00 2007
New Revision: 535666

URL: http://svn.apache.org/viewvc?view=rev&rev=535666
Log:
equals(): compare class names instead of class instances to play nicely with the reloading classloader

Modified:
    incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ResourceReference.java

Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ResourceReference.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ResourceReference.java?view=diff&rev=535666&r1=535665&r2=535666
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ResourceReference.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ResourceReference.java Sun May  6 15:31:00 2007
@@ -176,7 +176,7 @@
 		if (obj instanceof ResourceReference)
 		{
 			ResourceReference that = (ResourceReference)obj;
-			return Objects.equal(this.scope, that.scope) && Objects.equal(this.name, that.name)
+			return Objects.equal(this.scope.getName(), that.scope.getName()) && Objects.equal(this.name, that.name)
 					&& Objects.equal(this.locale, that.locale)
 					&& Objects.equal(this.style, that.style);
 		}