Florian,

>But when I decompiled the classes I saw
>no changes to the code.
Which classes? You have not specified -outjar so the woven classes will be 
written in the current directory (or subdirectory according to package 
name). The original classes, those in the classes_hwb directory, will be 
unchanged.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM United Kingdom Limited
Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)



Florian Felgenhauer <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
18/03/2007 14:37
Please respond to
Florian Felgenhauer <[EMAIL PROTECTED]>; Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: [aspectj-users] Problem with binary weaving






Hi,

what I forgot to mention.

When I tried it from console I got log messages that all the
classes were woven. But when I decompiled the classes I saw
no changes to the code.

Cheers

Florian

Florian Felgenhauer hat am 16. März 2007 um 19:35 geschrieben:
Hi,

I have a problem with binary weaving.

I have some code I like to trace.

So i changed the tracing example to trace all the code in
my package de.hwb.* (see source code below).

I tried weaving from console:

C:\temp\aspect>C:\temp\aspectj1.5\bin\ajc -cp 
C:\temp\aspectj1.5\lib\aspectjrt.j
ar;C:\temp\aspectj1.5\lib\aspectjtools.jar;classes_hwb;C:\jboss-4.0.4\lib\log4j-
boot.jar;classes_tracing -inpath classes_hwb -aspectpath classes_tracing

I also tried it from within eclipse but got a message

Severity and Description Path Resource Location Creation Time Id
Project HWBTracing is missing required inpath entry: classes_hwb 
HWBTracing Unknown 1174069294821 82905

when I tried to add the classes to the inpath.

Whats going wrong here.

Cheers

Florian

package tracing.lib;



aspect TraceMyClasses extends AbstractTrace {
/**
* The application classes
*/
pointcut classes(): within(de.hwb.*);
/**
* The constructors in those classes - but only the ones with 3
* arguments.
*/
pointcut constructors(): execution(new(..));
/**
* This specifies all the message executions.
*/
pointcut methods(): execution(* *(..));


}
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users







Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU





_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to