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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.2.0
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: