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)
======================================================================
- relates to
-
JDK-4418831 java.io.File(String,String) creates wrong path if 2nd param starts with \
- Closed