Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Problem with binary weaving


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 <f.felgenhauer@xxxxxxxx>
Sent by: aspectj-users-bounces@xxxxxxxxxxx

18/03/2007 14:37

Please respond to
Florian Felgenhauer <f.felgenhauer@xxxxxxxx>; Please respond to
aspectj-users@xxxxxxxxxxx

To
aspectj-users@xxxxxxxxxxx
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
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
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







Back to the top