aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-08-13 09:06:20 (EDT)
committerzzhongwei2012-08-13 09:06:20 (EDT)
commitb8645c8a50cb31f065bf18662de526f631452db0 (patch)
treec5e4d514cad601cde4fc2ddc5ba4d958c2955815
parentcf67bd122030f95697be361cb6f4fcc268f096ef (diff)
downloadorg.eclipse.pdt-b8645c8a50cb31f065bf18662de526f631452db0.zip
org.eclipse.pdt-b8645c8a50cb31f065bf18662de526f631452db0.tar.gz
org.eclipse.pdt-b8645c8a50cb31f065bf18662de526f631452db0.tar.bz2
387106: CA does not work without () for class instantiation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=387106
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
index 5f9fc43..2fb5390 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
@@ -2120,6 +2120,8 @@ public class PHPModelUtils {
return newClassName;
}
+ } else if (newClassName.startsWith("new")) {
+ return newClassName.substring(3).trim();
}
}
return null;