This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269064

Summary: In getSelectedFiles, the first letter of AbsolutePath isn't capital only.
Product: ide Reporter: ka1698
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal Keywords: JDK_8
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE 日志

Description ka1698 2016-11-22 01:40:39 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.8.0_51
Runtime = Java HotSpot(TM) Client VM 25.51-b03

I use (JFileChooser,getSelectedFiles,getAbsolutePath) to get the getAbsolutePath. 

When one file be choosed, the first letter of disk is lowercase in AbsolutePath. 

When Multi files be choosed, the first letter of disk is capital in AbsolutePath.

So, it can not useing the AbsolutePath to adjudge that file is overlaped or not in repetitious JFileChooser & getSelectedFiles.

Sorry, I am a junior for English.
当我使用 JFileChooser,getSelectedFiles,getAbsolutePath时,发现:
1) 不管用单选参数,还是使用多选参数,只要一次只选择一个文件。
   那么 得到的 文件绝对路径及文件名中,首字符(盘符的) 是 小写字母。

2) 而使用多选参数,只要一次选择2个以上文件时。
   那么 得到的 文件绝对路径及文件名中,首字符(盘符的) 是 大写字母。

3) 这样,如果我用(JFileChooser,getSelectedFiles,getAbsolutePath)做多次选择文件,
   那么用 文件绝对路径及文件名 ,无法直接判断,是否做了重复的选择。

Comment 1 ka1698 2016-11-22 01:40:50 UTC
Created attachment 162974 [details]
IDE 日志