JDK-8316971 : Add Lint warning for restricted method calls
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-09-26
  • Updated: 2023-10-05
  • Resolved: 2023-10-04
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.
JDK 22
22 b18Fixed
Related Reports
Blocks :  
CSR :  
Relates :  
Description
Add a new Lint category (either "Lint:restricted" or "Lint:native-access") to warn about restricted method usage.

This work depends on the availability of a JDK-wide annotation which javac can use in order to detect restricted methods.
Comments
Changeset: 0d4de8a7 Author: Maurizio Cimadamore <mcimadamore@openjdk.org> Date: 2023-10-04 09:36:53 +0000 URL: https://git.openjdk.org/jdk/commit/0d4de8a71f063e44618f43ddd862a91aed647f48
04-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15964 Date: 2023-09-28 13:13:31 +0000
28-09-2023