Introduction to more than one class does not work for AJDT 1.1.1 [message #17378] |
Wed, 19 March 2003 05:42  |
Eclipse User |
|
|
|
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 07:23  |
Eclipse User |
|
|
|
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 07:23  |
Eclipse User |
|
|
|
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";
> }
> }
[...]
|
|
|
Powered by
FUDForum. Page generated in 0.02973 seconds