JDK-8220019 : [JVMCI] hasBytecode should reflect whether bytecode are actually available
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-03-03
  • Updated: 2019-05-01
  • Resolved: 2019-05-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Duplicate :  
Description
The purpose of ResolvedJavaMethod.hasBytecodes() is to inform the caller whether the receiver has bytecodes available (via ResolvedJavaMethod.getCode()) that implement the semantics of the represented method. In HotSpot, this is equivalent to the method being non-native and non-abstract. However, in SVM, bytecodes can be provided/generated for methods based on annotations. As such, the implementation of hasBytecodes() should be implemented purely in terms of whether bytecodes are available, not in terms of properties that imply the existence of bytecodes for a specific VM context.
Comments
Fixed with JDK-8220623.
01-05-2019