The Artima Developer Community
Sponsored Link

Java Buzz Forum
Fun With AOP for April 1

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Fun With AOP for April 1 Posted: Mar 26, 2004 9:17 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Fun With AOP for April 1
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

Here is a fun one to add to your build come April 1... Take AspectJ, define an aspect which applies advice on every method call where an exception is thrown. Catch the exception, and throw a random error =) We all love when we execute a JDBC call and an EJBException is thrown, or even better a ThreadDeath in place of an NPE -- and best of all -- make the determination of which one to throw random, so the same code throws a different error every time ;-) To pull it off you need to sneak it into CVS and hide the aspect weaving in the build somewhere.

If I have spare time between now and then I'll toss up a library to do it for everyone ;-) Not much chance of that though =(

Read: Fun With AOP for April 1

Topic: Web ontologies: problems, benefits Previous Topic   Next Topic Topic: Pruning logfiles with Sed and grep

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use