[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Runtime.addShutdownHook() advising
|
HI Alexey Buistov,
1. You need not give whole rt.jar as -injars arguments. You can extract Runtime.class then put it in jar file. Then weave the jar file. Then u can add the woven Runtime.class in rt.jar.
2. Other option is take Runtime.java source, then weave the single java file. Then add it to rt.jar.
Check out this.
Jitesh
> ----------
> From: aspectj-users-admin@xxxxxxxxxxx[SMTP:aspectj-users-admin@xxxxxxxxxxx] on behalf of Alexey Buistov[SMTP:ABuistov@xxxxxxxxxxx]
> Reply To: aspectj-users@xxxxxxxxxxx
> Sent: Wednesday, March 03, 2004 4:54 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: RE: [aspectj-users] Runtime.addShutdownHook() advising
>
> Did that (included rt.jar to "injars" attr) and got OutOfMemoryError while compiling prg. Any solution?
>
> ========
> Alexey Buistov,
> Software Engineer,
> Miratech Ltd.
> 41 Nauki Ave,
> 03028 Kiev, Ukraine
>
> -----Original Message-----
> From: JITESH KALYANI Shivanand
> Sent: Wednesday, March 03, 2004 1:00 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: RE: [aspectj-users] Runtime.addShutdownHook() advising
>
>
>
> HI Alexey Buistov,
>
> I think its doable.
>
> Please check, whether you are weaving the Runtime.java with your Aspect.
> And Then check your prg refering to Woven Runtime.class in classpath. It is present in java_home/jre/lib/rt.jar.
>
> JItesh
>
>
> > ----------
> > From: aspectj-users-admin@xxxxxxxxxxx[SMTP:aspectj-users-admin@xxxxxxxxxxx] on behalf of Alexey Buistov
> > Reply To: aspectj-users@xxxxxxxxxxx
> > Sent: Wednesday, March 03, 2004 4:15 PM
> > To: aspectj-users@xxxxxxxxxxx
> > Subject: [aspectj-users] Runtime.addShutdownHook() advising
> >
> > Hi there!
> >
> > I need to make some actions with my aspect after execution of Runtime.addShutdownHook().
> >
> > public pointcut shutdown(): execution (* Runtime.addShutdownHook(Thread));
> >
> > after(): shutdown(){
> > System.err.println("ADVICE EXECUTING);
> > // do whatever
> > }
> >
> > But nothing is being printed. The question is: why? Is this task doable?
> >
> > ========
> > Alexey Buistov,
> > Software Engineer,
> > Miratech Ltd.
> > 41 Nauki Ave,
> > 03028 Kiev, Ukraine,
> > tel: +38 044 206 4090 ext number
> > +38 044 206 4099
> > fax: +38 044 206 4091
> >
> >
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>