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:Fabian Schuiki <fabian@schuiki.ch> Co-authored-by:
Schuyler Eldridge <schuyler.eldridge@sifive.com>
parent
3ad2541e
Please register or sign in to comment