Skip to content

Add support for compiling against JDK 23+ #933

Open
@xroberx

Description

@xroberx

Now that gradle 8.14 is out with support for Java 24, it would be great to be able to compile Recaf with JDK 24. Currently it fails in:

Execution failed for task ':recaf-ui:compileJava'.
> Compilation failed; see the compiler output below.
  warning: unknown enum constant Level.FULL
    reason: class file for com.google.j2objc.annotations.ReflectionSupport$Level not found
  D:\Temp\Recaf\recaf-ui\src\main\java\software\coley\recaf\util\SVG.java:114: warning: [deprecation] load(@org.jetbrains.annotations.NotNull InputStream) in SVGLoader has been deprecated
                                return loader.load(is);
                                             ^
  D:\Temp\Recaf\recaf-ui\src\main\java\software\coley\recaf\util\SVG.java:35: error: cannot access NotNull
                                .load(new ByteArrayInputStream(("<svg width=\"0\" height=\"0\" xmlns=\"http://www.w3.org/2000/svg\">" +
                                ^
    class file for org.jetbrains.annotations.NotNull not found
  1 error
  3 warnings

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions