tag:blogger.com,1999:blog-3822535.post4305476207481447098..comments2023-07-06T01:45:08.751-07:00Comments on Ashwin Jayaprakash's Blog: /dev/null on WindowsAshwin Jayaprakashhttp://www.blogger.com/profile/14487665820971997426noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3822535.post-89846095462855320942011-09-14T10:47:59.574-07:002011-09-14T10:47:59.574-07:00@Amit - no luck@Amit - no luckAshwin Jayaprakashhttps://www.blogger.com/profile/14487665820971997426noreply@blogger.comtag:blogger.com,1999:blog-3822535.post-73151185823667728312011-09-14T10:32:46.987-07:002011-09-14T10:32:46.987-07:00Hi did you get solution of your problem?Hi did you get solution of your problem?Amit Sharmahttps://www.blogger.com/profile/16609551939626768625noreply@blogger.comtag:blogger.com,1999:blog-3822535.post-24766523111184141752010-07-22T15:25:56.320-07:002010-07-22T15:25:56.320-07:00I've filed a bug report. Waiting for a confirm...I've filed a bug report. Waiting for a confirmation from Oracle.Ashwin Jayaprakashhttps://www.blogger.com/profile/14487665820971997426noreply@blogger.comtag:blogger.com,1999:blog-3822535.post-46011361916590720892010-07-21T20:48:42.352-07:002010-07-21T20:48:42.352-07:00Looks like a bug in the java.io.File implementatio...Looks like a bug in the java.io.File implementation. Would suggest file a bug on the JDK: http://bugreport.sun.com/bugreport/<br /><br />java.io.File depends on an abstract class called FileSystem, which is implemented as a native library.Shantanu Kumarhttps://www.blogger.com/profile/05850495396182844220noreply@blogger.comtag:blogger.com,1999:blog-3822535.post-67982713146815730872010-07-21T14:45:27.010-07:002010-07-21T14:45:27.010-07:00Yup, that's what I did in very the first line ...Yup, that's what I did in very the first line but Java new File("nul:").getAbsolutePath() mysteriously adds a prefix to it.Ashwin Jayaprakashhttps://www.blogger.com/profile/14487665820971997426noreply@blogger.comtag:blogger.com,1999:blog-3822535.post-89153287379426365742010-07-21T14:13:18.138-07:002010-07-21T14:13:18.138-07:00I think the Windows null device name is NUL:
Not ...I think the Windows null device name is NUL:<br /><br />Not D:\somedir\nul:<br />Just NUL:<br />Like C: D: etc.<br /><br />Similarly the console device in Windows is CON:Shantanu Kumarhttps://www.blogger.com/profile/05850495396182844220noreply@blogger.com