netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ernie Rael (Jira)" <j...@apache.org>
Subject [jira] [Commented] (NETBEANS-4745) fxml editor shows errors for Insets (immutable objects in general?)
Date Thu, 27 Aug 2020 17:40:00 GMT

    [ https://issues.apache.org/jira/browse/NETBEANS-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186012#comment-17186012
] 

Ernie Rael commented on NETBEANS-4745:
--------------------------------------

This was reported against NB-8.1 https://bz.apache.org/netbeans/show_bug.cgi?id=254824

> fxml editor shows errors for Insets (immutable objects in general?)
> -------------------------------------------------------------------
>
>                 Key: NETBEANS-4745
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4745
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javafx - Editor
>            Reporter: Ernie Rael
>            Priority: Major
>
> To recreate:
> NewProject > JavaWithMaven > FXML JavaFX Maven Archetype (Gluon)
> Open primary.fxml, in "other sources" "source/main/resources" <package>
> Observe that the lines like:
> {code}
> <Insets bottom="37.0" left="4.0" right="27.0" top="4.0" />
> {code}
> show errors, in particular
> {code}
> Instances of javafx.geometry.Insets cannot be created by FXML loader
> Class 'javafx.geometry.Insets' does not support property 'bottom'
> {code}
> examining the code in NetBeans "JavaFX 2 Support" module
> {code:java}
> package org.netbeans.modules.javafx2.editor.completion.beans;
> public final class BeanModelBuilder
> {code}
> 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 handled.
> Look near the begginning of BeanModelBuilder.process() around
> {code}
>                 if (c.getParameters().isEmpty() &&
> {code}
> and then BeanModelBuilder.inspectMembers(), addProperty(), findPropertyName
> {code}
>             if (!name.startsWith(SET_NAME_PREFIX) || name.length() == SET_NAME_PREFIX_LEN
||
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Mime
View raw message