java.io.File(File,String) produces illegal path if both parameters are absolute

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 1.2.0
    • Component/s: core-libs
    • x86
    • windows_nt



      Name: dbT83986 Date: 05/30/99


      invoke new File("d:\\java\\test\\misc", "d:/java/test/routing")
      The resulting path is d:\java\test\misc\d:\java\test\routing
      It isn't clear from the documentation what the result should be, but it certainly shouldn't be that. I would expect one of the following results:
      a) d:\java\test\routing
      b) ..\routing
      c) an IllegalArgumentException

      java version "1.2"
      HotSpot VM (1.0fcs, mixed mode, build E)
      (Review ID: 83438)
      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: