Menu

#2 AP weaving fails

v0.4.2
open-postponed
5
2003-05-19
2002-08-22
No

Based on the Pressure script that ships with 0.4.2, I
tried the following (changed type of variable c from
int to Integer):

traverse 'car' do
{
add method 'void count(Integer c)' {
in 'APExample.Car' do beforeNavigation${ c = new
Integer(0);}$
in 'APExample.Car' do afterNavigation ${
System.out.println("Number of axes: " + c); }$
in 'APExample.Axis' do afterNavigation ${ c = new
Integer(c.intValue()+1); }$
}
}

See also <a
href="http://sourceforge.net/tracker/index.php?func=detail&aid=598801&group_id=47360&atid=449242">Bug
598801</a>

I get the following error:

Could not get weavepoint

Null pointer exception.
Message:
null
java.lang.NullPointerException
at
fzi.injectj.node.PropagationPattern.apply(PropagationPattern.java:265)
at
fzi.injectj.node.APCallStatement.execute(APCallStatement.java:26)
at
fzi.injectj.util.StatementListExecutor.start(StatementListExecutor.java:51)
at fzi.injectj.Main.weave(Main.java:449)
at fzi.injectj.Main.internalStart(Main.java:349)
at fzi.injectj.Main.start(Main.java:72)
at fzi.injectj.Main.main(Main.java:63)

Discussion

  • Thomas Genssler

    Thomas Genssler - 2002-08-22
    • summary: AP --> AP weaving fails
     
  • Tobias Gutzmann

    Tobias Gutzmann - 2003-05-19
    • status: open --> open-postponed
     

Log in to post a comment.