Daniel Higginbotham:
> Looking at the monger source, I can't understand why a Boolean is being handled by the String to-db-object method.
You can try a new SNAPSHOT with
https://github.com/michaelklishin/monger/commit/76efdc7e7b3b0dea063bae6322a8644fddc2e5eb
A similar edge is actually pretty well known and we may even be hitting precisely that. Imagine two Java methods
that take a single argument, overloaded like so:
mymethod(Object arg)
mymethod(int arg)
that is invoked via mymethod(1L)
which overloaded version should be used? Technically we are passing a long and only have overload for int primitives
but longs as small as 1 can be safely coerced to ints. Or casted to Object.
I am not familiar enough with the way protocols are compiled but this looks like a reasonable hypothesis. Let me know if
SNAPSHOT works for you better.
MK
mic...@defprotocol.org