src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java
changeset 48746 c9ab849cd2f5
parent 48355 4944950606ef
child 50735 2f2af62dfac7
child 50738 6cc2dc161c64
equal deleted inserted replaced
48745:74be5b4ed152 48746:c9ab849cd2f5
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   133      */
   133      */
   134     public boolean hasObjects() {
   134     public boolean hasObjects() {
   135         return compareTo(JDK1_7) >= 0;
   135         return compareTo(JDK1_7) >= 0;
   136     }
   136     }
   137 
   137 
       
   138     /** Does the target VM expect MethodParameters attributes?
       
   139      */
       
   140     public boolean hasMethodParameters() {
       
   141         return compareTo(JDK1_8) >= 0;
       
   142     }
       
   143 
   138     /** Does the VM support polymorphic method handle invocation?
   144     /** Does the VM support polymorphic method handle invocation?
   139      *  Affects the linkage information output to the classfile.
   145      *  Affects the linkage information output to the classfile.
   140      *  An alias for {@code hasInvokedynamic}, since all the JSR 292 features appear together.
   146      *  An alias for {@code hasInvokedynamic}, since all the JSR 292 features appear together.
   141      */
   147      */
   142     public boolean hasMethodHandles() {
   148     public boolean hasMethodHandles() {