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 179498

Summary: AST for an FX source containing explicit import of java source contains no type info
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173077    
Attachments: JavaFX project

Description Alexandr Scherbatiy 2010-01-14 06:11:14 UTC
NetBeans-JavaFX-Soma:  #104

  Product Version         = NetBeans IDE Dev (Build 201001131418)
(#4aedc16d0468)
  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:

- Open the attached project
- Go to the model.AttributeModel class
- Refactor->Rename the AttributeModel class to AttributeModel2
- Build the project

C:\Temp\app\JavaFXShell\src\generator\ProjectGenerator.fx:33: cannot find symbol
symbol  : class AttributeModel
location: class generator.ProjectGenerator
        attributes: for(j in [0..M-1]) AttributeModel{
C:\Temp\app\JavaFXShell\src\generator\ProjectGenerator.fx:34: Invalid assignment
            name: "attribute{j}"
2 errors
Comment 1 Alexandr Scherbatiy 2010-01-14 06:12:14 UTC
Created attachment 93285 [details]
JavaFX project
Comment 2 J Bachorik 2010-01-19 05:36:10 UTC
This is caused by ClassNotFoundException deep down in the javafx compiler guts. The compiler needs javax.annotation.processing.ProcessingEnvironment interface to be loaded but it is nowhere to be found since it is imperatively hidden from the javafx.platform module and there is no other active module providing the javax.annotation package.
This is caused by either a change in NB class loading (between 6.8 and trunk) or removing an erroneously published package from some other module.
Comment 3 J Bachorik 2010-01-19 05:41:32 UTC
fixed in http://hg.netbeans.org/javafx/rev/6b71f5af4690
Comment 4 Alexandr Scherbatiy 2010-02-03 03:30:12 UTC
verified in NetBeans-JavaFX-Soma: #141