--- /dev/null
+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(*) {}
+}
runTest("compiling spring - 2");
}
+ public void testCompilingSpring_pr260384_3() {
+ runTest("compiling spring - 3");
+ }
+
public void testAtAspectJDecp_pr164016() {
runTest("ataspectj decp 164016");
}
<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"/>