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.
Having an addDirectory() and a getDirectory() which returns one string seems inconsistent. One would expect either a set to match the get or the get to return a List<> or Collection().
Not really a defect. Changing to task.
Fixed during toolchain API refactoring.