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.
The Library Manager in 7.0RC1 uses a new kind of dialog to select JARs to add to a library. With this new dialog, selecting multiple files at the same time adds a single invalid line to the library.
Reassigning for further evaluation.
Regression means P2
Unable to reproduce on Ubuntu/JDK 6u24, 7.0 RC1 Please reopen with more details, how we can reproduce.
Cannot reproduce on Mac
Created attachment 107525 [details] Screenshot of invalid library entry after multiselection of more JARs.
Please take a look at the attached screenshot. I simply multiselected both activation and mail JAR files and clicked Add JAR/Folder".
Looks like some sort of nonstandard file chooser UI? Perhaps its JFileChooser UI delegate has a buggy implementation of multiselection.
Product Version: NetBeans IDE 7.0 RC2 (Build 201103310000) Java: 1.7.0-ea; Java HotSpot(TM) 64-Bit Server VM 21.0-b02 System: Linux Mint 10 (Julia) - version 2.6.35-22-generic running on amd64; UTF-8; cs_CZ (nb) Userdir: /home/cesilko/.netbeans/7.0rc2
So probably a bug in the JDK 7 file chooser. I have a feeling this was filed before. At any rate, not a P2; workaround is simply to select files individually (admittedly an annoyance when there are a lot of them).
Agreed. This is JDK 7 specific bug. With JDK 6 Update 23 this does not happen.
Tomas M. will check it with JDK 7.0, seems as JDK 7.0 bug
it's really reproducible on ubuntu jdk7ea.
Bug in the JDK 7.0 (GTK look & feel). Can be tested with simple Java code: UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); JFileChooser chooser = new JFileChooser(); chooser.setFileHidingEnabled(false); chooser.setAcceptAllFileFilterUsed(false); chooser.setMultiSelectionEnabled (true); chooser.setDialogTitle("TXT_OpenClasses"); chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); chooser.setApproveButtonText("CTL_SelectCP"); if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) { System.out.println(Arrays.toString(chooser.getSelectedFiles()));; } Thanks to tmusil for Linux testing.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7049934
Tomasi M, can you verify that the problem is fixed in jdk7 b145? It should be. The short sample code does not manifest the problem with b145 anymore.
Verified in JDK 7 b145, works properly now.