aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/language/TryResources.java
diff options
context:
space:
mode:
authoraclement <aclement>2011-12-15 01:25:35 +0000
committeraclement <aclement>2011-12-15 01:25:35 +0000
commit13475b2ce5f6ebdfd9656ca7a5b40c2d28d5c4d7 (patch)
tree07584131d2d34c33e6c302b59a838014bc04d644 /tests/bugs170/language/TryResources.java
parent3bffe3bda11e8cb06e4e32d5137825547b860ad7 (diff)
downloadaspectj-13475b2ce5f6ebdfd9656ca7a5b40c2d28d5c4d7.tar.gz
aspectj-13475b2ce5f6ebdfd9656ca7a5b40c2d28d5c4d7.zip
170 language tests
Diffstat (limited to 'tests/bugs170/language/TryResources.java')
-rw-r--r--tests/bugs170/language/TryResources.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs170/language/TryResources.java b/tests/bugs170/language/TryResources.java
new file mode 100644
index 000000000..308000445
--- /dev/null
+++ b/tests/bugs170/language/TryResources.java
@@ -0,0 +1,15 @@
+public class TryResources {
+}
+
+aspect Foo {
+ before(): execution(* *(..)) {
+try (
+ InputStream in = new FileInputStream(src);
+ OutputStream out = new FileOutputStream(dest))
+{
+ // code
+}
+
+
+ }
+}