-
Notifications
You must be signed in to change notification settings - Fork 20
Description
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.