< prev index next >

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

Print this page

206     /** language runtime uses nest-based access.
207      *  e.g. lambda and string concat spin dynamic proxy class as a nestmate
208      *  of the target class
209      */
210     public boolean runtimeUseNestAccess() {
211         return compareTo(JDK1_15) >= 0;
212     }
213 
214     /** Does the target VM support virtual private invocations?
215      */
216     public boolean hasVirtualPrivateInvoke() {
217         return compareTo(JDK1_11) >= 0;
218     }
219 
220     /** Does the target VM support sealed types
221      */
222     public boolean hasSealedClasses() {
223         return compareTo(JDK1_15) >= 0;
224     }
225 






226     /** Is the ACC_STRICT bit redundant and obsolete
227      */
228     public boolean obsoleteAccStrict() {
229         return compareTo(JDK1_17) >= 0;
230     }
231 
232     /** Omit unused enclosing instance fields from inner classes that don't access enclosing
233      * instance state.
234      */
235     public boolean optimizeOuterThis() {
236         return compareTo(JDK1_18) >= 0;
237     }
238 
239     /** Releases prior to JDK 23 expect a less precise SwitchBootstraps.typeSwitch signature on the selectorType
240      */
241     public boolean usesReferenceOnlySelectorTypes() {
242         return compareTo(Target.JDK1_23) < 0;
243     }
244 
245     /**

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