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 253620 - No error message for invalid class names
Summary: No error message for invalid class names
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Test Runner (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 14:48 UTC by Tomas Mysik
Modified: 2016-01-11 19:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2015-07-21 14:48:52 UTC
When one returns invalid class names from TestCreatorConfigurationProvider. getSourceAndTestClassNames(), no error message is returned. I tried the following:

(1) return new String[] {"", ""};
(2) return new String[0]; // causes AIOOBE
(3) return new String[] {null, null}; // causes NPE
(4) return new String[] {"whatever", "donotcare"};

Thanks.
Comment 1 Tomas Mysik 2015-07-21 15:04:59 UTC
BTW consider returning org.openide.util.Pair instead of array of Strings...