Skip to content

Compilation Error #4

@aavash1

Description

@aavash1

From Java 9, the _ character cannot be used as an identifier anymore, not just within the lambda context. Hence, while compiling the project, I ran into these following error. However, it can be solved simply by replacing "" with "$".
Error:
traj-sim-spark-master/src/main/java/mtree/MTree.java:760:1: as of release 9, '
' is a keyword, and may not be used as an identifier
traj-sim-spark-master/src/main/java/mtree/MTree.java:761:1: as of release 9, '' is a keyword, and may not be used as an identifier
traj-sim-spark-master/src/main/java/mtree/MTree.java:808:1: as of release 9, '
' is a keyword, and may not be used as an identifier
traj-sim-spark-master/src/main/java/mtree/MTree.java:809:1: as of release 9, '' is a keyword, and may not be used as an identifier
traj-sim-spark-master/src/main/java/mtree/MTree.java:910:1: as of release 9, '
' is a keyword, and may not be used as an identifier
traj-sim-spark-master/src/main/java/mtree/MTree.java:911:1: as of release 9, '_' is a keyword, and may not be used as an identifier

Simply replace underscore "_" after IndexItem _ , and assert _ with IndexItem $ and assert $. After changing on the line numbers, the project will compile successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions