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.
When I set the java project src includes value to "**/*.java", some directories/folders are not treated as java node, i.e., these nodes' context menu only has "New Empty File..." and "New Folder", as opposed to the regular items like "New Java Class", "New Java package", etc. In this case, the nodes' package name known to the IDE is null, which has caused NPE in refactoring(see issue 134404) This problem happens in both Favorite View and Project View. When resetting the src includes to the default ("**"), everything is back to normal. It would be great if NB can give some guidance/warning how to set the src includes value. Currently it has simple instruction on the bottom of the form: "Sample patterns: com/mycorp/, **/doc-files/, **/*.html" One option is to add to this instruction something like: "includes should contain both directories and files (not just **/*.java)for IDE to work properly" "avoid modifying the includes field; modify excludes instead." Another option is to pop up a warning only if the includes field got focus, the same way as entering new class name in new class wizard. This way we can avoid having too much verbiage on the form.