The java infrastructure requires source roots to provide correctly query results (ClassPath, SFBQ, BFSQ, SLQ, EQ) which is not the case of the j2seproject with
existing sources having includes, for more details see issue #134919.
The suggested API change adds new method registerExternalRoots (int policy, boolean minimalSubfolders) to the SourcesHelper class which allows the
j2seproject to force the SourcesHelper to register whole source root in the SFOQ.
The change is compatible, covered by test.
Created attachment 70426 [details]
All looks fine to me.
Integrated into 'main-golden', will be available in build *200810010201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Zezula <email@example.com>
Log: #148185:API review: Added SourcesHelper.registerExternalRoots with minimalSubfolders parameters