Earth Rotation Angle calculation in TIRF2000Provider is not thread safe
Hi,
I've found that the ERA calculation was not thread safe when calculating the ERA for different dates. The magnitude of the bug is the same as the ERA between the two dates, which can be huge. I've attached a patch for the issue and a test case. To fix the issue, I removed the instance variable, era, and replaced it with direct calculation. The era was already calculated on every call, so this should not be a performance issue.
Thanks,
Evan
(from redmine: issue id 118, created on 2012-10-03, closed on 2012-10-03)
- Uploads:
- TIRF2000ProviderTest.java Concurrent Test Case
- tirf2000provider.patch Fix