changeset 7267:ee80f24584b4

RT-37507 [Android, FXML] JavaFXBuilderFactory contains a call to Constructor.getParameters
author Martin Sladecek <martin.sladecek@oracle.com>
date Fri, 13 Jun 2014 12:17:38 +0200
parents 0be1e326561e
children fab4ceaa5c67
files modules/fxml/src/main/java/javafx/fxml/JavaFXBuilderFactory.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/fxml/src/main/java/javafx/fxml/JavaFXBuilderFactory.java	Fri Jun 13 12:05:39 2014 +0200
+++ b/modules/fxml/src/main/java/javafx/fxml/JavaFXBuilderFactory.java	Fri Jun 13 12:17:38 2014 +0200
@@ -217,8 +217,7 @@
         Constructor constructors[] = ConstructorUtil.getConstructors(type);
         for (Constructor constructor : constructors) {
             Annotation[][] paramAnnotations = constructor.getParameterAnnotations();
-            Parameter[] params = constructor.getParameters();
-            for (int i = 0; i < params.length; i++) {
+            for (int i = 0; i < constructor.getParameterTypes().length; i++) {
                 for (Annotation annotation : paramAnnotations[i]) {
                     if (annotation instanceof NamedArg) {
                         return true;