Commit 23f77c4
committed
Fix infinite-loop when using Jar#iterator
So far, Jar was defined as an Iterable implementation that overrides
`foreach` and then define `override def iterator = this.toList.iterator`
That was OK with the 2.12 stdlib, but stackoverflows with the 2.13 one
due to `toList` now being implemented in terms of `iterator`.
Any way, it turns out that we don't really need Jar to be an Iterable,
so the simplest fix was to just remove these methods, and add back a
`toList` for the one usesite that needed it (not very efficient, but not
any worse than before).1 parent 13e76a7 commit 23f77c4
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
0 commit comments