Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6348515

java.net.URI.compareTo doesn't work

XMLWordPrintable

    • b63
    • generic
    • generic

      It seems method 'URI.compareTo' almost always returns 1.

              try {
                  URI u = new URI("h://a/p");
                  System.out.println( u.compareTo(new URI("h://a/p")) );
              } catch (URISyntaxException e) {
                  e.printStackTrace();
              }

      this code prints '1'

            yuwangsunw Yujiang Wang (Inactive)
            itseytin Igor Tseytin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: