< prev index next >

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

Print this page

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






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

200     /** language runtime uses nest-based access.
201      *  e.g. lambda and string concat spin dynamic proxy class as a nestmate
202      *  of the target class
203      */
204     public boolean runtimeUseNestAccess() {
205         return compareTo(JDK1_15) >= 0;
206     }
207 
208     /** Does the target VM support virtual private invocations?
209      */
210     public boolean hasVirtualPrivateInvoke() {
211         return compareTo(JDK1_11) >= 0;
212     }
213 
214     /** Does the target VM support sealed types
215      */
216     public boolean hasSealedClasses() {
217         return compareTo(JDK1_15) >= 0;
218     }
219 
220     /** Does the target VM support value classes
221      */
222     public boolean hasValueClasses() {
223         return compareTo(JDK1_23) >= 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 }
< prev index next >