< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 40,50 **** import com.sun.tools.javac.code.Symbol.Completer; import com.sun.tools.javac.code.Symbol.CompletionFailure; import com.sun.tools.javac.code.Symbol.MethodSymbol; import com.sun.tools.javac.code.Symbol.ModuleSymbol; import com.sun.tools.javac.code.Symbol.PackageSymbol; - import com.sun.tools.javac.code.Symbol.RootPackageSymbol; import com.sun.tools.javac.code.Symbol.TypeSymbol; import com.sun.tools.javac.code.Symbol.VarSymbol; import com.sun.tools.javac.code.Type.BottomType; import com.sun.tools.javac.code.Type.ClassType; import com.sun.tools.javac.code.Type.ErrorType; --- 40,49 ----
*** 170,181 **** public final Type cloneableType; public final Type serializableType; public final Type serializedLambdaType; public final Type varHandleType; public final Type methodHandleType; ! public final Type methodHandleLookupType; public final Type methodTypeType; public final Type nativeHeaderType; public final Type throwableType; public final Type errorType; public final Type interruptedExceptionType; public final Type illegalArgumentExceptionType; --- 169,182 ---- public final Type cloneableType; public final Type serializableType; public final Type serializedLambdaType; public final Type varHandleType; public final Type methodHandleType; ! public final Type methodHandlesLookupType; ! public final Type intrinsicsType; public final Type methodTypeType; + public final Type foldableType; public final Type nativeHeaderType; public final Type throwableType; public final Type errorType; public final Type interruptedExceptionType; public final Type illegalArgumentExceptionType;
*** 381,393 **** // Create the unknown type unknownType = new UnknownType(); messages = JavacMessages.instance(context); ! MissingInfoHandler missingInfoHandler = MissingInfoHandler.instance(context); ! ! rootPackage = new RootPackageSymbol(names.empty, null, missingInfoHandler); // create the basic builtin symbols unnamedModule = new ModuleSymbol(names.empty, null) { { directives = List.nil(); --- 382,392 ---- // Create the unknown type unknownType = new UnknownType(); messages = JavacMessages.instance(context); ! rootPackage = new PackageSymbol(names.empty, null); // create the basic builtin symbols unnamedModule = new ModuleSymbol(names.empty, null) { { directives = List.nil();
*** 517,528 **** throwableType = enterClass("java.lang.Throwable"); serializableType = enterClass("java.io.Serializable"); serializedLambdaType = enterClass("java.lang.invoke.SerializedLambda"); varHandleType = enterClass("java.lang.invoke.VarHandle"); methodHandleType = enterClass("java.lang.invoke.MethodHandle"); ! methodHandleLookupType = enterClass("java.lang.invoke.MethodHandles$Lookup"); methodTypeType = enterClass("java.lang.invoke.MethodType"); errorType = enterClass("java.lang.Error"); illegalArgumentExceptionType = enterClass("java.lang.IllegalArgumentException"); interruptedExceptionType = enterClass("java.lang.InterruptedException"); exceptionType = enterClass("java.lang.Exception"); runtimeExceptionType = enterClass("java.lang.RuntimeException"); --- 516,529 ---- throwableType = enterClass("java.lang.Throwable"); serializableType = enterClass("java.io.Serializable"); serializedLambdaType = enterClass("java.lang.invoke.SerializedLambda"); varHandleType = enterClass("java.lang.invoke.VarHandle"); methodHandleType = enterClass("java.lang.invoke.MethodHandle"); ! methodHandlesLookupType = enterClass("java.lang.invoke.MethodHandles$Lookup"); ! intrinsicsType = enterClass("java.lang.invoke.Intrinsics"); methodTypeType = enterClass("java.lang.invoke.MethodType"); + foldableType = enterClass("jdk.internal.lang.annotation.Foldable"); errorType = enterClass("java.lang.Error"); illegalArgumentExceptionType = enterClass("java.lang.IllegalArgumentException"); interruptedExceptionType = enterClass("java.lang.InterruptedException"); exceptionType = enterClass("java.lang.Exception"); runtimeExceptionType = enterClass("java.lang.RuntimeException");
< prev index next >