Skip to main content

sequence type specification "confusion"

2 replies [Last post]
shahbazc
Offline
Joined: 2008-04-06
Points: 0

The following looks to me like very basic JavaFX code:

class Test {
attribute Test1 : String;
attribute Test2 : String;
}

class TestModel{
attribute testModel : Test*;
}

However, when I compile it, I get the following error:

C:\proj\JavaFXTest\src\javafxtest\Main.fx:28: Sorry, I was trying to understand a type specification but I got confused when I saw '*' which is an operator.
attribute testModel : Test*;

In fact, I can't seem to be able to use "Class*" datatype at all.

I'm using netbeans 6.1 with openjfx compiler (I downloaded it last night).

What's the problem here?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
shagus
Offline
Joined: 2007-05-10
Points: 0

Hi, the syntax for the JavaFX Script compiler version is a little bit changed.
Old style attribute testModel : Test*;
New style attribute testModel : Test[];

Take a look at http://jfx.wikia.com/wiki/Converting_to_the_New_Syntax

shahbazc
Offline
Joined: 2008-04-06
Points: 0

That was it. Thanks!