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 227848 - Add package to "other test sources" iadds package to "source packages" instead
Summary: Add package to "other test sources" iadds package to "source packages" instead
Status: REOPENED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: UI, USABILITY
Depends on:
Blocks:
 
Reported: 2013-03-23 14:20 UTC by everflux
Modified: 2016-07-10 19:00 UTC (History)
0 users

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 everflux 2013-03-23 14:20:18 UTC
I have a maven based project with git vcs, in projects expanded "source packages" and "other test sources".
I make a right click to "src/test/resources/" right under "Other test sources" and choose "new" "java package".
I enter "foo.bar" as package name.

The package appears under "Source packages" in the projects view and is created under "src/main/java".

Expected behaviour: Package hierarchy is created in "src/test/resources" which was selected OR "new java package" is not available from context menu in test-resources context. (I would prefer to be able to create the package correctly instead disabling creating the  package hierarchy.)

Tested with "reduced tree view" and "tree view", same behaviour.
Comment 1 Milos Kleint 2013-04-12 15:08:06 UTC
related to issue 228255
Comment 2 Milos Kleint 2013-07-03 12:57:16 UTC
the problem lies primarily with  the template code for package (and java files) that assumes that packages and java files can only be created within java source roots. And AFAIK it was designed to work this way from the beginning and is working according to the UI specifications.
Comment 3 Martin Balin 2016-07-07 08:39:21 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 4 everflux 2016-07-10 19:00:32 UTC
Still present in NB 8.1