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 241476

Summary: [80cat]Providing Custom annotation processor is not reflected in Editor or Run. Build works fine
Product: java Reporter: manikantannaren <manikantannaren>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kganfield
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Projects' source code.
Annprocessor project in classpath of DemoAnnProcessor project
Annotation processor options
Error badges.

Description manikantannaren 2014-02-06 08:17:20 UTC
Created attachment 144855 [details]
Projects' source code.

Tutorial to use
https://netbeans.org/kb/docs/java/annotations-custom.html

Created the projects
Built The second project which generates neccessary sources in the build/generated-sources folder.

Selected the DemoAnnProcessor project and chose Run from the Toolbar
got this error
run:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
  symbol: class MainExtras
	at demoannprocessor.Main.<clinit>(Main.java:15)
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)


I also see error badges in the Project and Files view as well as the editor (screen shots).
Comment 1 manikantannaren 2014-02-06 08:20:16 UTC
Created attachment 144856 [details]
Annprocessor project in classpath of DemoAnnProcessor project
Comment 2 manikantannaren 2014-02-06 08:20:22 UTC
Created attachment 144857 [details]
Annotation processor options
Comment 3 manikantannaren 2014-02-06 08:20:25 UTC
Created attachment 144858 [details]
Error badges.
Comment 4 Dusan Balek 2014-07-18 16:56:39 UTC
Unfortunately, I cannot reproduce the problem in the current dev build. Everything works as expected.