src/share/classes/com/sun/tools/javac/jvm/Gen.java

changeset 969
8cc5b440fdde
parent 820
2d5aff89aaa3
child 972
694ff82ca68e
equal deleted inserted replaced
960:26b065bb4ee7 969:8cc5b440fdde
1454 Env<GenContext> env, 1454 Env<GenContext> env,
1455 int startpc, int endpc, 1455 int startpc, int endpc,
1456 List<Integer> gaps) { 1456 List<Integer> gaps) {
1457 if (startpc != endpc) { 1457 if (startpc != endpc) {
1458 List<JCExpression> subClauses = TreeInfo.isMultiCatch(tree) ? 1458 List<JCExpression> subClauses = TreeInfo.isMultiCatch(tree) ?
1459 ((JCTypeDisjunction)tree.param.vartype).alternatives : 1459 ((JCTypeUnion)tree.param.vartype).alternatives :
1460 List.of(tree.param.vartype); 1460 List.of(tree.param.vartype);
1461 while (gaps.nonEmpty()) { 1461 while (gaps.nonEmpty()) {
1462 for (JCExpression subCatch : subClauses) { 1462 for (JCExpression subCatch : subClauses) {
1463 int catchType = makeRef(tree.pos(), subCatch.type); 1463 int catchType = makeRef(tree.pos(), subCatch.type);
1464 int end = gaps.head.intValue(); 1464 int end = gaps.head.intValue();

mercurial