Skip to content

No compiler message when referencing an inaccessible variable #27

@lmove

Description

@lmove

The Maven compiler does not report an error when referencing a variable that cannot be accessed anymore (e.g. class no longer public, class less accessible). The broken use is correctly reported but there is no matching compiler message (true positives reported as false positives).

Related broken use:

Path: path-to/maracas/test-data/comp-changes/client/src/mainclient/classNoLongerPublic/ClassNoLongerPublicTD.java
Line: 10
Breaking change: CLASS_LESS_ACCESSIBLE
API use: TYPE_DEPENDENCY
Used declaration: main.classNoLongerPublic.ClassNoLongerPublic
Source declaration: main.classNoLongerPublic.ClassNoLongerPublic

Metadata

Metadata

Assignees

No one assigned

    Labels

    maracas-validatorRelated to Maracas validatorquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions