mirror of https://github.com/sbt/sbt.git
Handle changes to Source serialization format by returning empty Source
This commit is contained in:
parent
3332b0707a
commit
bf5dbadc53
|
|
@ -29,6 +29,6 @@ object APIFormat
|
|||
try { objIn.readObject().asInstanceOf[Source] }
|
||||
finally { objIn.close() }
|
||||
}
|
||||
catch { case e: java.io.EOFException => new xsbti.api.Source(Array(), Array())}
|
||||
catch { case _: java.io.EOFException | _: java.io.InvalidClassException => new xsbti.api.Source(Array(), Array())}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue