Blame SOURCES/8061305-pr3335-rh1423421.patch

0ad01d
# HG changeset patch
0ad01d
# User ksrini
0ad01d
# Date 1414764176 25200
0ad01d
#      Fri Oct 31 07:02:56 2014 -0700
0ad01d
# Node ID 9fd9a50e7994a9659c5ef21296d0baee4c2eecff
0ad01d
# Parent  fd59a2d4313440077fce3fbf39174755a15d285a
0ad01d
8061305: Javadoc crashes when method name ends with "Property"
0ad01d
Reviewed-by: jjg
0ad01d
0ad01d
diff --git jdk8/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/VisibleMemberMap.java jdk8/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/VisibleMemberMap.java
0ad01d
--- jdk8/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/VisibleMemberMap.java
0ad01d
+++ jdk8/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/VisibleMemberMap.java
0ad01d
@@ -656,6 +656,9 @@
0ad01d
         // properties aren't named setA* or getA*
0ad01d
         private final Pattern pattern = Pattern.compile("[sg]et\\p{Upper}.*");
0ad01d
         private boolean isPropertyMethod(MethodDoc method) {
0ad01d
+            if (!configuration.javafx) {
0ad01d
+               return false;
0ad01d
+            }
0ad01d
             if (!method.name().endsWith("Property")) {
0ad01d
                 return false;
0ad01d
             }
0ad01d
@@ -667,7 +670,9 @@
0ad01d
             if (pattern.matcher(method.name()).matches()) {
0ad01d
                 return false;
0ad01d
             }
0ad01d
-
0ad01d
+            if (method.typeParameters().length > 0) {
0ad01d
+                return false;
0ad01d
+            }
0ad01d
             return 0 == method.parameters().length
0ad01d
                     && !"void".equals(method.returnType().simpleTypeName());
0ad01d
         }