< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java

Print this page

197     /** language runtime uses nest-based access.
198      *  e.g. lambda and string concat spin dynamic proxy class as a nestmate
199      *  of the target class
200      */
201     public boolean runtimeUseNestAccess() {
202         return compareTo(JDK1_15) >= 0;
203     }
204 
205     /** Does the target VM support virtual private invocations?
206      */
207     public boolean hasVirtualPrivateInvoke() {
208         return compareTo(JDK1_11) >= 0;
209     }
210 
211     /** Does the target VM support sealed types
212      */
213     public boolean hasSealedClasses() {
214         return compareTo(JDK1_15) >= 0;
215     }
216 






217     /** Is the ACC_STRICT bit redundant and obsolete
218      */
219     public boolean obsoleteAccStrict() {
220         return compareTo(JDK1_17) >= 0;
221     }
222 
223     /** Omit unused enclosing instance fields from inner classes that don't access enclosing
224      * instance state.
225      */
226     public boolean optimizeOuterThis() {
227         return compareTo(JDK1_18) >= 0;
228     }
229 }

197     /** language runtime uses nest-based access.
198      *  e.g. lambda and string concat spin dynamic proxy class as a nestmate
199      *  of the target class
200      */
201     public boolean runtimeUseNestAccess() {
202         return compareTo(JDK1_15) >= 0;
203     }
204 
205     /** Does the target VM support virtual private invocations?
206      */
207     public boolean hasVirtualPrivateInvoke() {
208         return compareTo(JDK1_11) >= 0;
209     }
210 
211     /** Does the target VM support sealed types
212      */
213     public boolean hasSealedClasses() {
214         return compareTo(JDK1_15) >= 0;
215     }
216 
217     /** Does the target VM support value classes
218      */
219     public boolean hasValueClasses() {
220         return compareTo(JDK1_19) >= 0;
221     }
222 
223     /** Is the ACC_STRICT bit redundant and obsolete
224      */
225     public boolean obsoleteAccStrict() {
226         return compareTo(JDK1_17) >= 0;
227     }
228 
229     /** Omit unused enclosing instance fields from inner classes that don't access enclosing
230      * instance state.
231      */
232     public boolean optimizeOuterThis() {
233         return compareTo(JDK1_18) >= 0;
234     }
235 }
< prev index next >