Menu

#43 junit tests don't compile with ecj (Eclipse compiler)

closed
nobody
None
5
2012-10-08
2007-12-20
No

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.

Discussion

  • Petteri Räty

    Petteri Räty - 2007-12-20

    tests-ecj.patch

     
  • Nobody/Anonymous

    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.

     
  • Stephen Colebourne

    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.

     

Log in to post a comment.