aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr125981
diff options
context:
space:
mode:
authoraclement <aclement>2006-09-22 14:57:29 +0000
committeraclement <aclement>2006-09-22 14:57:29 +0000
commitaefa777dfd64a8a90e2730ff442ebf99f832162f (patch)
tree6765c575b7cb24959c3c29d24d905dcb76b87a76 /tests/bugs153/pr125981
parent497a8095510715712b98ee41bbdd825bf9fde9d7 (diff)
downloadaspectj-aefa777dfd64a8a90e2730ff442ebf99f832162f.tar.gz
aspectj-aefa777dfd64a8a90e2730ff442ebf99f832162f.zip
tests for 151772, 125981: incorrect scope for dec soft reporting
Diffstat (limited to 'tests/bugs153/pr125981')
-rw-r--r--tests/bugs153/pr125981/SampleTest.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs153/pr125981/SampleTest.java b/tests/bugs153/pr125981/SampleTest.java
new file mode 100644
index 000000000..3712281ce
--- /dev/null
+++ b/tests/bugs153/pr125981/SampleTest.java
@@ -0,0 +1,28 @@
+public class SampleTest {
+ public interface ByteReadingStrategy {
+ void readBytes(java.io.InputStream str);
+ }
+
+ public ByteReadingStrategy byteReadingStrategy;
+
+ private final ByteReadingStrategy offsetBuf = new ByteReadingStrategy() {
+ public void readBytes(java.io.InputStream str) {
+ str.read();
+ }
+ };
+
+ private class NamedByteReadingStrategy {
+ public void readBytes(java.io.InputStream str) {
+ str.read();
+ }
+ };
+
+ public void foo(){}
+}
+
+aspect Soften {
+ pointcut softenedTests() :
+ within(SampleTest+) && execution(* *(..)) && !execution(* *(..) throws Exception+);
+
+ declare soft: Exception+: softenedTests();
+}