junit tests don't compile with ecj (Eclipse compiler)
Project moved to GitHub
Brought to you by:
broneill,
scolebourne
https://bugs.gentoo.org/show_bug.cgi?id=187616#c9
[javac] ----------
[javac] 1. ERROR in /mnt/checkouts/joda-time-trunk/JodaTime/src/test/org/joda/time/convert/MockUnknownCalendar.java (at line 26)
[javac] class MockUnknownCalendar extends Calendar {
[javac] ^^^^^^^^^^^^^^^^^^^
[javac] The type MockUnknownCalendar must implement the inherited abstract method Comparable.compareTo(Object)
[javac] ----------
[javac] 1 problem (1 error)
Patch attached.
tests-ecj.patch
Logged In: NO
The patch does not compile on a standard JDK (1.4.2). Calendar does not have a compareTo method, either with (Object) or (Calendar) parameters.
Logged In: YES
user_id=408725
Originator: NO
The patch does not compile on a standard JDK (1.4.2) as there is no compareTo method on Calendar. Since this is only a test class, I'm not going to pursue this. Feel free to reopen if there is a better patch.