equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
40 import com.sun.tools.javac.code.Symbol.Completer; |
40 import com.sun.tools.javac.code.Symbol.Completer; |
41 import com.sun.tools.javac.code.Symbol.CompletionFailure; |
41 import com.sun.tools.javac.code.Symbol.CompletionFailure; |
42 import com.sun.tools.javac.code.Symbol.MethodSymbol; |
42 import com.sun.tools.javac.code.Symbol.MethodSymbol; |
43 import com.sun.tools.javac.code.Symbol.ModuleSymbol; |
43 import com.sun.tools.javac.code.Symbol.ModuleSymbol; |
44 import com.sun.tools.javac.code.Symbol.PackageSymbol; |
44 import com.sun.tools.javac.code.Symbol.PackageSymbol; |
|
45 import com.sun.tools.javac.code.Symbol.RootPackageSymbol; |
45 import com.sun.tools.javac.code.Symbol.TypeSymbol; |
46 import com.sun.tools.javac.code.Symbol.TypeSymbol; |
46 import com.sun.tools.javac.code.Symbol.VarSymbol; |
47 import com.sun.tools.javac.code.Symbol.VarSymbol; |
47 import com.sun.tools.javac.code.Type.BottomType; |
48 import com.sun.tools.javac.code.Type.BottomType; |
48 import com.sun.tools.javac.code.Type.ClassType; |
49 import com.sun.tools.javac.code.Type.ClassType; |
49 import com.sun.tools.javac.code.Type.ErrorType; |
50 import com.sun.tools.javac.code.Type.ErrorType; |
380 // Create the unknown type |
381 // Create the unknown type |
381 unknownType = new UnknownType(); |
382 unknownType = new UnknownType(); |
382 |
383 |
383 messages = JavacMessages.instance(context); |
384 messages = JavacMessages.instance(context); |
384 |
385 |
385 rootPackage = new PackageSymbol(names.empty, null); |
386 MissingInfoHandler missingInfoHandler = MissingInfoHandler.instance(context); |
|
387 |
|
388 rootPackage = new RootPackageSymbol(names.empty, null, missingInfoHandler); |
386 |
389 |
387 // create the basic builtin symbols |
390 // create the basic builtin symbols |
388 unnamedModule = new ModuleSymbol(names.empty, null) { |
391 unnamedModule = new ModuleSymbol(names.empty, null) { |
389 { |
392 { |
390 directives = List.nil(); |
393 directives = List.nil(); |