Newbie got Problems creating ANY (a little complex) aspect... or is it syntax? [message #56732] |
Mon, 26 September 2005 10:16 |
Eclipse User |
|
|
|
Originally posted by: Dominik.pich.info
So... is AJDT simply not far enough along and should I use aspectJ
directly or is it my fault again?
I did read tutorials and BOTH this and the aspect in my last post SEEM
fine to me but neither compiles.
- the other throwing a NullPointerException at compile-time
- this one raising an IllegalStateException: Wrong number of type
parameters supplied
---
public aspect Trace {
pointcut totrace(TraceLevel level) : execution(* * (..)) &&
@annotation(level);
before(TraceLevel level): totrace(level) {
//doTraceEntry(thisJoinPoint);
}
after(TraceLevel level): totrace(level) {
//doTraceExit(thisJoinPoint);
}
}
|
|
|
|
Re: Newbie got Problems creating ANY (a little complex) aspect... or is it synt [message #56866 is a reply to message #56813] |
Mon, 26 September 2005 19:12 |
Eclipse User |
|
|
|
Originally posted by: Dominik.pich.info
*sigh* I hoped the problem would not limited to me! ;)
Anyways... I cant see anything out of ordinary about my environment.
I run
Eclipse Version: 3.1.0 Build id: I20050627-1435 with AJDT Version: 1.3.0
Build id: 20050923165804 (upddated after first post, but same situation -
should I update again?)
on OSX 10.4.2
on G4 PowerBook
well... Im in Germany but neither Language nor Keyboard layout are so I
guesss that's not important :P
|
|
|
Re: Newbie got Problems creating ANY (a little complex) aspect... or is it synt [message #56892 is a reply to message #56813] |
Mon, 26 September 2005 19:14 |
Eclipse User |
|
|
|
Originally posted by: Dominik.pich.info
DOH! Forgot TraceLevel annotation:
package org.implemented.library.tracing;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Class or methods are annotated by this so code to trace method
invokations is
* created.
*
* @author dominik
* @version 0.9
*/
@Target( ElementType.METHOD )
@Retention( RetentionPolicy.RUNTIME )
public @interface TraceLevel {
/**
* The default log level as string
*/
String DEFAULT_LEVEL = "FINE";
/**
* The default log level as string
* @return the default log level
*/
String value() default DEFAULT_LEVEL;
}
|
|
|
|
|
Re: Newbie got Problems creating ANY (a little complex) aspect... or is it synt [message #590155 is a reply to message #56813] |
Mon, 26 September 2005 19:12 |
Eclipse User |
|
|
|
Originally posted by: Dominik.pich.info
*sigh* I hoped the problem would not limited to me! ;)
Anyways... I cant see anything out of ordinary about my environment.
I run
Eclipse Version: 3.1.0 Build id: I20050627-1435 with AJDT Version: 1.3.0
Build id: 20050923165804 (upddated after first post, but same situation -
should I update again?)
on OSX 10.4.2
on G4 PowerBook
well... Im in Germany but neither Language nor Keyboard layout are so I
guesss that's not important :P
|
|
|
Re: Newbie got Problems creating ANY (a little complex) aspect... or is it synt [message #590164 is a reply to message #56813] |
Mon, 26 September 2005 19:14 |
Eclipse User |
|
|
|
Originally posted by: Dominik.pich.info
DOH! Forgot TraceLevel annotation:
package org.implemented.library.tracing;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Class or methods are annotated by this so code to trace method
invokations is
* created.
*
* @author dominik
* @version 0.9
*/
@Target( ElementType.METHOD )
@Retention( RetentionPolicy.RUNTIME )
public @interface TraceLevel {
/**
* The default log level as string
*/
String DEFAULT_LEVEL = "FINE";
/**
* The default log level as string
* @return the default log level
*/
String value() default DEFAULT_LEVEL;
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03276 seconds