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.
As per the scenario described in issue 105172, I have a project containing source code in the normal spot, plus an additional source tree consisting of source generated using JAXB. It is important that these be kept separate to avoid overwriting code written by hand and to keep generated source out of source control. In issue 105172, Jesse Glick explained how to use the cp.extra property to let the IDE know about these files. Putting: cp.extra=${gen.src.dir} in my module's project.properties file got rid of the "red squigglies" but one problem remains. I can Ctrl+Click a reference in source code and jump to the source code for any class below src. However, this does not work for any reference to a class that is below the generated source directory. This is a less important problem to me than the original, but it would be nice if this worked as expected. http://www.netbeans.org/issues/show_bug.cgi?id=105172
Probably you need to put the *output* dir in cp.extra, not the source dir. If you have a minimal demo project (also for issue #105172), that would be more helpful since then I could try it and see what exactly you are talking about.
I will create a suite to illustrate the problem this afternoon.
Created attachment 43133 [details] Suite to illustrate problem with generated source
The attached suite uses JAXB (via included library module) to generate Java code from schema. This was created and verified using NB 6.0 Milestone 8 on Windows XP under Java 1.6.0. To see for yourself, build the project and then open the SchemaGeneratedClassUser source in the editor. Doing a Ctrl+Click on a reference to the Advisor class works (I assume because it is in the src tree), while doing the same to the generated Address or Datebook classes does not. I tried various combinations of cp.extra in project.properties, but none solved this problem.
Working for me in 070601 just the way you have it. Unpacked and built the suite, opened the class you mentioned (and its containing project), Ctrl-Click worked in all cases.
I just downloaded today's daily build and confirm that it works as Jesse says.