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 133079

Summary: Preview does not work if assertions are enabled
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: Oleg Barbashov <obarbashov>
Status: VERIFIED WONTFIX    
Severity: blocker Keywords: RELNOTE
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log file

Description Alexandr Scherbatiy 2008-04-17 09:18:44 UTC
Steps to reproduce:

- Run the NetBeans IDE with enabled assertions (-J-ea option)
- Create an FX file
---------------------------------------------------


import javafx.ui.*;
import java.lang.System;

var N = 4;

Frame {
    title: "JavaFX Table"
    width:  300
    height: 150
    
    content: Table {
        columns: [
        TableColumn { text: "number" },
        TableColumn { text: "square" },
        TableColumn { text: "cube" }
        ]
        
        cells: for( n in [1..N]) [ 
            TableCell{ text: "{n}" },
            TableCell{ text: "{n*n}"   },
            TableCell{ text: "{n*n*n}" }
        ] 
        
         onMouseClicked: function(e: MouseEvent){
            if(e.clickCount == 2){
                 System.out.println("Double click!");
            }
         }
    }
    
    visible: true
}
---------------------------------------------------

- Enable the preview
  The sample is not shown in the Preview
  There is an AssertionError in the IDE log file

java.lang.AssertionError
	at com.sun.tools.javac.jvm.Code.resolve(Code.java:1426)
	at com.sun.tools.javac.jvm.Gen.genLoop(Gen.java:1079)
	at com.sun.tools.javac.jvm.Code.resolve(Code.java:1426)
	at com.sun.tools.javac.jvm.Gen.visitForLoop(Gen.java:1047)
	at com.sun.tools.javac.jvm.Gen.genLoop(Gen.java:1079)
	at com.sun.tools.javac.tree.JCTree$JCForLoop.accept(JCTree.java:856)
	at com.sun.tools.javac.jvm.Gen.visitForLoop(Gen.java:1047)
Comment 1 Alexandr Scherbatiy 2008-04-17 09:20:46 UTC
Created attachment 60324 [details]
IDE log file
Comment 2 Oleg Barbashov 2008-04-21 10:57:27 UTC
It's the compiler issue. Can't fix on plugin side.
Comment 3 Alexandr Scherbatiy 2008-04-24 11:55:38 UTC
It is better to create the appropriate compiler issue.
Comment 4 David Strupl 2011-10-19 12:02:40 UTC
Cleaning bugzilla categories ....