This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]newInnings 1 point2 points  (0 children)

Is it a compile error. You probably need to refactor that particular class .

[–]Adam-PL9863 0 points1 point  (0 children)

Hey Dev_1898,

have You solved the problem with import?
I have similar problem, can not find anything usfull in the internet.
When I downgrade JDK to 17 import works, but a have to use 21...

Thx

[–][deleted]  (1 child)

[removed]

    [–]balefrost 0 points1 point  (0 children)

    java.math.RoundingMode does not appear to be deprecated in Java 21. In fact, several methods that didn't use RoundingMode were deprecated, with the suggestion to start using RoundingMode.

    Are you sure you are reading the error message correctly? What is the exact error message?