Skip to content

Malformed error message for inaccessible field in static import #4986

Description

@eric-milles

Consider the following:

package p;

import static p.C.f;

public class C {
  private static String f;
}

The error for the static import is: "The field C.p.C.f is not visible"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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