### Eclipse Workspace Patch 1.0 #P org.eclipse.pde.api.tools Index: src/org/eclipse/pde/api/tools/internal/util/Util.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/util/Util.java,v retrieving revision 1.80 diff -u -r1.80 Util.java --- src/org/eclipse/pde/api/tools/internal/util/Util.java 21 Oct 2008 20:30:00 -0000 1.80 +++ src/org/eclipse/pde/api/tools/internal/util/Util.java 22 Oct 2008 13:49:50 -0000 @@ -594,7 +594,8 @@ IApiComponent apiComponent = components[i]; if (apiComponent != null) { try { - return apiComponent.findClassFile(typeName); + IClassFile classFile = apiComponent.findClassFile(typeName); + if (classFile != null) return classFile; } catch (CoreException e) { // ignore } @@ -1094,6 +1095,10 @@ if (method.exists()) { return method; } else { + // if the method is not null and it doesn't exist, it might be the default constructor + if (selector.equals(type.getElementName()) && parameterTypes.length == 0) { + return null; + } // try to check by selector IMethod[] methods = null; try {