Illegal Reflective Access Operation to field java.net.HttpURLConnection.method · Issue #754 · hub4j/github-api · GitHub
Skip to content

Illegal Reflective Access Operation to field java.net.HttpURLConnection.method #754

Description

@andrewlalis

Describe the bug
I attempt to archive a repository using the following code:

GHRepository repo = this.org.getRepository("repo-name-here");
repo.archive();

When checking GitHub itself, the repository is in fact archived, however I receive a warning in the stderr stream consisting of the following:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.kohsuke.github.GitHubHttpUrlConnectionClient$HttpURLConnectionResponseInfo (file:/C:/Users/andrew/.m2/repository/org/kohsuke/github-api/1.108/github-api-1.108.jar) to field java.net.HttpURLConnection.method
WARNING: Please consider reporting this to the maintainers of org.kohsuke.github.GitHubHttpUrlConnectionClient$HttpURLConnectionResponseInfo
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

To Reproduce
Steps to reproduce the behavior:

  1. Fetch a GHRepository that is not yet archived.
  2. Call archive() on that repository.

Expected behavior
I expect that there should not be any illegal reflective access exceptions.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox
  • Version 74

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions