Skip to content

[Bug]JDK: 17 (Corretto 17) Gremlin job tests fail due to Groovy 2.5.14 (Unsupported class file major version 61) #2954

@chandrakiranbolla1

Description

@chandrakiranbolla1

Bug Type (问题类型)

others (please edit later)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • HugeGraph Version: master (latest commit)
  • Build Mode: mvn clean test
  • JDK: 17 (Corretto 17)
  • OS: macOS
  • Backend: In-memory (test execution)

Note:
All tests pass when running under Java 11.
Failures occur only under Java 17.

Expected & Actual behavior (期望与实际表现)

Expected Behavior:
All core tests should pass when running under Java 17.

Actual Behavior:
Gremlin job-related tests fail with task status FAILED instead of SUCCESS or CANCELLING.

Failing tests:

  • TaskCoreTest.testGremlinJob
  • TaskCoreTest.testGremlinJobAndCancel
  • TaskCoreTest.testGremlinJobAndRestore
  • TaskCoreTest.testGremlinJobWithScript
  • TaskCoreTest.testGremlinJobWithSerializedResults

Exception:
javax.script.ScriptException:
java.util.concurrent.ExecutionException:
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy'
Unsupported class file major version 61

Major version 61 corresponds to Java 17 bytecode.

Dependency Analysis:
org.apache.tinkerpop:gremlin-groovy:3.5.1
org.codehaus.groovy:groovy:2.5.14

Groovy 2.5.x does not fully support Java 17 bytecode analysis.

Context:

Related discussion / issues / pr:

Related roadmap item:
https://issues.apache.org/jira/browse/GSOC-317

Vertex/Edge example (问题点 / 边数据举例)

Not applicable.

This issue is related to build/runtime incompatibility between Java 17 and Groovy 2.5.14.
It does not involve specific vertex/edge data, REST queries, or schema definitions.

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

Not applicable.

This issue is related to build/runtime incompatibility between Java 17 and Groovy 2.5.14.
It does not involve specific vertex/edge data, REST queries, or schema definitions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggremlinTinkerPop gremlin

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions