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

Print this page

        

@@ -145,10 +145,11 @@
     public final Type deprecatedType;
     public final Type suppressWarningsType;
     public final Type inheritedType;
     public final Type proprietaryType;
     public final Type systemType;
+    public final Type autoCloseableType;
 
     /** The symbol representing the length field of an array.
      */
     public final VarSymbol lengthVar;
 

@@ -458,10 +459,11 @@
         retentionType = enterClass("java.lang.annotation.Retention");
         deprecatedType = enterClass("java.lang.Deprecated");
         suppressWarningsType = enterClass("java.lang.SuppressWarnings");
         inheritedType = enterClass("java.lang.annotation.Inherited");
         systemType = enterClass("java.lang.System");
+        autoCloseableType = enterClass("java.lang.AutoCloseable");
 
         synthesizeEmptyInterfaceIfMissing(cloneableType);
         synthesizeEmptyInterfaceIfMissing(serializableType);
         synthesizeMHTypeIfMissing(methodHandleType);
         synthesizeMHTypeIfMissing(invokeDynamicType);