Bug 574754 - don't try to construct JDK classpath from single files

StandardLocation.PLATFORM_CLASS_PATH may return single files, but the
current code in ClasspathJsr199 assumes that the given location is the
JDK home and is a directory.

- don't try to construct ClasspathJsr199 from a file
- fixed NPE if the ClasspathJsr199.normalizedPath() is called and path
is not set
- removed extra logic checking if we are running on Java > 8 (we can
only run on Java 11+)

Change-Id: I34f18c2ac605bdeda57ca2d9d67c1e8386da9b71
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
3 files changed
tree: 1322f7a7ef71ca0d948f12c53982dac4a3e2d83c
  1. .gitignore
  2. CONTRIBUTING
  3. JCL/
  4. LICENSE
  5. NOTICE
  6. README.md
  7. modules/
  8. org.eclipse.jdt.annotation/
  9. org.eclipse.jdt.annotation_v1/
  10. org.eclipse.jdt.apt.core/
  11. org.eclipse.jdt.apt.pluggable.core/
  12. org.eclipse.jdt.apt.pluggable.tests/
  13. org.eclipse.jdt.apt.tests/
  14. org.eclipse.jdt.apt.ui/
  15. org.eclipse.jdt.compiler.apt.tests/
  16. org.eclipse.jdt.compiler.apt/
  17. org.eclipse.jdt.compiler.tool.tests/
  18. org.eclipse.jdt.compiler.tool/
  19. org.eclipse.jdt.core.ecj.validation/
  20. org.eclipse.jdt.core.formatterapp/
  21. org.eclipse.jdt.core.internal.tools/
  22. org.eclipse.jdt.core.tests.builder/
  23. org.eclipse.jdt.core.tests.compiler/
  24. org.eclipse.jdt.core.tests.model/
  25. org.eclipse.jdt.core.tests.performance/
  26. org.eclipse.jdt.core/
  27. org.eclipse.jdt.tests.latestBREE/
  28. pom.xml
  29. tests-pom/
README.md

JDT Core

This is the core part of Eclipse's Java development tools. It contains the non-UI support for compiling and working with Java code, including the following:

  • an incremental or batch Java compiler that can run standalone or as part of the Eclipse IDE
  • Java source and class file indexer and search infrastructure
  • a Java source code formatter
  • APIs for code assist, access to the AST and structured manipulation of Java source.

For more information and important links, refer to the [JDT wiki page] 1 or the [JDT project overview page] 2.

License

Eclipse Public License (EPL) v2.0