Skip to content

Commit 2bc034a

Browse files
committed
fix test failure: nullInputStream does not exist on jdk 8
1 parent a74dfbe commit 2bc034a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/insn/op_map.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
[ks (map m ks)])))))
3030

3131
(def ^:private op-handlers
32-
"Each added quad provides a op keyword seq, an emit fn, and a fn that
33-
should convert the map op to the vector equivalent. Nothing fancy like
32+
"Each added tuple should be an op keyword seq, an emit fn, and a fn
33+
that converts the map op to the vector equivalent. Nothing fancy like
3434
multimethods/protocols for performance here."
3535
(let [add #(vary-meta (merge %1 (zipmap %2 (repeat %3)))
3636
merge (zipmap %2 (repeat %4)))]

test/insn/core_test.clj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,7 @@
416416
{:name :clinit
417417
:emit [{:op :return}]}
418418
{:name 'm :type Object
419-
:emit [{:op :invokestatic
420-
:class java.io.InputStream
421-
:name 'nullInputStream
422-
:type java.io.InputStream}
423-
{:op :pop}
424-
,
425-
{:op :ldc, :value 0}
419+
:emit [{:op :ldc, :value 0}
426420
{:op :istore, :index 1}
427421
,
428422
{:op :iinc, :index 1, :value 1}

0 commit comments

Comments
 (0)