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.
Summary: | FileOwner.getOwner(), ProjectManager.findProject(), WebModule.getModule() metods unexpected behavour | ||
---|---|---|---|
Product: | platform | Reporter: | Valery-Sh |
Component: | -- Other -- | Assignee: | Antonin Nebuzelsky <anebuzelsky> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | A simple NetBeans Project Suite source code |
Created attachment 158283 [details] A simple NetBeans Project Suite source code Suppose I have a web application and I put into the src/main/webapp a file named package.json. If i write in a NetBeans module: Project webProject = FileOwnerQuery.getOwner( <any-web-project-file-object-inside-project-dir>); or Project webProject = Projectmanager.getDefault.findProject( <any-web-project-file-object-inside-project-dir>); than webProject is an instance of ConvertorProject. (org.netbeans.modules.project.ui.convertor.ProjectConvertorFactory$ConvertorProject) And the code: WebModule.getModule(<any-web-project-file-object-inside-project-dir>) produces null value. But if an object of type FileObject points to the root project directory the everything works as expected. I have: Windows 7 (64) jdk-1.8.0_72 NetBeans 8.1