Fixed one of our patch scripts that presumed any convert() method with 1 parameter was always receiving an ASTNode child. One of the methods actually gets an array of those, which isn't of course a subclass of ASTNode itself.

This commit is contained in:
Reinier Zwitserloot committed 2009-10-07 23:53:16 +02:00
1 parent a65b7320f2
commit 49d1be1312
1 file changed
+3 -1
@@ -125,7 +125,9 @@ public class EclipsePatcher {
List<String> fullDesc = MethodTarget.decomposeFullDesc(descriptor);
if ("V".equals(fullDesc.get(0))) return false;
return fullDesc.size() == 2;
if (fullDesc.size() < 2) return false;
if (!fullDesc.get(1).startsWith("Lorg/eclipse/jdt/internal/compiler/ast/")) return false;
return true;
}
@Override public Collection<String> getAffectedClasses() {