Skip to content

adjust build config: bump minJavaVersion and fix compile warnings #2717

@Gezi-lzq

Description

@Gezi-lzq

1. minJavaVersion Mismatch with Code

  • Problem:
    The build.gradle file sets minJavaVersion to 11. However, the codebase uses APIs from higher JDK versions, such as MappedByteBuffer.slice(int, int) (added in Java 13) in FileCache.java.

  • Impact:
    This mismatch causes IDEs like IntelliJ IDEA to flag these API calls as errors, as the IDE configures the module's language level based on minJavaVersion. This disrupts the development workflow.

  • Suggestion:
    Increase minJavaVersion in build.gradle to 13 or higher to align the build configuration with the code implementation.

2. Compile Warning Check and Fix

  • Problem:
    The build script enables the -Werror option, which treats all compiler warnings as errors.

  • Action Recommended:
    Check for any existing compiler warnings in the codebase and fix them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions