From f2c6356a17f3d9e18a0e2403f33e9cbff74740b2 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 16 Apr 2010 18:01:09 +0000 Subject: [PATCH] 309336: testcode --- tests/bugs169/pr309336/NoSystemStreams.aj | 4 + tests/bugs169/pr309336/Operators.java | 82 +++++++++++++++++++ tests/bugs169/pr309336/UseOperators.java | 18 ++++ .../systemtest/ajc169/Ajc169Tests.java | 4 + .../org/aspectj/systemtest/ajc169/ajc169.xml | 10 ++- 5 files changed, 115 insertions(+), 3 deletions(-) create mode 100644 tests/bugs169/pr309336/NoSystemStreams.aj create mode 100644 tests/bugs169/pr309336/Operators.java create mode 100644 tests/bugs169/pr309336/UseOperators.java diff --git a/tests/bugs169/pr309336/NoSystemStreams.aj b/tests/bugs169/pr309336/NoSystemStreams.aj new file mode 100644 index 000000000..49e0e2b49 --- /dev/null +++ b/tests/bugs169/pr309336/NoSystemStreams.aj @@ -0,0 +1,4 @@ + +aspect NoSystemStreams { + declare warning : get (java.io.PrintStream System.out) : "No system.out"; +} \ No newline at end of file diff --git a/tests/bugs169/pr309336/Operators.java b/tests/bugs169/pr309336/Operators.java new file mode 100644 index 000000000..5c135f711 --- /dev/null +++ b/tests/bugs169/pr309336/Operators.java @@ -0,0 +1,82 @@ +//package com.msr; + +import java.rmi.RemoteException; + +public abstract class Operators { +/* + public interface Operator14 { + T execute(String aArg) throws E1, E2, E3, E4, E5, E6, E7, E8, E9, E10, + E11, E12, E13, E14, RemoteException; + } + + public interface Operator13 + extends + Operator14 { + T execute(String aArg) throws E1, E2, E3, E4, E5, E6, E7, E8, E9, + E10, E11, E12, RemoteException; + } + + public interface Operator12 + extends + Operator13 { + // T execute(String aMindServer, String aSessionId, String + // aMindServerIdentifier ) throws E1, E2, E3, E4, E5, E6, E7, E8, E9, + // E10, E11, E12, RemoteException; + } + +*/ + public interface Operator11 +{/* + extends + Operator12 { +*/ + T execute(String aArg) throws E1,E2,E3,E4,E5,E7,E8,E10,E11, RemoteException; + } + + public interface Operator10 + extends Operator11 { + + } + + public interface Operator9 + extends Operator10 { + } + + public interface Operator8 + extends Operator9 { + } + + public interface Operator7 + extends Operator8 { + } + + // + public interface Operator6 + extends Operator7 { + + } + + public interface Operator5 + extends Operator6 { + } + + public interface Operator4 + extends Operator5 { + } + + public interface Operator3 + extends Operator4 { + } + + public interface Operator2 + extends Operator3 { + + } + + public interface Operator1 extends + Operator2 { + } + + public interface Operator extends Operator1 { + } +} diff --git a/tests/bugs169/pr309336/UseOperators.java b/tests/bugs169/pr309336/UseOperators.java new file mode 100644 index 000000000..3d39dd60d --- /dev/null +++ b/tests/bugs169/pr309336/UseOperators.java @@ -0,0 +1,18 @@ +import java.rmi.RemoteException; + + +class UseOperators { + public void f3() throws NullPointerException, RemoteException + { + Operators.Operator f = new Operators.Operator() { + + public String execute(String aArg) throws NullPointerException, + RemoteException { + System.out.println("Doh!"); + return aArg; + } + + }; + f.execute(""); + } +} \ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java index d6abf0796..4d343135c 100644 --- a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java @@ -29,7 +29,11 @@ public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // public void testAdvisingPrivilegedAccessMethod_307147() { // runTest("advising privileged access method"); // } + /* + public void testPipeliningAndGenerics_309336() { + runTest("pipelining and generics"); + } public void testCrashParamAnnos_309440() { runTest("crash param annos"); } diff --git a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml index c877cd92b..052e7a140 100644 --- a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml +++ b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml @@ -2,6 +2,10 @@ + + + + @@ -178,7 +182,7 @@ - + @@ -186,14 +190,14 @@ - + - + -- 2.39.5