Details

    • Type: Task Task
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: Version 6.0
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      126

      Description

      Currently we have that
      LargeInteger.valueOf(Long.MIN_VALUE).compareTo(Long.MIN_VALUE)
      yields -1.

      The problem is in compareTo:

      public int compareTo(long value)

      { if (_size > 1) return (value == Long.MAX_VALUE) && (this.equals(Long.MIN_VALUE)) ? 0 : (_isNegative ? -1 : 1); // size <= 1 long thisValue = _isNegative ? -_words[0] : _words[0]; return thisValue < value ? -1 : ((thisValue == value) ? 0 : 1); }

      The first return statement should contain Long.MIN_VALUE twice, not
      Long.MAX_VALUE and LONG.MIN_VALUE.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jscience-issues
            Reporter:
            hstoerr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: