Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support development of the OpenJDK class library #34

Open
simonis opened this issue Oct 23, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@simonis
Copy link

simonis commented Oct 23, 2023

The OpenJDK class library has no Maven or Gradle build files. It is also a tricky project because its classes can interfere with the same classes in the JDK used to run javac in the language server.

Please add support for developing the Java class library of the OpenJDK project to your plugin.

@lahodaj
Copy link
Member

lahodaj commented Oct 24, 2023

This may work:

  • open the module that you want to develop (e.g. src/java.base)
  • add the corresponding test folder to the workspace (e.g. test/jdk)
  • when running test, use "Run/Debug test" over the @test tag, not the possible Run/Debug main

There are probably some limitations and bugs in this, but this is the overall idea on how things should work. I could open java.lang.String like this, and use code completion in it, and debug a test for j.l.String. It would be awesome to hear some experiences.

(Opening the OpenJDK checkout as such might also work, but will lead to indexing for a high number of files, and generally might lead to worse performance.)

@arvindaprameya arvindaprameya added the enhancement New feature or request label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants