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 172460 - Variables types are not shown in the FX style
Summary: Variables types are not shown in the FX style
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
: 174193 (view as bug list)
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2009-09-17 11:55 UTC by Alexandr Scherbatiy
Modified: 2010-07-19 10:05 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 Alexandr Scherbatiy 2009-09-17 11:55:03 UTC
netbeans-trunk-nightly-200909151512-javafx-full.zip 

  Product Version         = NetBeans IDE Dev (Build 200909151512) (#ebf350cbb86b)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Copy the code to the editor:
--------------------------------
var i = 3;
var num = 3.0;

var b = true;

var c = "2".charAt(0);


var byte:Byte = 1;
var short:Short = 2;
var long:Long = 3;
var float:Float = 5.0;
var double:Double = 10.0;


var date = 3h;

var str = "Hello!";

class A{}

var a = A{};

var f = function(a:Number, b:String):Boolean { true };
var seqf = function(a:A[], b:String[]):Boolean[] { [] };


var seq = ["1", "2", "3" ];
--------------------------------
- Set  breakpoints for the first and the last lines
- Debug the project
- Go to the variables window

The Variables windows shows boolean, char, byte, short, long and double types instead of 
the JavaFX types: Boolean, Char, Byte, Short, Long, Double
Comment 1 Michal Skvor 2009-10-12 16:55:01 UTC
Boolean, Char, Byte, Short, Long, Double are not JavaFX types only Integer, boolean and Number are.

View fixed for JavaFX types only
Comment 2 Alexandr Scherbatiy 2009-10-27 14:58:24 UTC
See http://java.sun.com/javafx/1/tutorials/core/dataTypes
-----------------------------------------------------------------------------------------------
Note: As of SDK 1.1, the language also contains numeric types that align with those found in the Java programming
language. The full list of numeric types is therefore: Byte, Short, Number, Integer, Long, Float, Double, and Character.
However, the advice given above still holds true: most programmers will only need Integer (or Number) for the scripts
that they write. If you are coming to this language from a Java programming language background and have a task that
absolutely requires one of the other types, just know that these additional types are now available to your scripts. 
-----------------------------------------------------------------------------------------------
Comment 3 Michal Skvor 2009-10-30 16:06:55 UTC
The issue is much more deeper than it seems. The JavaFX is compiled directly do the Java virtual machine code and when
the program is running the debugger has no information about the original script values. I'm moving this issue to NO68
because without deeper debugging information compiled into class files from javafxc compiler I'm unable to recognize
what type of variable is the one in the virtual machine.
Comment 4 Michal Skvor 2009-11-09 04:00:19 UTC
*** Bug 174193 has been marked as a duplicate of this bug. ***
Comment 5 Lukas Hasik 2009-11-12 07:56:34 UTC
as this bug is either caused by the fx compiler or it too complicated to fix it in 6.8 - > approved
Comment 6 Petr Suchomel 2010-03-26 13:30:31 UTC
There is no mapping available between original FX and Java types included in classfiles.
Comment 7 Michal Skvor 2010-07-09 09:41:18 UTC
Fixed.
Comment 8 Alexandr Scherbatiy 2010-07-19 10:05:02 UTC
The separated issues are created:
issue 188761  Double and Character types are not shown in FX style
issue 187984 Variables window does not show function type in FX style