Blame SOURCES/8061305-pr3335-rh1423421.patch

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