This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
|Summary:||JDK_9 fxml editor shows errors when parsing elements with @NamedArg properties|
|Component:||Editor||Assignee:||Svata Dedic <sdedic>|
|Issue Type:||DEFECT||Exception Reporter:|
Description kirill.kirichenko 2015-08-28 15:08:48 UTC
When I use NetBeans build with jdk9 support and open for edit an FX project with fxml file the editor shows error "Instances of class cannot be created by FXML loader". This happens only with jdk9 selected as the java platform. When I switch to jdk8 as the java platform the error goes away. Below is the example of fxml that reproduces the issue: <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.layout.*?> <?import javafx.geometry.*?> <BorderPane xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8"> <padding> <Insets bottom="10" left="10" right="10" top="10"/> </padding> </BorderPane> It produces 2 errors: "Instances of javafx.geometry.Insets cannot be created by FXML loader" "Class javafx.geometry.Insets does not support property 'right'" Note that the program compiles and runs fine with jdk9. So it's an editor issue.