Bug 538552 - AJBuilder not resolving dynamic dependencies.
Summary: AJBuilder not resolving dynamic dependencies.
Status: NEW
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 2.2.3   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-03 09:44 EDT by Paul Pazderski CLA
Modified: 2018-09-03 09:44 EDT (History)
0 users

See Also:


Attachments
minimal projects to illustrate bug (8.21 KB, application/x-zip-compressed)
2018-09-03 09:44 EDT, Paul Pazderski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Pazderski CLA 2018-09-03 09:44:02 EDT
Created attachment 275660 [details]
minimal projects to illustrate bug

AspectJ Builder does not resolve dependencies to other workspace projects in Eclipse 4.8 (Build id: I20180611-0500) with latest AJDT dev builds for Eclipse 4.8 (Version 2.2.4.201805281636).

I added some minimal sample projects to illustrate the issue.

The samples are a small application and a small library the app depends on. In jdt-dependency-test as Java Project using org.eclipse.jdt.core.javabuilder and the ajdt-dependency-test one as AspectJ Project using org.eclipse.ajdt.core.ajbuilder.

After importing all four projects, Eclipse calculates a wrong build order. (see Preferences > General > Workspace > Build)
I expect 'lib' is build before 'app' and 'aj-lib' is build before 'aj-app'. The first two are correct but Eclipse will build 'aj-app' before 'aj-lib'.

Eclipse 4.6.3 with AJDT 2.2.4.201703272045 finds correct build order for the sample projects.


This issue is likely related to Bug 507795.
As a workaround I got the correct build order by simply adding 
<dynamicReference class="org.eclipse.jdt.internal.core.DynamicProjectReferences"/>
to the ajbuilder configuration in org.eclipse.ajdt.core/plugin.xml. (like Bug 510360)