Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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


Back to the top