1.1 --- a/src/share/classes/com/sun/tools/javap/AnnotationWriter.java Mon Feb 04 18:08:53 2013 -0500 1.2 +++ b/src/share/classes/com/sun/tools/javap/AnnotationWriter.java Sun Feb 17 16:44:55 2013 -0500 1.3 @@ -91,12 +91,13 @@ 1.4 print(pos.type); 1.5 1.6 switch (pos.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 if (showOffsets) { 1.17 print(", offset="); 1.18 print(pos.offset); 1.19 @@ -162,9 +163,12 @@ 1.20 print(", param_index="); 1.21 print(pos.parameter_index); 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 if (showOffsets) { 1.31 print(", offset="); 1.32 @@ -177,11 +181,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 - print(", param_index="); 1.39 - print(pos.parameter_index); 1.40 - break; 1.41 case UNKNOWN: 1.42 throw new AssertionError("AnnotationWriter: UNKNOWN target type should never occur!"); 1.43 default: