konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C
https://teavm.org
Apache License 2.0
2.55k stars 260 forks source link

classlib: remove hardcoded dependecy to TRoundingMode in NumberFormat #890

Closed tryone144 closed 4 months ago

tryone144 commented 4 months ago

Replace the hardcoded inter-classlib dependency to TRoundingMode with the generic import of java.math.RoundingMode in NumberFormat. This allows overwriting the java.math Package on the user-side.

I have used this for testing different BigInteger implementations. Feel free to close this PR if changes like this are outside the scope of this project.