diff options
author | Andy Clement <andrew.clement@gmail.com> | 2013-05-24 16:49:50 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2013-05-24 16:49:50 -0700 |
commit | 6f4140ac7028b9074e694e4c0b9de8b05e4b048a (patch) | |
tree | bc9a38baa25ace5b87042b70a0f310fcf6d0a09f /bcel-builder/testsrc_j8/TypeAnnoOnResourceVariable.java | |
parent | 0a01bd478349676a87a6afaa71a77a04de3f27a4 (diff) | |
download | aspectj-6f4140ac7028b9074e694e4c0b9de8b05e4b048a.tar.gz aspectj-6f4140ac7028b9074e694e4c0b9de8b05e4b048a.zip |
More java8 support files
Diffstat (limited to 'bcel-builder/testsrc_j8/TypeAnnoOnResourceVariable.java')
-rw-r--r-- | bcel-builder/testsrc_j8/TypeAnnoOnResourceVariable.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bcel-builder/testsrc_j8/TypeAnnoOnResourceVariable.java b/bcel-builder/testsrc_j8/TypeAnnoOnResourceVariable.java new file mode 100644 index 000000000..3104cfae3 --- /dev/null +++ b/bcel-builder/testsrc_j8/TypeAnnoOnResourceVariable.java @@ -0,0 +1,10 @@ +import java.io.*; + +public class TypeAnnoOnResourceVariable { + public void m() throws Exception { + try (@Anno BufferedReader br1 = new BufferedReader(new FileReader("a")); + @Anno(99) BufferedReader br2 = new BufferedReader(new FileReader("b"))) { + System.out.println(br1.readLine()+br2.readLine()); + } + } +} |