equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.tools.javac.comp; |
26 package com.sun.tools.javac.comp; |
27 |
27 |
28 import com.sun.source.tree.AssignmentTree; |
|
29 import java.util.*; |
28 import java.util.*; |
30 import java.util.Set; |
29 import java.util.Set; |
31 |
30 |
32 import com.sun.tools.javac.code.*; |
31 import com.sun.tools.javac.code.*; |
33 import com.sun.tools.javac.jvm.*; |
32 import com.sun.tools.javac.jvm.*; |
43 import com.sun.tools.javac.code.Symbol.*; |
42 import com.sun.tools.javac.code.Symbol.*; |
44 |
43 |
45 import static com.sun.tools.javac.code.Flags.*; |
44 import static com.sun.tools.javac.code.Flags.*; |
46 import static com.sun.tools.javac.code.Kinds.*; |
45 import static com.sun.tools.javac.code.Kinds.*; |
47 import static com.sun.tools.javac.code.TypeTags.*; |
46 import static com.sun.tools.javac.code.TypeTags.*; |
|
47 |
|
48 import static com.sun.tools.javac.main.OptionName.*; |
48 |
49 |
49 /** Type checking helper class for the attribution phase. |
50 /** Type checking helper class for the attribution phase. |
50 * |
51 * |
51 * <p><b>This is NOT part of any supported API. |
52 * <p><b>This is NOT part of any supported API. |
52 * If you write code that depends on this, you do so at your own risk. |
53 * If you write code that depends on this, you do so at your own risk. |
97 |
98 |
98 Source source = Source.instance(context); |
99 Source source = Source.instance(context); |
99 allowGenerics = source.allowGenerics(); |
100 allowGenerics = source.allowGenerics(); |
100 allowAnnotations = source.allowAnnotations(); |
101 allowAnnotations = source.allowAnnotations(); |
101 allowCovariantReturns = source.allowCovariantReturns(); |
102 allowCovariantReturns = source.allowCovariantReturns(); |
102 complexInference = options.get("-complexinference") != null; |
103 complexInference = options.isSet(COMPLEXINFERENCE); |
103 skipAnnotations = options.get("skipAnnotations") != null; |
104 skipAnnotations = options.isSet("skipAnnotations"); |
104 warnOnSyntheticConflicts = options.get("warnOnSyntheticConflicts") != null; |
105 warnOnSyntheticConflicts = options.isSet("warnOnSyntheticConflicts"); |
105 suppressAbortOnBadClassFile = options.get("suppressAbortOnBadClassFile") != null; |
106 suppressAbortOnBadClassFile = options.isSet("suppressAbortOnBadClassFile"); |
106 |
107 |
107 Target target = Target.instance(context); |
108 Target target = Target.instance(context); |
108 syntheticNameChar = target.syntheticNameChar(); |
109 syntheticNameChar = target.syntheticNameChar(); |
109 |
110 |
110 boolean verboseDeprecated = lint.isEnabled(LintCategory.DEPRECATION); |
111 boolean verboseDeprecated = lint.isEnabled(LintCategory.DEPRECATION); |