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

changeset 724
7755f47542a0
parent 700
7b413ac1a720
child 782
bcf44475aeee
equal deleted inserted replaced
723:01eabcd240e9 724:7755f47542a0
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 ((JCTypeDisjoint)tree.param.vartype).components : 1459 ((JCTypeDisjunction)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