Browse Source

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
master
Stefan Bodewig 20 years ago
parent
commit
3c5028e3d0
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/main/org/apache/tools/ant/IntrospectionHelper.java

+ 1
- 2
src/main/org/apache/tools/ant/IntrospectionHelper.java View File

@@ -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")) {


Loading…
Cancel
Save