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 188759 - Unable to see Class variables
Summary: Unable to see Class variables
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2010-07-19 09:42 UTC by Alexandr Scherbatiy
Modified: 2011-05-16 13:53 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 2010-07-19 09:42:46 UTC
Product Version         = NetBeans IDE 6.9.1 Dev (Build 201007182301) (#b9d3fe81e7a7)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01; Sun Microsystems Inc.


Steps to reproduce:

- Copy the code to the editor:
---------------------------------
import javafx.scene.shape.Circle;

class A {

    public var name:String;
    public var circles: Circle[];

    public function show() {
        for (circle in circles) {
            println(circle);
        }

    }

}

function run() {
    var a = A { name: "A" circles: [Circle { radius: 10 } Circle { radius: 10 }] };
    a.show();
}
---------------------------------

- Set a breakpoint to the 'println(circle);' line in the 'show()' method
- Debug the project

The 'name' and 'circles' variables from A class are not shown in the Variables window.
Comment 1 Michal Skvor 2010-08-03 14:49:05 UTC
Must be fixed in fxjdi
http://javafx-jira.kenai.com/browse/JFXC-4490
Comment 2 Alexandr Scherbatiy 2010-08-05 10:55:39 UTC
The issue JFXC-4490 is marked as Not an Issue.

The comments are:

> Jim Holmlund added a comment - Aug, 3 2010 09:11 PM

Local variables are those declared inside a function. In the test program, the only local variable is 'circle' - the induction variable of the for loop.

name and circles are instance variables of the A class, and can be viewed as such, for example, in fxjdb (I renamed class A to be class ms):

AWT-EventQueue-0[1] where
  [1] javafx.lang.Builtins.println (Builtins.java:69)
  [2] ms.show (ms.fx:9)
  [3] ms.javafx$run$ (ms.fx:19)
  [4] sun.reflect.NativeMethodAccessorImpl.invoke0 (native method)
  [5] sun.reflect.NativeMethodAccessorImpl.invoke (null)
  [6] sun.reflect.DelegatingMethodAccessorImpl.invoke (null)
  [7] java.lang.reflect.Method.invoke (null)
  [8] com.sun.javafx.runtime.provider.GUIRuntimeProvider$1.run (GUIRuntimeProvider.java:73)
  [9] com.sun.javafx.tk.swing.SwingToolkit$StartupRoutine.run (SwingToolkit.fx:873)
  [10] java.awt.event.InvocationEvent.dispatch (null)
  [11] java.awt.EventQueue.dispatchEvent (null)
  [12] java.awt.EventDispatchThread.pumpOneEventForFilters (null)
  [13] java.awt.EventDispatchThread.pumpEventsForFilter (null)
  [14] java.awt.EventDispatchThread.pumpEventsForHierarchy (null)
  [15] java.awt.EventDispatchThread.pumpEvents (null)
  [16] java.awt.EventDispatchThread.pumpEvents (null)
  [17] java.awt.EventDispatchThread.run (null)
AWT-EventQueue-0[1] up
AWT-EventQueue-0[2] locals
Method arguments:
Local variables:
circle = instance of javafx.scene.shape.Circle(id=920)
AWT-EventQueue-0[2] print this
 this = "ms@e34726"
AWT-EventQueue-0[2] print this.name
 this.name = "A"
AWT-EventQueue-0[2]
Comment 3 David Strupl 2011-05-16 13:53:07 UTC
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.