Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 0.9.8
    • Fix Version/s: JRuby 0.9.9
    • Component/s: None
    • Labels:
      None
    • Environment:
      Gentoo Linux
    • Number of attachments :
      0

      Description

      If you compile jruby 0.9.8 using Java 1.5 or 1.6, you get the following error:

      [javac] 124. ERROR in /var/tmp/portage/dev-java/jruby-0.9.8/work/jruby-0.9.8/src/org/jruby/charset/PlainCharset.java
      [javac] (at line 10)
      [javac] public class PlainCharset extends Charset {
      [javac] ^^^^^^^^^^^^
      [javac] The type PlainCharset must implement the inherited abstract method Comparable.compareTo(Object)
      [javac] ----------

      Building with Java 1.4 builds it without issue.

        Activity

        Hide
        Charles Oliver Nutter added a comment -

        This is actually an Eclipse compiler bug we haven't found a way around yet...Sun's javac compiles this on Java 5 and 6 without problems, as does NetBeans.

        I don't know if anyone's tried to follow up with Eclipse or not.

        Show
        Charles Oliver Nutter added a comment - This is actually an Eclipse compiler bug we haven't found a way around yet...Sun's javac compiles this on Java 5 and 6 without problems, as does NetBeans. I don't know if anyone's tried to follow up with Eclipse or not.
        Hide
        Joshua Nichols added a comment -

        You're right, this works fine with javac. Sorry for not trying that first.

        It is worth noting that this also occurs when compiling jikes, if that is any consolation.

        In any event, this should be followed up with Eclipse if it hasn't been already. I would volunteer to do it myself, but I doubt I would be able to as accurately describe what we're seeing here.

        Show
        Joshua Nichols added a comment - You're right, this works fine with javac. Sorry for not trying that first. It is worth noting that this also occurs when compiling jikes, if that is any consolation. In any event, this should be followed up with Eclipse if it hasn't been already. I would volunteer to do it myself, but I doubt I would be able to as accurately describe what we're seeing here.
        Hide
        Joshua Nichols added a comment -

        How did you resolve this? Is there a specific patch to address it I could use?

        Show
        Joshua Nichols added a comment - How did you resolve this? Is there a specific patch to address it I could use?
        Hide
        Ola Bini added a comment -

        I resolved this issue by removing the PlainCharset class itself. I realized we doesn't need it.

        Show
        Ola Bini added a comment - I resolved this issue by removing the PlainCharset class itself. I realized we doesn't need it.

          People

          • Assignee:
            Ola Bini
            Reporter:
            Joshua Nichols
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: