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 176520 - Some warnings are shown as errors in the editor
Summary: Some warnings are shown as errors in the editor
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-11 06:26 UTC by Alexandr Scherbatiy
Modified: 2009-11-19 05:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE screenshot (10.91 KB, image/png)
2009-11-11 06:28 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-11-11 06:26:24 UTC
Product Version         = NetBeans IDE Dev (Build 200911091156) (#fa9887b26708)
  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:
--------------------------------------------------------
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;

public class TransformHelper {
    public var tx:Number = 0.0;
    public var ty:Number = 0.0;
}


var lowsTriangleTransform:TransformHelper = TransformHelper {};

var toTomorrowTimeline = Timeline {
    keyFrames:
    KeyFrame {
        time: 0s
        values: [
            lowsTriangleTransform.tx => 0.0,
            lowsTriangleTransform.ty => 0.0,
        ]
    },
};
--------------------------------------------------------

The editor shows 2 errors on lines:
-----------------------------------------------------------
        values: [
            lowsTriangleTransform.tx => 0.0,
            lowsTriangleTransform.ty => 0.0,
        ]
-----------------------------------------------------------

However the project compiles without errors.
Comment 1 Alexandr Scherbatiy 2009-11-11 06:28:08 UTC
Created attachment 90791 [details]
IDE screenshot
Comment 2 J Bachorik 2009-11-12 05:53:13 UTC
Compiler warnings are now correctly transformed to editor warnings instead of errors.

http://hg.netbeans.org/javafx/rev/af80f7e3ca3e
Comment 3 Alexandr Scherbatiy 2009-11-19 05:53:59 UTC
verified in Build 200911190201