Skip to content

Building with Java 21 #655

@krishnak

Description

@krishnak

I have Java Version 21 (Bell Soft). When I clone the repository - I have modified the top level pom.xml to the correct JAVA targets to 21.

I have also modified JaCoCo dependency to the latest version which supports Java 21. However compilation fails with the following when building charts - is there a solution to overcome this

[ERROR] /home/krishnak/chart-fx-main/chartfx-chart/src/main/java/io/fair_acc/chartfx/ui/ObservableDeque.java:[17,8] types java.util.Deque<E> and java.util.List<E> are incompatible;
  both define reversed(), but with unrelated return types
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for chartfx-parent master-SNAPSHOT:
[INFO] 
[INFO] chartfx-parent ..................................... SUCCESS [  0.802 s]
[INFO] chartfx-bench ...................................... SUCCESS [  1.979 s]
[INFO] chartfx-generate ................................... SUCCESS [  0.620 s]
[INFO] chartfx-dataset .................................... SUCCESS [ 34.907 s]
[INFO] chartfx_math ....................................... SUCCESS [ 12.864 s]
[INFO] chartfx-chart ...................................... FAILURE [  1.226 s]
[INFO] chartfx-acc ........................................ SKIPPED
[INFO] chartfx-samples .................................... SKIPPED
[INFO] chartfx-report ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  52.500 s
[INFO] Finished at: 2024-02-04T07:53:30+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project chartfx: Compilation failure
[ERROR] /home/krishnak/chart-fx-main/chartfx-chart/src/main/java/io/fair_acc/chartfx/ui/ObservableDeque.java:[17,8] types java.util.Deque<E> and java.util.List<E> are incompatible;
[ERROR]   both define reversed(), but with unrelated return types
[ERROR] 
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project chartfx: Compilation failure
/home/krishnak/chart-fx-main/chartfx-chart/src/main/java/io/fair_acc/chartfx/ui/ObservableDeque.java:[17,8] types java.util.Deque<E> and java.util.List<E> are incompatible;
  both define reversed(), but with unrelated return types


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