aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test1/FieldInit2.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test1/FieldInit2.java')
-rw-r--r--src/test/test1/FieldInit2.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/test1/FieldInit2.java b/src/test/test1/FieldInit2.java
new file mode 100644
index 00000000..3260b0fa
--- /dev/null
+++ b/src/test/test1/FieldInit2.java
@@ -0,0 +1,21 @@
+package test1;
+
+public class FieldInit2 {
+ public static int counter = 0;
+ public static int loop = 3;
+
+ public static int get(Object obj) throws Exception {
+ throw new Exception();
+ }
+
+ public FieldInit2() {
+ try {
+ do {
+ --loop;
+ } while (loop > 0);
+ }
+ catch (Exception e) {
+ System.out.println("FieldInit2: catch");
+ }
+ }
+}