Minor change to Clojure source code to prevent warnings when compiled with JDK 8

Description

When compiling the Clojure source code using the early access version of JDK 8 (I saw this with 1.8.0-ea-b103 in particular), there are 6 warnings produced because the character _ is used as an identifier in Java source code.

The warning implies that this is likely to continue to be a warning for the lifetime of JDK 8, and could become an error with later JDKs.

Eliminating these warnings is as simple as changing the identifier name used on those 6 lines of one Java source file.

Patch: clj-1264-1.diff

Screened by: Alex Miller

Environment

JDK 8

Activity

Show:
Andy Fingerhut
September 18, 2013, 5:23 AM

Patch clj-1264-1.txt changes the identifier _ used on 6 lines of file PersistentHashMap.java to the name addedLeaf, which is used for a similar purpose elsewhere in the file.

Completed

Assignee

Unassigned

Reporter

Andy Fingerhut

Labels

None

Approval

Ok

Patch

Code

Fix versions

Affects versions

Priority

Critical