From 3c5028e3d0202d0f2374226044cb120d92f2d521 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 8 Sep 2004 11:32:06 +0000 Subject: [PATCH] Doesn't compile on JDK 1.3: IntrospectionHelper.java:1471: method is inherited from org.apache.tools.ant.IntrospectionHelper.NestedCreator and hides variable in outer class createAddTypeCreator(org.apache.tools.ant.Project,java.lang.Object,java.lang.String). An explicit 'this' qualifier must be used to select the desired instance. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276835 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/IntrospectionHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/IntrospectionHelper.java b/src/main/org/apache/tools/ant/IntrospectionHelper.java index 23265725d..9cf36058b 100644 --- a/src/main/org/apache/tools/ant/IntrospectionHelper.java +++ b/src/main/org/apache/tools/ant/IntrospectionHelper.java @@ -1461,11 +1461,10 @@ public final class IntrospectionHelper implements BuildListener { rObject = ((PreSetDef.PreSetDefinition) addedObject).createObject( project); } - final Method method = addMethod; final Object nestedObject = addedObject; final Object realObject = rObject; - return new NestedCreator(method) { + return new NestedCreator(addMethod) { Object create(Project project, Object parent, Object ignore) throws InvocationTargetException, IllegalAccessException { if (!method.getName().endsWith("Configured")) {