lazy seq that encounters an exception has differing behavior on repeated use

Description

It seems the below does not compile with 1.8.0 and 1.9.0-alpha14, the same errors appear in both versions.

Patch: 0001-CLJ-2069-cache-exceptions-thrown-during-lazy-seq-rea.patch

Proposal: Cache exceptions thrown during lazy-seq realization, to avoid re-running bodyfn which is declared as `^:once`

Prescreened by: Alex Miller

Environment

OS X EI Capitan, Java HotSpot(TM) 64-Bit Server VM 1.8.0_101-b13

Assignee

Unassigned

Reporter

import

Labels

Approval

Prescreened

Patch

Code

Affects versions

Priority

Minor
Configure