Open
Description
I am using a private JRE with its included libraries. As I import these I am given an error for Restricted Access since these are private APIs. If I were in Eclipse I could add @SuppressWarnings("restriction")
and get rid of it.
That same class opened in VSCode will show the import as still an error and the '@SuppressWarnings' as "unnecessary".
Environment
- Operating System: OS X 13.2
- JDK version: Standard Edition (build 1.8.0_341-b10 13_Jul_2022_11_14 Mac OS X x64(SR7 FP15))
- Visual Studio Code version: 1.75.0
- Java extension version: 1.14.0
- Import a private API like from Sun
- Receive an "Access Restriction" Error
- Add
@SuppressWarnings("restriction")
to top of class declaration