Skip to content

datasketches-memory 3.0.2 does not work on Java 25 #270

@pan3793

Description

@pan3793

Background

Apache Spark currently supports Java 17 and 21, and I'm exploring making it support Java 25. As a result, it must use datasketches-java 6.2.0 for compatibility, which stops work on Java 25

Cause: java.lang.NoClassDefFoundError: Could not initialize class org.apache.datasketches.memory.internal.BaseWritableMemoryImpl
  at org.apache.datasketches.memory.WritableMemory.writableWrap(WritableMemory.java:333)
  at org.apache.datasketches.memory.WritableMemory.writableWrap(WritableMemory.java:275)
  at org.apache.datasketches.frequencies.ItemsSketch.toByteArray(ItemsSketch.java:509)

Expectation

I understand that Java 17/21/25 is not supported by datasketches-memory 3.0.2, but I'd like to run it in limited mode with Java 25, as it does on Java 17/21.

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