bodewig 2004/09/08 04:32:07
Modified: src/main/org/apache/tools/ant IntrospectionHelper.java
Log:
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.
Revision Changes Path
1.88 +1 -2
ant/src/main/org/apache/tools/ant/IntrospectionHelper.java
Index: IntrospectionHelper.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/IntrospectionHelper.java,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- IntrospectionHelper.java 7 Sep 2004 11:33:15 -0000 1.87
+++ IntrospectionHelper.java 8 Sep 2004 11:32:06 -0000 1.88
@@ -1461,11 +1461,10 @@
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")) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]