Bug 107636 - AJDT relationship model is sometimes lost
Summary: AJDT relationship model is sometimes lost
Status: RESOLVED DUPLICATE of bug 107005
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 107604 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-22 12:46 EDT by Matt Chapman CLA
Modified: 2005-08-23 08:47 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Chapman CLA 2005-08-22 12:46:13 EDT
Scenario:
 - create Bean Example
 - switch to Visualiser perspective and view that project
 - shutdown and restart
 - click Bean Example
The visualiser view should render quickly, complete with the appropriate
stripes. Sometimes clicking on the project as above also triggers a build (as
shown in the bottom right status line). Sometimes when this build finishes, the
stripes of the visualisation disppear.

When this happens, the editor markers for the advises/advised by etc
relationships are also missing. Therefore the problem is with the relationship
map. Here are some entries from the entry trace view:

17:38:03	 Timer event: 50ms: Load serialized element map (22 rels in project:
Bean Example)
...
17:38:08	 Build kind = AUTOBUILD
17:38:08	 AJDTContentProvider.updateData() executed - took 1612ms
17:38:08	 Project=Bean Example         kind of build requested =Full AspectJ
compilation
17:38:08	 Builder: Tidied output folder, deleted 3 .class files from
E:\AJDTversions\eclipse-SDK-3.1-win32-0822\eclipse\workspace\Bean Example\bin
17:38:09	 Timer event: 471ms: Time to first compiled message
17:38:09	 Timer event: 591ms: Time to first woven message
17:38:09	 AspectJ reports build successful, build was: FULL
17:38:09	 Timer event: 811ms: Total time spent in AJDE
17:38:09	 Timer event: 0ms: Create element map (0 rels in project: Bean Example)
17:38:09	 Types affected during build = 3
17:38:09	 Timer event: 0ms: Add markers (0 markers)
17:38:09	 AJDTContentProvider.updateData() executed - took 0ms
17:38:09	 Timer event: 1101ms: Total time spent in AJBuilder.build()

So the serialized model was loaded okay, but then for some reason no
relationships were found after the build completes. Pressing the build button
doesn't restore the relationships, but closing and reopening the project does.
Comment 1 Matt Chapman CLA 2005-08-23 08:24:42 EDT
*** Bug 107604 has been marked as a duplicate of this bug. ***
Comment 2 Matt Chapman CLA 2005-08-23 08:47:29 EDT
This is pretty much the same issue as bug 107005 - both result from registering
.aj as a java file extension.

*** This bug has been marked as a duplicate of 107005 ***