From f768fe10ac12ebc331b3ad125684501904591755 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Tue, 24 Jul 2007 22:07:23 +0000 Subject: [PATCH] fix error in circular property detection git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@559237 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Property.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Property.java b/src/main/org/apache/tools/ant/taskdefs/Property.java index ccc9470b9..3549fa763 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Property.java +++ b/src/main/org/apache/tools/ant/taskdefs/Property.java @@ -71,7 +71,7 @@ import org.apache.tools.ant.types.Reference; * @ant.task category="property" */ public class Property extends Task { - private class PropertyResolver implements PropertyHelper.PropertyEvaluator { + private static class PropertyResolver implements PropertyHelper.PropertyEvaluator { private ThreadLocal getStack = new ThreadLocal() { protected Object initialValue() { return new Stack(); @@ -114,7 +114,7 @@ public class Property extends Task { } stk = (Stack) replaceStack.get(); if (stk.contains(property)) { - throw new BuildException("Property " + name + " was circularly defined."); + throw new BuildException("Property " + property + " was circularly defined."); } stk.push(property); try {