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

changeset 795
7b99f98b3035
parent 688
50f9ac2f4730
child 798
4868a36f6fd8
equal deleted inserted replaced
794:2f2ead61db06 795:7b99f98b3035
152 public final Type suppressWarningsType; 152 public final Type suppressWarningsType;
153 public final Type inheritedType; 153 public final Type inheritedType;
154 public final Type proprietaryType; 154 public final Type proprietaryType;
155 public final Type systemType; 155 public final Type systemType;
156 public final Type autoCloseableType; 156 public final Type autoCloseableType;
157 public final Type trustMeType;
157 158
158 /** The symbol representing the length field of an array. 159 /** The symbol representing the length field of an array.
159 */ 160 */
160 public final VarSymbol lengthVar; 161 public final VarSymbol lengthVar;
161 162
459 autoCloseableClose = new MethodSymbol(PUBLIC, 460 autoCloseableClose = new MethodSymbol(PUBLIC,
460 names.close, 461 names.close,
461 new MethodType(List.<Type>nil(), voidType, 462 new MethodType(List.<Type>nil(), voidType,
462 List.of(exceptionType), methodClass), 463 List.of(exceptionType), methodClass),
463 autoCloseableType.tsym); 464 autoCloseableType.tsym);
465 trustMeType = enterClass("java.lang.SafeVarargs");
464 466
465 synthesizeEmptyInterfaceIfMissing(cloneableType); 467 synthesizeEmptyInterfaceIfMissing(cloneableType);
466 synthesizeEmptyInterfaceIfMissing(serializableType); 468 synthesizeEmptyInterfaceIfMissing(serializableType);
467 synthesizeEmptyInterfaceIfMissing(polymorphicSignatureType); 469 synthesizeEmptyInterfaceIfMissing(polymorphicSignatureType);
468 synthesizeBoxTypeIfMissing(doubleType); 470 synthesizeBoxTypeIfMissing(doubleType);

mercurial