Skip to content

Conversation

andreyorst
Copy link

Recent Fernflower requires JDK17 to run, however, I have to use JDK11 as my main JDK on the system, and I can't switch to JDK17 and back whenever I need decompilation. This patch introduces a custom variable to specify what Java executable to use. Nothing will change for existing users by default. This is the same approach taken by packages such as lsp-java or eglot.

Additionally, I fixed a bug - when modern Fernflower runs on older JDK it doesn't produce any files, hence (cl-first (jdecomp--java-files destination)) returned nil, and (insert-file-contents nil)` caused an ambigous error. Now, we check if there are files first, and if not throw a proper error, with the process output for easier debugging.

Also fixed a bunch of warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant