]> source.dussan.org Git - aspectj.git/commitdiff
260384: NumberFormatException
authoraclement <aclement>
Tue, 13 Jan 2009 17:38:11 +0000 (17:38 +0000)
committeraclement <aclement>
Tue, 13 Jan 2009 17:38:11 +0000 (17:38 +0000)
tests/bugs164/pr260384/C.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java
tests/src/org/aspectj/systemtest/ajc164/ajc164.xml

diff --git a/tests/bugs164/pr260384/C.java b/tests/bugs164/pr260384/C.java
new file mode 100644 (file)
index 0000000..64a6c8a
--- /dev/null
@@ -0,0 +1,50 @@
+public class C {
+       SessionFactory sf;
+       HT ht;
+       
+          public void m() {
+                 LocalSessionFactoryBean lsfb = new LocalSessionFactoryBean() {
+                         protected SessionFactory newSessionFactory(Configuration config) throws Exception {
+                                 return sf;
+                         }
+                 };
+              final TT tt = new TT();
+              tt.execute(new TransactionCallback() {
+                  public Object doInTransaction(TransactionStatus status) {
+                          System.out.println("X");
+                          ht.execute(new HibernateCallback() {
+                                  public Object doInHibernate(Session session) {
+                                          return null;
+                                  }
+                          });
+                          tt.execute(new TransactionCallback() {
+                          public Object doInTransaction(TransactionStatus status) {
+                                  System.out.println("X");
+                                  ht.execute(new HibernateCallback() {
+                                          public Object doInHibernate(Session session) {
+                                                  return null;
+                                          }
+                                  });
+                                  return null;
+                          }
+                          });
+                          return null;
+                  }
+              });
+          }
+}
+
+class TT { public void execute(Object o) {}}
+class LocalSessionFactoryBean {}
+class HT  { public void execute(Object o) {}}
+class Session {}
+class TransactionStatus {}
+class SessionFactory {}
+class Configuration {}
+class TransactionCallback {}
+class HibernateCallback {}
+
+
+aspect X {
+       before(): within(*) {}
+}
index 326c2ce97a55b9989274e75b4cd1eda07d538015..7e2286fa141143502c39d0c0151f7f61074ba6b1 100644 (file)
@@ -26,6 +26,10 @@ public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
                runTest("compiling spring - 2");
        }
        
+       public void testCompilingSpring_pr260384_3() {
+               runTest("compiling spring - 3");
+       }
+       
        public void testAtAspectJDecp_pr164016() {
                runTest("ataspectj decp 164016");
        }
index 1d036168a63735515d972a74fbb5e9eb9e14158e..6b44c4ce658c00fa6b1176ceaae2563f572b7c70 100644 (file)
@@ -2,9 +2,8 @@
 
 <suite>
     
-    <ajc-test dir="bugs164/pr164016" title="ataspectj decp 164016">
-      <compile files="Code.aj" options="-1.5"/>
-      <run class="test.Code"/>
+    <ajc-test dir="bugs164/pr260384" title="compiling spring - 3">
+      <compile files="C.java" options="-1.5 -emacssym"/>
     </ajc-test>    
     
     <ajc-test dir="bugs164/pr260384" title="compiling spring">
       </compile>
     </ajc-test>    
     
+    <ajc-test dir="bugs164/pr164016" title="ataspectj decp 164016">
+      <compile files="Code.aj" options="-1.5"/>
+      <run class="test.Code"/>
+    </ajc-test>    
+    
+    
     <ajc-test dir="bugs164/pr164016" title="ataspectj decp 164016 - 2">
       <compile files="Code.java TargetBad.java TargetGood.java" aspectpath="code.jar" options="-1.5"/>
       <run class="test.Code"/>