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 148670 - Associations reversed when shown on multiple diagrams
Summary: Associations reversed when shown on multiple diagrams
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-29 19:50 UTC by swedishbricks
Modified: 2008-10-07 20:18 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 swedishbricks 2008-09-29 19:50:21 UTC
Associations created on one class diagram are reversed on all other class diagrams on which they appear.
To reproduce:
--> Create a new project
--> Create the first class diagram
--> Create two new classes visible on first diagram
--> Associate the classes using a navigable association
--> Create a second class diagram
--> Drag both classes onto the second diagram

The direction of the association will be as created on the original diagram but will always be reversed on the second 
and subsequent diagrams.
Comment 1 swedishbricks 2008-09-30 01:26:58 UTC
I found a few occasions on which the associations are not reversed. So it is not always the case that they are 
reversed, but I was able to consistently recreate this bug using the steps outlined in the initial report.
Comment 2 Sergey Petrov 2008-09-30 08:08:06 UTC
tried a bit and found reverting is dependent on order of source and target class drop to another diagram.
if drop both it's dependent on a way of selection. need to be resolved in rel discovery.
Comment 3 Sergey Petrov 2008-09-30 11:52:35 UTC
http://hg.netbeans.org/uml-main/rev/92abcd4ad4f3 fixed
Comment 4 Trey Spiva 2008-09-30 18:16:15 UTC
Reviewed
Comment 5 Quality Engineering 2008-10-01 05:59:35 UTC
Integrated into 'main-golden', will be available in build *200810010201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/92abcd4ad4f3
User: sergeyp@netbeans.org
Log: fix #148670 - in association discovery find from and to properly
Comment 6 Peter Lam 2008-10-03 00:33:23 UTC
verified in build 20081002
Comment 7 swedishbricks 2008-10-07 15:34:57 UTC
This issue seems to have regressed by the time of last night's build (200810070201). At the end of last week, it was 
fixed, but it seems to be back now.
Comment 8 Sergey Petrov 2008-10-07 15:43:39 UTC
installed today 200810070201 and downloaded latest uml module from update center.
can't reproduce the issue. tried drop one by one in different order, drop at once with differnt initial selection.
are steps the same? can uml module be relatively old even main build is 200810070201?
Comment 9 Peter Lam 2008-10-07 17:26:25 UTC
I just tried the same build but not able to reproduce the problem either. Maybe a different scenario?
The latest from the update center should have the latest UML, minus maybe a few fixes from yesterday.
Comment 10 swedishbricks 2008-10-07 17:41:10 UTC
I must be missing something. Which update center is being maintained with the latest? When I look at the available 
plugins, all I see is UML from 11 Aug. I have been unzipping the nightly build over the top of that, assuming that 
what needed to be updated would be updated. I haven't been able to find a FAQ or anything that gives any other 
instructions.
This is likely a user error, but please advise me of what I should do.
Thanks for your patience.
Comment 11 Peter Lam 2008-10-07 17:49:07 UTC
I downloaded javase zip (not installer version) of the latest build (it's build 200810070201 now) of Netbeans 6.5 from
http://bits.netbeans.org/download/trunk/nightly/latest/
Then, installed UML from the update center by doing the following.

Tools->Plugins
From the Plugins dialog, click on Available Plugins tab
Select UML from the list, the build for UML is 10/07/08 as indicated on the right
Click on Install

Please try this and see if you still see the problem.
Comment 12 Sergey Petrov 2008-10-07 17:53:04 UTC
ok, then mark it as fixed again.
I'm not sure about unzip over beta scenario, it may be hard to get proper uml then and may be better to uninstall
current and insall latest nightly. UML is no part of build any more and after installing nightly you need to go to
plugin manager and install it, in case of fresh installation latest module version will be suggested for download, if
thre anything in netbeans user dir some older one may be in list and you may ned to refresh plugins list.
you still may try to clean out uml in your current state without full reinstall, try to uninstall UML from plugin
manager or/and remove uml6 directory from nb installation directory if exists.
Comment 13 swedishbricks 2008-10-07 19:29:09 UTC
OK. I downloaded the latest NB nightly as recommended and installed the latest from the Update Center. The 
associations were still reversed on some diagrams, but, after recreating the affected portions of those diagrams, all 
is well.
Thanks again for your patience! Sorry for the inconvenience.
Comment 14 Peter Lam 2008-10-07 20:18:54 UTC
No problem. Glad to hear that it's working well now.