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

Attachments

2

Activity

Andy Fingerhut 
September 18, 2013 at 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

Details

Assignee

Reporter

Approval

Patch

Priority

Affects versions

Fix versions

Created September 18, 2013 at 5:16 AM
Updated November 23, 2013 at 1:06 AM
Resolved November 23, 2013 at 1:06 AM