Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Introduction to more than one class does not work for AJDT 1.1.1
Introduction to more than one class does not work for AJDT 1.1.1 [message #17378] Wed, 19 March 2003 10:42 Go to next message
Peter Friese is currently offline Peter Friese
Messages: 23
Registered: July 2009
Junior Member
Hi,

The following code is legal AspectJ and compiles with standalone AspectJ
1.0 and up, but not in AJDT 1.1.1:

public aspect TestAspect {
public String (Person || Boss).getTest() {
return "Test";
}
}

The compiler states that the "Return type for the method is missing".

I also tried using the aspectjtools.jar located in the plugin directory
from the commandline, and it gives me the same errors:

D:\workspace\TestAspects2\src\com\lhsystems\test2\BoldPerson .java:29
Return type for the method is missing
public String (Person || Boss).getTest() {
^^^^^^^^

Any clues?

Peter
Re: Introduction to more than one class does not work for AJDT 1.1.1 [message #17392 is a reply to message #17378] Wed, 19 March 2003 12:23 Go to previous message
Peter Friese is currently offline Peter Friese
Messages: 23
Registered: July 2009
Junior Member
Hi,

maybe you might find it of interest that the code below doesn't compile
with the aspectj 1.1 prerelease either. Taking a closer look at the
aspectjtools.jar, things get clearer: the compiler used by aspectJ 1.1 is
the eclipse compiler...

Peter Friese wrote:

> Hi,

> The following code is legal AspectJ and compiles with standalone AspectJ
> 1.0 and up, but not in AJDT 1.1.1:

> public aspect TestAspect {
> public String (Person || Boss).getTest() {
> return "Test";
> }
> }
[...]
Re: Introduction to more than one class does not work for AJDT 1.1.1 [message #564927 is a reply to message #17378] Wed, 19 March 2003 12:23 Go to previous message
Peter Friese is currently offline Peter Friese
Messages: 23
Registered: July 2009
Junior Member
Hi,

maybe you might find it of interest that the code below doesn't compile
with the aspectj 1.1 prerelease either. Taking a closer look at the
aspectjtools.jar, things get clearer: the compiler used by aspectJ 1.1 is
the eclipse compiler...

Peter Friese wrote:

> Hi,

> The following code is legal AspectJ and compiles with standalone AspectJ
> 1.0 and up, but not in AJDT 1.1.1:

> public aspect TestAspect {
> public String (Person || Boss).getTest() {
> return "Test";
> }
> }
[...]
Previous Topic:Introduction to more than one class does not work for AJDT 1.1.1
Next Topic:WSAD aspectj sdk 1.4
Goto Forum:
  


Current Time: Sun Sep 21 00:10:38 GMT 2014

Powered by FUDForum. Page generated in 0.12460 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software