Wrong formatting of epoch in TLE.buildLine1
When building line1 of a custom TLE instance (using individual fields
rather than line1 & line2 strings),
the formatting of the epoch is wrong for certain dates, resulting in an
exception:
JavaError: java.lang.StringIndexOutOfBoundsException: String index out
of range: 67
Java stacktrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 67
at java.lang.StringBuffer.charAt(Unknown Source)
at org.orekit.tle.TLE.checksum(TLE.java:630)
at org.orekit.tle.TLE.buildLine1(TLE.java:335)
at org.orekit.tle.TLE.getLine1(TLE.java:271)
The problem is a wrong formatter in TLE.java, line 295:
final DecimalFormat f38 = new DecimalFormat("##0.00000000", SYMBOLS);
where it should be
final DecimalFormat f38 = new DecimalFormat("000.00000000", SYMBOLS);
(from redmine: issue id 74, created on 2012-01-30, closed on 2012-01-30)