netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ernie Rael (Jira)" <>
Subject [jira] [Created] (NETBEANS-4745) fxml editor shows errors for Insets (immutable objects in general?)
Date Thu, 27 Aug 2020 03:32:00 GMT
Ernie Rael created NETBEANS-4745:

             Summary: fxml editor shows errors for Insets (immutable objects in general?)
                 Key: NETBEANS-4745
             Project: NetBeans
          Issue Type: Bug
          Components: javafx - Editor
            Reporter: Ernie Rael

To recreate:
NewProject > JavaWithMaven > FXML JavaFX Maven Archetype (Gluon)
Open primary.fxml, in "other sources" "source/main/resources" <package>
Observe that the lines like:
<Insets bottom="37.0" left="4.0" right="27.0" top="4.0" />
show errors, in particular
Instances of javafx.geometry.Insets cannot be created by FXML loader
Class 'javafx.geometry.Insets' does not support property 'bottom'

examining the code in NetBeans "JavaFX 2 Support" module
package org.netbeans.modules.javafx2.editor.completion.beans;
public final class BeanModelBuilder

The problem seems to start with Insets not having a no argument constructor; and the properties
are not recognized because they have no setters. So it looks like immutable objects are not

Look near the begginning of BeanModelBuilder.process() around
                if (c.getParameters().isEmpty() &&
and then BeanModelBuilder.inspectMembers(), addProperty(), findPropertyName
            if (!name.startsWith(SET_NAME_PREFIX) || name.length() == SET_NAME_PREFIX_LEN

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

View raw message