Community
Participate
Working Groups
The mehtod IJavaProject.findPackageFragmentRoots(IClasspathEntry) claims to work when a variable is passed into the method. However, the implementation uses the resolved classpath, and thus no matches are found when a variable is passed in. Javadoc: "If the classpath entry denotes a variable, it will be resolved and return the roots of the target entry (empty if not resolvable)." I am passing in "JRE_LIB[CPE_VARIABLE][K_SOURCE][sourcePath:JRE_SRC] [rootPath:JRE_SRCROOT][isExported:false]", but "null" is returned, even though JRE_LIB is on the classpath. This is causing two debug tests to fail.
Indeed, we lost some functionality. Will use the raw classpath instead.
Fixed
Verified.