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 108769 - Find Usages shows incorrect information.
Summary: Find Usages shows incorrect information.
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 15:48 UTC by Michael Nazarov
Modified: 2007-09-03 16:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (10.36 KB, image/png)
2007-07-03 15:48 UTC, Michael Nazarov
Details
Correct Find Usages graph (25.79 KB, application/octet-stream)
2007-08-13 19:09 UTC, Sonali Kochar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-07-03 15:48:24 UTC
"Find usages" for XML schema imported fro one project to another shows two occurrences pointed to same line of code.
See screenshot also.
Comment 1 Michael Nazarov 2007-07-03 15:48:50 UTC
Created attachment 44675 [details]
screenshot
Comment 2 Michael Nazarov 2007-07-04 10:59:20 UTC
Looks fine with latest build - just 1 occurrence, but there are other issues so I'll file more about Refactoring Rename
/ Undo / Redo.
Comment 3 Sonali Kochar 2007-07-06 17:55:46 UTC
Works correctly in the latest build
Comment 4 Mikhail Matveev 2007-07-27 14:25:22 UTC
Veified
Comment 5 Michael Nazarov 2007-08-13 13:51:46 UTC
Product Version: NetBeans IDE Dev (Build 200708130000)

Welcome back...
Should I set REGRESSION keyword?
Comment 6 Sonali Kochar 2007-08-13 19:08:09 UTC
Its not a regression since I have never been able to reproduce this bug, never put any fix..

I am still not able to see this bug. Please see the attachment. Is there some steps that I am missing? Mikhail Matveev
is also unable to see this bug.

Can you attach your BluePrint1 and BpelModule1 projects?
Comment 7 Sonali Kochar 2007-08-13 19:09:05 UTC
Created attachment 46528 [details]
Correct Find Usages graph
Comment 8 Michael Nazarov 2007-08-14 10:20:23 UTC
Are you sure you used cross-project reference? May be the situation is just the same as in issue with MacOS broken 
references?
Comment 9 Sonali Kochar 2007-08-14 17:44:22 UTC
I tried again following the steps outlined in issue http://www.netbeans.org/issues/show_bug.cgi?id=112679

I dont see this bug. Can you try using new projects (dont use ur existing BluePrint1 and BpelModule1), create new ones
and see if the bug is there?
Comment 10 Sonali Kochar 2007-08-14 18:50:43 UTC
Tony, Mikhail, Can you please take a look at this issue and reproduce it?
Comment 11 Michael Nazarov 2007-08-15 15:45:34 UTC
Works fine with latest build. Will check again tomorrow. All this cross-projects staff is very unstable...

BTW I always create new projects during testing.
Comment 12 Sonali Kochar 2007-08-21 23:46:27 UTC
can you please verify that this issue is not reproducible and close it?
Comment 13 Sonali Kochar 2007-08-23 23:14:52 UTC
Now that the cross-project reference bug has been fixed, can you please verify and close this bug?
Comment 14 Michael Nazarov 2007-08-24 11:53:09 UTC
Ok, I'll wait for next successful build to verify fixes issues.
Comment 15 Sonali Kochar 2007-08-28 17:52:16 UTC
I havent heard from Michael. Closing it as it works for me. Please reopen if you see the issue.
Comment 16 Mikhail Matveev 2007-08-30 18:25:35 UTC
Works both for me and Michael. Verified.
Comment 17 Michael Nazarov 2007-08-31 16:32:05 UTC
Product Version: NetBeans IDE Dev (Build 200708310258)

Ok, I finally found clear steps to reproduce this issue. Looks like Build make sence.

1. Create Sample BluePrint1 application.
2. Create BPEL module.
3. Add to Module Sample Loan Application Schema.
4. Add to Sample properties link to Module.
5. Add to purchaseOrder reference to newLoanApplication schema.
6. Build Sample. Wait for finish -- not very useful design we have...
7. Find Usages for newLoanApplication schema.

Here it is.
Comment 18 Sonali Kochar 2007-08-31 22:50:50 UTC
The find usages was also including the files under the build dir resulting in duplicate usages.

RefactoringUtil.java	31 Aug 2007 21:47:34 -0000	1.5
Comment 19 Michael Nazarov 2007-09-03 13:02:37 UTC
How one should know about? Information looks exactly as duplicates.
Comment 20 Michael Nazarov 2007-09-03 16:04:37 UTC
Product Version: NetBeans IDE Dev (Build 200708310258)