Unverified Commit ec648823 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Fix anno deserialization when class field is not first (backport #2501) (#2502)

* Fix anno deserialization when class field is not first (#2501)

Update `findTypeHints` to allow for the "class" field in JSON objects to
appear anywhere in the object. This used to rely on the field being the
very first in the object, which is easily violated when reading JSON
data generated externally, since an object's order of fields is
unspecified and can be arbitrarily scrambled.

Fixes #2497.

(cherry picked from commit a2d48a58

)

# Conflicts:
#	src/main/scala/firrtl/annotations/JsonProtocol.scala

* fixup! Fix anno deserialization when class field is not first (#2501)

Co-authored-by: default avatarFabian Schuiki <fabian@schuiki.ch>
Co-authored-by: default avatarSchuyler Eldridge <schuyler.eldridge@sifive.com>
parent 3ad2541e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment