JDK-8319995 : Release Note: ExecutableElement.getReceiverType and ExecutableType.getReceiverType() Changed to Return Annotated Receiver Types For Methods Loaded From Bytecode
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2023-11-13
  • Updated: 2023-11-13
Description
The implementation of `ExecutableElement.getReceiverType` and `ExecutableType.getReceiverType` now returns a receiver type for methods loaded from bytecode if the type has associated type annotations. Previously it returned `NOTYPE` for all methods loaded from bytecode, which prevented associated type annotations from being retrieved.