Re: toRealPath throws InternalError: Should not get here on Windows (paths with junctions)

2016-04-05 Thread Rory O'Donnell
Hi Dawid, I updated the bug. Rgds,Rory On 05/04/2016 11:47, Dawid Weiss wrote: I did a bit more digging. I can reproduce this every time on my machine if: 1) I open cmd from total commander (64 bit or 32 bit, doesn't matter); 2) from that cmd run the simple example in Java that attempts to re

Re: toRealPath throws InternalError: Should not get here on Windows (paths with junctions)

2016-04-05 Thread Dawid Weiss
I did a bit more digging. I can reproduce this every time on my machine if: 1) I open cmd from total commander (64 bit or 32 bit, doesn't matter); 2) from that cmd run the simple example in Java that attempts to resolve real path; this ends in InternalError. On the other hand, if I run cmd from t

Re: toRealPath throws InternalError: Should not get here on Windows (paths with junctions)

2016-03-15 Thread Rory O'Donnell
Hi Dawid, I will update bug. Rgds,Rory On 15/03/2016 12:53, Dawid Weiss wrote: This must be more complicated than I thought because the same code passes with flying colors on another (fairly fresh install) of Windows 10... I don't know what the difference is, to be honest (I have Windows 10 Pr

Re: toRealPath throws InternalError: Should not get here on Windows (paths with junctions)

2016-03-15 Thread Dawid Weiss
This must be more complicated than I thought because the same code passes with flying colors on another (fairly fresh install) of Windows 10... I don't know what the difference is, to be honest (I have Windows 10 Pro N). I'll try to dig deeper, time permitting, but perhaps a comment on the eventual

Re: toRealPath throws InternalError: Should not get here on Windows (paths with junctions)

2016-03-15 Thread Dawid Weiss
I filed an issue (Review ID: JI-9032181). In any case, I checked with Java 7, 8 and the ea: Java(TM) SE Runtime Environment (build 9-ea+109-2016-03-09-181019.javare.4620.nc) The issue only affects Windows 10 (tested on 64-bit only), Windows 7 behaves fine. The following sequence is enough to get

Re: toRealPath throws InternalError: Should not get here on Windows (paths with junctions)

2016-03-15 Thread Rory O'Donnell
Hi Dawid, Can you log a bug and send me the JI, thanks ? If you have more info you can share it would be useful to follow up on the nio-dev mailing list. (http://mail.openjdk.java.net/mailman/listinfo/nio-dev) Rgds,Rory On 15/03/2016 11:28, Alan Bateman wrote: On 15/03/2016 11:19, Dawid Wei

Re: toRealPath throws InternalError: Should not get here on Windows (paths with junctions)

2016-03-15 Thread Alan Bateman
On 15/03/2016 11:19, Dawid Weiss wrote: I couldn't find an appropriate bug in bugzilla, but this fails reliably for me with Java 8 and 9 on Windows 10, 64-bit: mkdir foo mklink /J bar foo cd bar java -cp Test . where Test.java is as simple as: import java.io.*; import java.nio.file.*; public

toRealPath throws InternalError: Should not get here on Windows (paths with junctions)

2016-03-15 Thread Dawid Weiss
I couldn't find an appropriate bug in bugzilla, but this fails reliably for me with Java 8 and 9 on Windows 10, 64-bit: mkdir foo mklink /J bar foo cd bar java -cp Test . where Test.java is as simple as: import java.io.*; import java.nio.file.*; public class Test { public static void main(Str