Skip to content

static instance ghost fields are possible, but should not be #3585

@mattulbrich

Description

@mattulbrich

Description

ghost instance static int x is a valid field declaration in KeY JML.
However, the modifiers contract each other and this should not be allowed.

Reproducible

always

Steps to reproduce

Add the above line into your code and it will not fail, but it should.

Additional information

Found by Fabian Koffer in his BSc thesis.


Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions