redhat-developer / redhat-developer/vscode-java

bootstrapClasspath not working

Open
#767 1 comment 0 reactions 1 assignee View on GitHub

@snjeza is already working on this.

Since Jan 17, 2019.

compile Gradle upstream
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

I have a gradle project that sets a bootstrapClasspath like so:

tasks.withType(JavaCompile) {
  options.bootstrapClasspath = files(project(":haikuRT").tasks["compileJava"].destinationDir, "../lib/nxt/classes.jar")
}

If I do a gradlew build, the project builds without error. However, vscode continues to show compile errors because bootstrapClasspath is not honored. For example, a modification has been made (a method added) to the Thread class however the language server is accessing the Thread class within the JDK.

Environment
  • Operating System: Both Windows 10 and OSX 10.12.5
  • JDK version: Both 1.8 and 11
  • Visual Studio Code version: 1.30.2
  • Java extension version: unknown
Steps To Reproduce
  1. Clone https://github.com/chuckb/haikuVM
  2. ./gradlew build (note that it builds)
  3. Observe that the bootstrap subproject has compile errors.
Current Result

Gradle build and vscode show inconsistent results.

Expected Result

vscode should show no compile errors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.