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 28771 - Wrong project retrieved from document.getProperty("project")
Summary: Wrong project retrieved from document.getProperty("project")
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-15 09:37 UTC by Martin Roskanin
Modified: 2003-12-11 14:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
startup exception (1.23 KB, text/plain)
2002-11-15 14:14 UTC, Martin Roskanin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Roskanin 2002-11-15 09:37:14 UTC
Arbitrary project (from all open projects) is
returned using document.getProperty("project"),
although document belongs only to one project.

It happens on the build from 7.11.

{I am not able to check this in the current
projects build, because the projects are not
opened in the explorer. (maybe another bug? or
already exists?)}
Comment 1 Vitezslav Stejskal 2002-11-15 13:20:07 UTC
Martin, how can I test this? What do you mean by 'projects aren't open
in the explorer'? Do you mean that creating project from template or
opening existing project doesn't work? If so, than this is surely P1,
but it seems to work well on my machine.
Comment 2 Martin Roskanin 2002-11-15 14:11:48 UTC
I've meant that after startup there were no projects mounted in the
explorer. (No Sample Project by default) There was only blank sheet
node and the name of tab was null instead of "Projects"
The attached exception has occured.
Comment 3 Martin Roskanin 2002-11-15 14:14:08 UTC
Created attachment 7958 [details]
startup exception
Comment 4 Vitezslav Stejskal 2002-11-15 17:07:25 UTC
After off-line discussion with Martin we clarified few things:

- you shouldn't have the A project (its .project file) underneath the
folder where the B project lives
- when file is contained by two or more projects then opening it from
FileSystem tab will open it using arbitrary project containing that file
- in contrary, opening it from Projects tab should correctly assigne
the project from which the file has been opened

The exception seems strange, but I really can't reproduce it. Please,
try latest sources as they might be some changes done in core/naming
module registration (see nbdev).
Comment 5 Jan Becicka 2003-08-21 15:12:08 UTC
Verified
Comment 6 Jan Becicka 2003-11-25 14:22:50 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as CLOSED.