Open harcek opened 9 years ago
Let me see if understand: the code works fine if you run it using scala on the command line, but not within the REPL?
Worksheet is a multiline REPL plugin so basically yes. The code works when I run it from IntelliJ, did not try to run it via command line, but I assume if compiled it will work in general.
Cool, thanks. The REPL has odd behaviors sometimes but I try and support it to the greatest extent possible. I'll take a look and see what can be done.
Sure, I raised it mainly to be in evidence. If you need any additional info o tests just let me know. Thank you.
I have similar issue. same error at least. jackson-2.5.1, scala 2.10 when start integration tests
with jackson-databind
The code like:
responseValue: Map[String, MyResponse] = mapper.readValue(expectedResponse, new TypeReference[Map[String, MyResponse]] {})
the MyResponse
@JsonTypeName(OpConstants.SUB_TYPE)
@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE)
class MyResponse(coreData: CoreData, @JsonIgnore underlyingMyResponse: MyResponse) extends BasicResponse(coreData) with Serializable {
def this() = this(new CoreData, null)
... where
@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE)
abstract class BasicResponse(coreData: CoreData) extends Serializable {
it works ok when I run from ide.. but got that 'constructor-error' when run from start.sh script that involves server run and go with those integration tests.
I know it may be not very concrete, but at least some info that it is still the issue.
Is there any progress on this, I'm facing similar issue. scala 2.10
One from JsonMappingException family, but most probably it is not duplicate of them, since no release fixes it. Environment:
Scala 10.4
,JIdea 13.1.3
withJVM 1.7
SDK for Scala, tested with jackson module scala versions2.2.2
,2.3.2
,2.4.5
,2.5.2
with identical behaviour. The code works if run as regular Scala.Worksheet results