Skip to content

Running ktfmt raises warnings on newer JDKs #533

@rock3r

Description

@rock3r

On JDK higher than 21 (not sure how high, but for sure 24 and possibly 23) whenever you run ktfmt the following warnings are emitted:

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.intellij.util.containers.ConcurrentLongObjectHashMap (file:/usr/local/lib/ktfmt/ktfmt)
WARNING: Please consider reporting this to the maintainers of class com.intellij.util.containers.ConcurrentLongObjectHashMap
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release

This trips up some tooling that looks at the output of ktfmt. Could you please address this?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

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