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

changeset 1571
af8417e590f4
parent 1570
f91144b7da75
parent 1563
bc456436c613
child 1603
6118072811e5
     1.1 --- a/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java	Mon Feb 04 18:08:53 2013 -0500
     1.2 +++ b/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java	Sun Feb 17 16:44:55 2013 -0500
     1.3 @@ -1490,12 +1490,13 @@
     1.4          position.type = type;
     1.5  
     1.6          switch (type) {
     1.7 -        // type cast
     1.8 -        case CAST:
     1.9          // instanceof
    1.10          case INSTANCEOF:
    1.11          // new expression
    1.12          case NEW:
    1.13 +        // constructor/method reference receiver
    1.14 +        case CONSTRUCTOR_REFERENCE:
    1.15 +        case METHOD_REFERENCE:
    1.16              position.offset = nextChar();
    1.17              break;
    1.18          // local variable
    1.19 @@ -1544,9 +1545,12 @@
    1.20          case METHOD_FORMAL_PARAMETER:
    1.21              position.parameter_index = nextByte();
    1.22              break;
    1.23 +        // type cast
    1.24 +        case CAST:
    1.25          // method/constructor/reference type argument
    1.26          case CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT:
    1.27          case METHOD_INVOCATION_TYPE_ARGUMENT:
    1.28 +        case CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT:
    1.29          case METHOD_REFERENCE_TYPE_ARGUMENT:
    1.30              position.offset = nextChar();
    1.31              position.type_index = nextByte();
    1.32 @@ -1555,10 +1559,6 @@
    1.33          case METHOD_RETURN:
    1.34          case FIELD:
    1.35              break;
    1.36 -        // lambda formal parameter
    1.37 -        case LAMBDA_FORMAL_PARAMETER:
    1.38 -            position.parameter_index = nextByte();
    1.39 -            break;
    1.40          case UNKNOWN:
    1.41              throw new AssertionError("jvm.ClassReader: UNKNOWN target type should never occur!");
    1.42          default:

mercurial