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.
I have a FileObject that I want to set as a folder of classpath, a name and a displayname of the compilation unit. I was using JavaProject.createCompilationUnit (String, DataFolder[]) but it is deprecated. I can wither use JavaProject.createCompilationUnit (String, String, List) or JavaProject.createCompilationUnit (String) and then assignSources. But in both cases I need to represent the sources root as JavaDescriptor, not just as a FileObject. JavaDescriptor constructor is protected. Why do not assignSources and createCompilationUnit accept list of FileObjects (root folders). What is the intended use of the current variant with JavaDescriptor? For reassigning sources between units?
oops, I missed JP.createJavaSources. My deep appologies.
i've verified all these issues
closing all my verified issues