You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/02/06 16:38:08 UTC

[4/6] git commit: Replace hardcoded class name in exception message with runtime lookup (.class.getName()). This way if the class is renamed or moved the message still will be valid.

Replace hardcoded class name in exception message with runtime lookup (.class.getName()).
This way if the class is renamed or moved the message still will be valid.


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/045d1932
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/045d1932
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/045d1932

Branch: refs/heads/master
Commit: 045d1932f7662be8225593a92345e1ac8e44830f
Parents: 2a2ee66
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Feb 6 13:56:09 2012 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Feb 6 13:56:09 2012 +0200

----------------------------------------------------------------------
 .../markup/loader/InheritedMarkupMarkupLoader.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/045d1932/wicket-core/src/main/java/org/apache/wicket/markup/loader/InheritedMarkupMarkupLoader.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/loader/InheritedMarkupMarkupLoader.java b/wicket-core/src/main/java/org/apache/wicket/markup/loader/InheritedMarkupMarkupLoader.java
index ed06830..92fe035 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/loader/InheritedMarkupMarkupLoader.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/loader/InheritedMarkupMarkupLoader.java
@@ -27,6 +27,7 @@ import org.apache.wicket.markup.MarkupResourceStream;
 import org.apache.wicket.markup.MergedMarkup;
 import org.apache.wicket.markup.TagUtils;
 import org.apache.wicket.util.resource.ResourceStreamNotFoundException;
+import org.apache.wicket.util.resource.locator.ResourceStreamLocator;
 
 /**
  * Merge the 2+ markups involved in markup inheritance. From a users perspective there is only one
@@ -73,7 +74,8 @@ public class InheritedMarkupMarkupLoader implements IMarkupLoader
 						.getContainerInfo()
 						.getContainerClass()
 						.getName() +
-					". Enable debug messages for org.apache.wicket.util.resource.locator.ResourceStreamLocator to get a list of all filenames tried.");
+					". Enable debug messages for " + ResourceStreamLocator.class.getName() +
+					" to get a list of all filenames tried.");
 		}
 
 		// Merge base and derived markup