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 - JDK_9 fxml editor shows errors when parsing elements with @NamedArg properties
Summary: JDK_9 fxml editor shows errors when parsing elements with @NamedArg properties
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-28 15:08 UTC by kirill.kirichenko
Modified: 2015-08-28 15:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.