Skip to main content



      Home
Home » Language IDEs » AspectJ » Can't get AJDT to work...
Can't get AJDT to work... [message #583487] Fri, 01 October 2004 19:45
Eclipse UserFriend
Hi,
I recently upgraded to Eclipse 3.0.1 & AJDT 1.1.12 but I can't get
this combination to work at all.

I have boiled things down to a minimalistic project that contains a
single class:

package test;

class Test
{
Test() {
System.out.println("Test()");
}

public static void main(String[] args) {
System.out.println("main(...)");
new Test();
}
}

I then used the "Convert to AspectJ Project" command and added the
following aspect:

package test;

public aspect DetectSystemOutErrorUsage
{
pointcut allSystemOutAndSystemErrAccesses():
(get(* System.out) || get(* System.err));

declare warning:
allSystemOutAndSystemErrAccesses()
&& !adviceexecution()
: "Warning: use of System.out or System.err - consider logging
instead!";
}

I can execute the Test.main() and get the expected output, so things
are being built, but there are NO warnings issued and also the
visualizer shows no location nor match as if the aspect would not get
compiled at all.

I am puzzled! What am I missing here?

Michael

PS.: I have been using earlier versions of AspectJ/AJDT and those used
to work...
Previous Topic:workbench build failed 3.0
Next Topic:Can't get AJDT to work...
Goto Forum:
  


Current Time: Thu Jun 19 22:57:54 EDT 2025

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

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

Back to the top