src/share/classes/com/sun/tools/javac/code/Symtab.java

changeset 951
de1c65ecfec2
parent 900
938dda0bec17
child 957
46d720734db3
equal deleted inserted replaced
950:f5b5112ee1cc 951:de1c65ecfec2
129 public final Type methodHandleType; 129 public final Type methodHandleType;
130 public final Type transientPolymorphicSignatureType; // transient - 292 130 public final Type transientPolymorphicSignatureType; // transient - 292
131 public final Type polymorphicSignatureType; 131 public final Type polymorphicSignatureType;
132 public final Type throwableType; 132 public final Type throwableType;
133 public final Type errorType; 133 public final Type errorType;
134 public final Type interruptedExceptionType;
134 public final Type illegalArgumentExceptionType; 135 public final Type illegalArgumentExceptionType;
135 public final Type exceptionType; 136 public final Type exceptionType;
136 public final Type runtimeExceptionType; 137 public final Type runtimeExceptionType;
137 public final Type classNotFoundExceptionType; 138 public final Type classNotFoundExceptionType;
138 public final Type noClassDefFoundErrorType; 139 public final Type noClassDefFoundErrorType;
439 methodHandleType = enterClass("java.lang.invoke.MethodHandle"); 440 methodHandleType = enterClass("java.lang.invoke.MethodHandle");
440 transientPolymorphicSignatureType = enterClass("java.dyn.MethodHandle$PolymorphicSignature"); // transient - 292 441 transientPolymorphicSignatureType = enterClass("java.dyn.MethodHandle$PolymorphicSignature"); // transient - 292
441 polymorphicSignatureType = enterClass("java.lang.invoke.MethodHandle$PolymorphicSignature"); 442 polymorphicSignatureType = enterClass("java.lang.invoke.MethodHandle$PolymorphicSignature");
442 errorType = enterClass("java.lang.Error"); 443 errorType = enterClass("java.lang.Error");
443 illegalArgumentExceptionType = enterClass("java.lang.IllegalArgumentException"); 444 illegalArgumentExceptionType = enterClass("java.lang.IllegalArgumentException");
445 interruptedExceptionType = enterClass("java.lang.InterruptedException");
444 exceptionType = enterClass("java.lang.Exception"); 446 exceptionType = enterClass("java.lang.Exception");
445 runtimeExceptionType = enterClass("java.lang.RuntimeException"); 447 runtimeExceptionType = enterClass("java.lang.RuntimeException");
446 classNotFoundExceptionType = enterClass("java.lang.ClassNotFoundException"); 448 classNotFoundExceptionType = enterClass("java.lang.ClassNotFoundException");
447 noClassDefFoundErrorType = enterClass("java.lang.NoClassDefFoundError"); 449 noClassDefFoundErrorType = enterClass("java.lang.NoClassDefFoundError");
448 noSuchFieldErrorType = enterClass("java.lang.NoSuchFieldError"); 450 noSuchFieldErrorType = enterClass("java.lang.NoSuchFieldError");
478 new MethodType(List.<Type>nil(), voidType, 480 new MethodType(List.<Type>nil(), voidType,
479 List.of(exceptionType), methodClass), 481 List.of(exceptionType), methodClass),
480 autoCloseableType.tsym); 482 autoCloseableType.tsym);
481 trustMeType = enterClass("java.lang.SafeVarargs"); 483 trustMeType = enterClass("java.lang.SafeVarargs");
482 484
485 synthesizeEmptyInterfaceIfMissing(autoCloseableType);
483 synthesizeEmptyInterfaceIfMissing(cloneableType); 486 synthesizeEmptyInterfaceIfMissing(cloneableType);
484 synthesizeEmptyInterfaceIfMissing(serializableType); 487 synthesizeEmptyInterfaceIfMissing(serializableType);
485 synthesizeEmptyInterfaceIfMissing(transientPolymorphicSignatureType); // transient - 292 488 synthesizeEmptyInterfaceIfMissing(transientPolymorphicSignatureType); // transient - 292
486 synthesizeEmptyInterfaceIfMissing(polymorphicSignatureType); 489 synthesizeEmptyInterfaceIfMissing(polymorphicSignatureType);
487 synthesizeBoxTypeIfMissing(doubleType); 490 synthesizeBoxTypeIfMissing(doubleType);

mercurial