src/share/classes/com/sun/tools/javac/comp/Flow.java

changeset 724
7755f47542a0
parent 676
bfdfc13fe641
child 735
f2048d9c666e
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Flow.java	Fri Oct 22 14:04:33 2010 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Flow.java	Tue Oct 26 14:29:48 2010 -0700
     1.3 @@ -371,7 +371,7 @@
     1.4          if (sym.adr >= firstadr && trackable(sym)) {
     1.5              if ((sym.flags() & FINAL) != 0) {
     1.6                  if ((sym.flags() & PARAMETER) != 0) {
     1.7 -                    if ((sym.flags() & DISJOINT) != 0) { //multi-catch parameter
     1.8 +                    if ((sym.flags() & DISJUNCTION) != 0) { //multi-catch parameter
     1.9                          log.error(pos, "multicatch.parameter.may.not.be.assigned",
    1.10                                    sym);
    1.11                      }
    1.12 @@ -983,7 +983,7 @@
    1.13          thrown = List.nil();
    1.14          for (List<JCCatch> l = tree.catchers; l.nonEmpty(); l = l.tail) {
    1.15              List<JCExpression> subClauses = TreeInfo.isMultiCatch(l.head) ?
    1.16 -                    ((JCTypeDisjoint)l.head.param.vartype).components :
    1.17 +                    ((JCTypeDisjunction)l.head.param.vartype).alternatives :
    1.18                      List.of(l.head.param.vartype);
    1.19              for (JCExpression ct : subClauses) {
    1.20                  caught = chk.incl(ct.type, caught);
    1.21 @@ -1049,7 +1049,7 @@
    1.22              alive = true;
    1.23              JCVariableDecl param = l.head.param;
    1.24              List<JCExpression> subClauses = TreeInfo.isMultiCatch(l.head) ?
    1.25 -                    ((JCTypeDisjoint)l.head.param.vartype).components :
    1.26 +                    ((JCTypeDisjunction)l.head.param.vartype).alternatives :
    1.27                      List.of(l.head.param.vartype);
    1.28              List<Type> ctypes = List.nil();
    1.29              List<Type> rethrownTypes = chk.diff(thrownInTry, caughtInTry);

mercurial