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 133093

Summary: [Preview] Frame is shown in a separate windows in Frame have attribute declaration
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: Oleg Barbashov <obarbashov>
Status: VERIFIED WONTFIX    
Severity: blocker Keywords: RELNOTE
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log file

Description Alexandr Scherbatiy 2008-04-17 12:11:26 UTC
Steps to reproduce:

- Create a JavaFX Script file:
------------------------------------------
import javafx.ui.*;

Frame{
    attribute a: String;
    
    content: Label{ text: "Frame2" }
    visible: true
}


------------------------------------------

- Enable the Preview
  The frame is shown in the separated window

  There is a IllegalAccessException in the IDE log file
java.lang.IllegalAccessException: Class org.netbeans.modules.javafx.preview.CodeManager can not access a member of class
javafxapplication1.Main$1Frame$anon1 with modifiers "public final"
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
	at java.lang.reflect.Field.doSecurityCheck(Field.java:960)
	at java.lang.reflect.Field.getFieldAccessor(Field.java:896)
	at java.lang.reflect.Field.get(Field.java:358)
	at org.netbeans.modules.javafx.preview.CodeManager.parseJFrameObj(CodeManager.java:231)
Comment 1 Alexandr Scherbatiy 2008-04-17 12:12:16 UTC
Created attachment 60333 [details]
IDE log file
Comment 2 Oleg Barbashov 2008-04-21 11:59:21 UTC
Can't fix on plugin side. 
Comment 3 Alexandr Scherbatiy 2008-04-24 12:04:23 UTC
verified
Comment 4 David Strupl 2011-10-19 12:02:44 UTC
Cleaning bugzilla categories ....