[jboss-cvs] JBossAS SVN: r79032 - projects/aop/trunk/aop/src/main/org/jboss/aop.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Oct 2 11:14:29 EDT 2008


Author: kabir.khan at jboss.com
Date: 2008-10-02 11:14:29 -0400 (Thu, 02 Oct 2008)
New Revision: 79032

Modified:
   projects/aop/trunk/aop/src/main/org/jboss/aop/AspectManager.java
Log:
[JBAOP-658] Get rid of debug code I should not have commited

Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/AspectManager.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/AspectManager.java	2008-10-02 14:49:50 UTC (rev 79031)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/AspectManager.java	2008-10-02 15:14:29 UTC (rev 79032)
@@ -1050,37 +1050,7 @@
                   }
                }
       
-               byte[] bytes = weavingStrategy.translate(this, className, loader, classfileBuffer);
-               
-               if (bytes != null && (className.contains("SecurityTester") || className.contains("SecuredPOJO")))
-               {
-                  try
-                  {
-                     System.out.println("!!!!!!!!!!!!!!!! outputting");
-                     String filename = "." + File.separatorChar
-                         + className.replace('.', File.separatorChar) + ".class";
-                     System.out.println("!!!!!!!!!!!!!!!! OUTPUTTING " + className);
-                     int pos = filename.lastIndexOf(File.separatorChar);
-                     if (pos > 0) {
-                         String dir = filename.substring(0, pos);
-                         if (!dir.equals("."))
-                             new File(dir).mkdirs();
-                     }
-
-                     FileOutputStream out = new FileOutputStream(filename);
-                     try {
-                        out.write(bytes);
-                     }
-                     finally {
-                         out.close();
-                     }
-                  }
-                  catch(Exception e)
-                  {
-                     System.out.println("!!!!!!!!!! COULD NOT OUTPUT FILE");
-                  }
-               }
-               return bytes;
+               return weavingStrategy.translate(this, className, loader, classfileBuffer);
             }
          }
          finally




More information about the jboss-cvs-commits mailing list