Skip to content

Eclipse error annotation: The type T may not subclass Record explicitly #1630

@bsdooby

Description

@bsdooby

Eclipse 2025-06; using Eclipse Groovy Tools Version: 5.8.0.v202506172000-e2506,
Plugin: https://groovy.jfrog.io/artifactory/plugins-snapshot/e4.36

Eclipse annotates at package main "The type Vector2 may not subclass Record explicitly" while using a native java record type declaration in a top level file:

package main

record Vector2(float x, float y) { }
println "Hi there: ${new Vector2d(1.0f, 2.0f)}"

This works w/ Eclipse 2025-03

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions