-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Hey all,
Doing more explorations with Erjang and Java calls, and I came across this. At first I thought it was only a problem in LFE, but in Erjang-proper it threw errors as well.
Here's a paste of my session:
1> c(java).
{ok,java}
2> Tmpfile = 'java.io.File':createTempFile("foo-", "-bar").
<<>>
3> java:call(Tmpfile, getPath, [], []).
"/var/folders/c8/2cl5l5_102b1qq8bh05t7xw40000gn/T/foo-6047105912485405234-bar"
4> java:call(java:call(Tmpfile, isFile, [], []), toString, [], []).
"true"
5> java:call(java:call(Tmpfile, getPath, [], []), length, [], []).
76
6> java:call(java:call(Tmpfile, getPath, [], []), getBytes, [], []).
** exception error: no function clause matching
io_lib_pretty:cind_list({{list,
{{list,
{{list,
{{list,
{{list,
{{list,
{{list,
{{list,
{{list,
{{...},...}},
45}},
47}},
49}},
51}},
53}},
55}},
57}},
59}},
61},
2,80,60,-1,0,1) (io_lib_pretty.erl, line -1)
in function io_lib_pretty:while_fail/3 (io_lib_pretty.erl, line 704)
in call from io_lib_pretty:print/8 (io_lib_pretty.erl, line 111)
7> java:call(java:call(Tmpfile, getPath, [], []), toCharArray, [], []).
** exception error: no function clause matching
io_lib_pretty:cind_list({{list,
{{list,
{{list,
{{list,
{{list,
{{list,
{{list,
{{list,
{{list,
{{...},...}},
45}},
47}},
49}},
51}},
53}},
55}},
57}},
59}},
61},
2,80,60,-1,0,1) (io_lib_pretty.erl, line -1)
in function io_lib_pretty:while_fail/3 (io_lib_pretty.erl, line 704)
in call from io_lib_pretty:print/8 (io_lib_pretty.erl, line 111)
8>Metadata
Metadata
Assignees
Labels
No labels