langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/AttrContext.java
equal
deleted
inserted
replaced
66 /** |
66 /** |
67 * Is this an attribution environment for an anonymous class instantiated using <> ? |
67 * Is this an attribution environment for an anonymous class instantiated using <> ? |
68 */ |
68 */ |
69 boolean isAnonymousDiamond = false; |
69 boolean isAnonymousDiamond = false; |
70 |
70 |
|
71 /** |
|
72 * Is this an attribution environment for an instance creation expression? |
|
73 */ |
|
74 boolean isNewClass = false; |
|
75 |
71 /** Are arguments to current function applications boxed into an array for varargs? |
76 /** Are arguments to current function applications boxed into an array for varargs? |
72 */ |
77 */ |
73 Resolve.MethodResolutionPhase pendingResolutionPhase = null; |
78 Resolve.MethodResolutionPhase pendingResolutionPhase = null; |
74 |
79 |
75 /** A record of the lint/SuppressWarnings currently in effect |
80 /** A record of the lint/SuppressWarnings currently in effect |
104 info.returnResult = returnResult; |
109 info.returnResult = returnResult; |
105 info.defaultSuperCallSite = defaultSuperCallSite; |
110 info.defaultSuperCallSite = defaultSuperCallSite; |
106 info.isSerializable = isSerializable; |
111 info.isSerializable = isSerializable; |
107 info.isSpeculative = isSpeculative; |
112 info.isSpeculative = isSpeculative; |
108 info.isAnonymousDiamond = isAnonymousDiamond; |
113 info.isAnonymousDiamond = isAnonymousDiamond; |
|
114 info.isNewClass = isNewClass; |
109 return info; |
115 return info; |
110 } |
116 } |
111 |
117 |
112 /** Duplicate this context, copying all fields. |
118 /** Duplicate this context, copying all fields. |
113 */ |
119 */ |