Open debraj-manna opened 1 year ago
Moved that one to the RI. It is a known issue during test execution, related to #370, mostly because the maven test module does not declare a Jigsaw module-info of its own. To try reproduce it fro a standalone setup, @debraj-manna could you please provide a snippet from the MoneyUtils class if you can?
@keilw
public static com.spotnana.proto.v1.common.Money protoMoney(double amount, String currency) {
return protoMoney(FastMoney.of(BigDecimal.roundToScale5(amount), currency));
}
@debraj-manna Does it still happen with 1.4.4? And if so, is the problem restricted to JUnit tests?
@keilw I just noticed that there is a javamoney.properties~
(notice the tilde) in https://github.com/JavaMoney/jsr354-ri/tree/3415a66a09326f8e8bf07c21213b4d7eb4cf561a/moneta-core/src/main/resources, which is incredibly suspicious.
@kewne That's a template or backup, it should not be loaded, and the ambiguity comes from problems with MonetaryConfig: #370
I am using moneta 1.4.2 with spring-boot 3.0.6 and Java 17.
I am seeing an exception trace like below. Can someone let me know what could be causing this and how can I get around this?