Skip to content

test UseSuperTypeTest.test230345 fails on java 21 because of SequencedCollection #8445

@homberghp

Description

@homberghp

Apache NetBeans version

Apache NetBeans latest daily build

What happened

Anticipating for future jdk versions.

SequencedSet is introduced in Java 21.

The test UseSuperTypeTest#test230345 fails because the direct super type of LinkedHashSet is SequencedCollection.

This fails the test.

Language / Project Type / NetBeans Component

java refactoring

How to reproduce

on netbeans project.
Set you jdk to 21
Run the test class .../java/refactoring.java/test/unit/src/org/netbeans/modules/refactoring/java/test/UseSuperTypeTest.java

and see test230345() fail with

Did this work correctly in an earlier version?

No / Don't know

Operating System

ubuntu 24.04

JDK

21

Apache NetBeans packaging

Apache NetBeans binary zip, Own source build

Anything else

This only hits netbeans developers, as this test will fail only when applying unit testing
in the java.refactoring module.

Are you willing to submit a pull request?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fixtests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions