Skip to content

"Access restriction" java warning not solveable #219

@handmade-it

Description

@handmade-it

Hi,

I am freshly using your extension with vs code for a new java project. The project itself had been generated via maven command line tool. The extension itself works, but i cannot get rid of this (and similar) warnings:

[Java] Access restriction: The type 'Endpoint' is not API (restriction on required library '/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar')

I tried to set java.home to a custom jdk but it either didn't worked or the java.home setting maybe got ignored. At least the warnings persits and point always to the same jdk. It never used the path of my custom jdk.

Any help would be great
Thanks in advance

Environment
  • Operating System: Linux / Ubuntu 16.04
  • JDK version: OpenJDK 1.8
  • Visual Studio Code version: 1.12.2
  • Java extension version:
Steps To Reproduce
  1. Create barebone maven java project
  2. Open project in vs code with your extension enabled
  3. Import any usual class like javax.jws.WebMethod

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions