Skip to content

A relational expression can also be an instanceof expression #4842

@jlerbsc

Description

@jlerbsc

A relational expression can also be an instanceof expression. This improvement would bring it closer to the Java specification.

RelationalExpression:
ShiftExpression
RelationalExpression < ShiftExpression
RelationalExpression > ShiftExpression
RelationalExpression <= ShiftExpression
RelationalExpression >= ShiftExpression
InstanceofExpression

https://docs.oracle.com/javase/specs/jls/se16/html/jls-15.html#jls-RelationalExpression

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrammarImprovementNot a bug, but a way that JP can be be enhanced to work better.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions