Skip to content

Commit

Permalink
fix: brings back constants parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Apr 22, 2022
1 parent d2cc8a4 commit 45dba60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ func resolveConstants(classes ClassMap, cpools PoolMap, constants *[]constant, r
if *resolved {
return nil
}
*constants = nil
*resolved = true
for _, c := range *constants {
if err := ResolveConstants(classes, cpools, int(c.classID)); err != nil {
Expand All @@ -155,6 +154,7 @@ func resolveConstants(classes ClassMap, cpools PoolMap, constants *[]constant, r
return fmt.Errorf("unable to resolve constants for field %s: %w", c.field, err)
}
}
*constants = nil
return nil
}

Expand Down

0 comments on commit 45dba60

Please sign in to comment.