Ooooops!

  | public class StackHeightAspect implements IStackHeight
  | {
  |     private int height;
  | 
  |     public int size ()
  |     {
  |        return height;
  |     }
  | 
  |     public Object pushInvocation ( MethodInvocation invocation ) throws Throwable
  |     {
  |         ++ this.height;
  |         return invocation.invokeNext();
  |     }
  | 
  |     public Object popInvocation ( MethodInvocation invocation ) throws Throwable
  |     {
  |         if ( this.height > 0 )
  |         {
  |             -- this.height;
  |         }
  | 
  |         return invocation.invokeNext();
  |     }
  | 
  |     public Object sizeInvocation ( MethodInvocation invocation ) throws Throwable
  |      {
  |               return new Integer(this.size());
  |      }
  | }
  | 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840997#3840997

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840997


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to