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.

Bug 254824

Summary: JDK_9 fxml editor shows errors when parsing elements with @NamedArg properties
Product: javafx Reporter: kirill.kirichenko
Component: EditorAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
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="" xmlns="">
        <Insets bottom="10" left="10" right="10" top="10"/>

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.