251 */ |
251 */ |
252 public boolean hasClassLiterals() { |
252 public boolean hasClassLiterals() { |
253 return compareTo(JDK1_5) >= 0; |
253 return compareTo(JDK1_5) >= 0; |
254 } |
254 } |
255 |
255 |
|
256 /** Does the VM support an invokedynamic instruction? |
|
257 */ |
|
258 public boolean hasInvokedynamic() { |
|
259 return compareTo(JDK1_7) >= 0; |
|
260 } |
|
261 |
256 /** Although we may not have support for class literals, should we |
262 /** Although we may not have support for class literals, should we |
257 * avoid initializing the class that the literal refers to? |
263 * avoid initializing the class that the literal refers to? |
258 * See 4468823 |
264 * See 4468823 |
259 */ |
265 */ |
260 public boolean classLiteralsNoInit() { |
266 public boolean classLiteralsNoInit() { |