lift/framework — pull request #1621 by tuhlmann (2014-10-04 09:51:54+00:00)
Title: Signature of asJValue inconsistent

I was subclassing BsonRecordListField (Lift 2.5.1, Scala 2.10) to extend it with some specialized methods.
I also wanted to override asJValue to make it return a json object instead of the JArray that this field returns.

The compiler complained because the type signature in this specific case would be "def asJValue: JArray", because the overridden method does not state any return type so its inferred by the compiler.

To correct this, add the proper type signature to all overrides of asJValue in Lift 3.

Discussion in the list: https://groups.google.com/forum/#!topic/liftweb/kTBHlK7xBHM