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.
Only roots which contain Java files should be returned from ClassPath.getClassPath(aFile, SOURCE). This is not true for Web project which for project's web pages returns SOURCE type of classpath which contains both web pages and Java sources. In offline discussion with tzezula, mkleint and ppisl we've agreed that this should be changed: * web pages should not have any SOURCE classpath; and * new classpath type should be introduced (e.g. WEB_SOURCES) which should return web pages but not Java sources Such a change needs to be properly tested as it may break existing code relying on current implementation. This problem exists since initial version of project system (NB 4.0)
same applies to maven based projects