Logs for the RingoJS IRC channel,
as logged by ringostarr.
2011-07-03
[03:40]
[03:42]
[04:01]
[04:26]
[07:55]
[13:12]
[13:12]
[13:13]
[14:04]
Logs for the RingoJS IRC channel,
as logged by ringostarr.
[03:40] <rrmckinley> I need some Rhino help. I have a Java constructor new PathBuilder<Object[]>(Object[].class, "subqquery").
[03:42] <rrmckinley> I cannot find a way to pass java.lang.Object[].class to the constructor. I cannot find how to get that class type in Rhino. In non-array type cases, passing java.lang.Object works, but java.lang.Object[] is a syntax error in Javascript.
[04:01] <rrmckinley> OK, I'm thinking it might be this: java.lang.Class.forName("[Ljava.lang.Object;")
[04:26] <earl> rrmckinley: yep, that should be it
[07:55] <rrmckinley> earl: yes, that was it, thanks.
[13:12] <oberhamsi> my problem yesterday: to list directory contents i should have used getRepository('./foo/').getResources()
[13:12] <oberhamsi> i wrongly assumed this would work: fs.list(module.resolve('./foo'))
[13:13] <oberhamsi> but that was stupid: module.resolve() only works for files and is not a general 'resolve this path'
[14:04] <oberhamsi> i turned http://ringojs.org/wiki/Globals into http://jsbin.com/obahoy/4/edit#preview