aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/assignment.java
blob: ec05f73a5033ea84ddfabe8df36383b8864153c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// A definite assignment test.

public class assignment
{
  public static Byte foo ()
    {
      Byte b;
	
      while (true) {
	try {
	  b = Byte.decode ("42");
	  break;
	} catch (NumberFormatException ignored) {}
      }

      return b;
    }
}