< prev index next >

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

Print this page

203     /** language runtime uses nest-based access.
204      *  e.g. lambda and string concat spin dynamic proxy class as a nestmate
205      *  of the target class
206      */
207     public boolean runtimeUseNestAccess() {
208         return compareTo(JDK1_15) >= 0;
209     }
210 
211     /** Does the target VM support virtual private invocations?
212      */
213     public boolean hasVirtualPrivateInvoke() {
214         return compareTo(JDK1_11) >= 0;
215     }
216 
217     /** Does the target VM support sealed types
218      */
219     public boolean hasSealedClasses() {
220         return compareTo(JDK1_15) >= 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 
236     /** Releases prior to JDK 23 expect a less precise SwitchBootstraps.typeSwitch signature on the selectorType
237      */
238     public boolean usesReferenceOnlySelectorTypes() {
239         return compareTo(Target.JDK1_23) < 0;
240     }
241 
242     /**

203     /** language runtime uses nest-based access.
204      *  e.g. lambda and string concat spin dynamic proxy class as a nestmate
205      *  of the target class
206      */
207     public boolean runtimeUseNestAccess() {
208         return compareTo(JDK1_15) >= 0;
209     }
210 
211     /** Does the target VM support virtual private invocations?
212      */
213     public boolean hasVirtualPrivateInvoke() {
214         return compareTo(JDK1_11) >= 0;
215     }
216 
217     /** Does the target VM support sealed types
218      */
219     public boolean hasSealedClasses() {
220         return compareTo(JDK1_15) >= 0;
221     }
222 
223     /** Does the target VM support value classes
224      */
225     public boolean hasValueClasses() {
226         return compareTo(JDK1_23) >= 0;
227     }
228 
229     /** Is the ACC_STRICT bit redundant and obsolete
230      */
231     public boolean obsoleteAccStrict() {
232         return compareTo(JDK1_17) >= 0;
233     }
234 
235     /** Omit unused enclosing instance fields from inner classes that don't access enclosing
236      * instance state.
237      */
238     public boolean optimizeOuterThis() {
239         return compareTo(JDK1_18) >= 0;
240     }
241 
242     /** Releases prior to JDK 23 expect a less precise SwitchBootstraps.typeSwitch signature on the selectorType
243      */
244     public boolean usesReferenceOnlySelectorTypes() {
245         return compareTo(Target.JDK1_23) < 0;
246     }
247 
248     /**
< prev index next >