Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write compile spec as JSON #149

Merged
merged 11 commits into from
Jun 4, 2024
Merged

Write compile spec as JSON #149

merged 11 commits into from
Jun 4, 2024

Conversation

tudortimi
Copy link
Owner

No description provided.

The cool thing about Jackson is that it doesn't need any annotations.
Another cool thing about Jackson is that we don't need to annotate the properties to use the custom serializer.
This will cause all tests for the contents of the archive to fail, because it will contain an extra entry. It doesn't make sense to fix these fails, as we anyway want to remove the compile spec in XML format in a future step.
This works for SV-related properties, but mysteriously fails for C sources. Once both return the same object, we will be able to stop using the XML version in favor of the JSON version.
The wonky name of the getter, with the double capital letter, confuses Jackson, causing it to think that the property is called `csourceFiles` (not the lowercase "s"). It needs the annotation both for the getter, which is used for serialization, and for the field, which is (probably) used for deserialization.
@tudortimi tudortimi merged commit 4bada7c into master Jun 4, 2024
1 check passed
@tudortimi tudortimi deleted the write-compile-spec-as-json branch June 4, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant