Bug 40380 - AspectJ does not honour libraries defined via Project Properties
Summary: AspectJ does not honour libraries defined via Project Properties
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 1.1.4   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-17 11:08 EDT by Matthew Webster CLA
Modified: 2003-08-28 08:17 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 Matthew Webster CLA 2003-07-17 11:08:28 EDT
AJDT 1.1.3, Eclipse 2.1

To build a JDK 1.4. program under Eclipse using JDK 1.3 the appropriate build 
library should be selected in the Project Properties "Java Build Path". 
However AspectJ continues to use the JDK associated with Eclipse so errors 
result from using 1.4 APIs. The same will occur running Eclipse under 1.4 and 
compiling programs for 1.5

Testcase:
1. Run Eclipse under JDK 1.3
2. Create a Java project which uses a 1.4 JDK
3. Write a Java classes that uses 1.4 APIs e.g.

public class TestStringBuffer {

	public  static void main(String[] args) {
		new StringBuffer("Test").indexOf("T");
  	}
}
4. Convert to AspectJ project
Comment 1 Mik Kersten CLA 2003-07-23 13:11:59 EDT
Fixed.  The problem was not with project settings, but with the fact that the 
AspectJ compiler was always getting the user's classpath and prepending it to 
the classpath set by the IDE.
Comment 2 Adrian Colyer CLA 2003-08-28 08:17:04 EDT
updated target milestone to 1.1.4