2

I'm trying to use JavaMoney 1.0 in my application and noticed that when using default ExchangeRateProviders, some threads will still be running when my application finishes.

public static void main(String[] args) {
    MonetaryConversions.getExchangeRateProvider("IMF");
}

I'm aware that provided ExchangeRateProviders are, by default, configured to regularly fetch rates but it seems that there is a deadlock somewhere or that the thread(s) are not marked as daemons.

Or maybe there is a way to shutdown ExchangeRateProviders that I am not aware of.

4

1 回答 1

4

我有同样的问题。将 JavaMoney 升级到 1.1 版为我解决了这个问题。

于 2016-07-27T14:37:11.837 回答