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

Wrong usage of URI.getPath()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • tools
    • None
    • generic
    • generic

      The Old199.getPath () uses jfo.toUri().getPath(), which returns null in the case when URI has a jar protocol. It can be workarounded by jfo.toUri().toURL().getPath(), but it is better not to use this method at all when the URI protocol isn't "file".

            ahe Peter Ahe
            dbalek Dušan Bálek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: