Skip to content

java.io.File is not a valid source for anyFrom()/mapFrom() #53

@CoreyTeffetalor

Description

@CoreyTeffetalor

I'm getting an exception when attempting to use mapFrom/anyFrom in gradle/groovy:

com.fasterxml.jackson.jr.ob.JSONObjectException: Can not use Source of type java.io.File as input (use an InputStream, Reader, String, byte[], File or URL

Thrown here: https://github.com/FasterXML/jackson-jr/blob/master/jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/JSON.java#L1064

It looks like the cases above don't handle java.io.File as the documentation/exception claims.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions