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

gson 2.11.0 does not work #9

Open
ctrueden opened this issue Oct 1, 2024 · 0 comments
Open

gson 2.11.0 does not work #9

ctrueden opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ctrueden
Copy link
Member

ctrueden commented Oct 1, 2024

Right now, the codebase depends on gson 2.10.1, and tests pass. But attempting to run:

mvn test -Dgson.version=2.11.0

results in failing tests:

[ERROR] Errors: 
[ERROR]   LabelingIOTest.saveLabelingWithMetadataComplexTest:125 » IllegalArgument TypeToken type argument must not contain a type variable; captured type variable T declared by private void io.scif.labeling.DefaultLabelingIOService.writeLabelingFile(java.lang.String,net.imglib2.labeling.data.LabelingData) throws java.io.IOException
See https://github.com/google/gson/blob/main/Troubleshooting.md#typetoken-type-variable
[ERROR]   LabelingIOTest.saveLabelingWithMetadataPrimitiveTest:102 » IllegalArgument TypeToken type argument must not contain a type variable; captured type variable T declared by private void io.scif.labeling.DefaultLabelingIOService.writeLabelingFile(java.lang.String,net.imglib2.labeling.data.LabelingData) throws java.io.IOException
See https://github.com/google/gson/blob/main/Troubleshooting.md#typetoken-type-variable
[ERROR]   LabelingIOTest.testEquality:77 » IllegalArgument TypeToken type argument must not contain a type variable; captured type variable T declared by private void io.scif.labeling.DefaultLabelingIOService.writeLabelingFile(java.lang.String,net.imglib2.labeling.data.LabelingData) throws java.io.IOException
See https://github.com/google/gson/blob/main/Troubleshooting.md#typetoken-type-variable
[ERROR]   LabelingIOTest.testEquality2:91 » IllegalArgument TypeToken type argument must not contain a type variable; captured type variable T declared by private void io.scif.labeling.DefaultLabelingIOService.writeLabelingFile(java.lang.String,net.imglib2.labeling.data.LabelingData) throws java.io.IOException
See https://github.com/google/gson/blob/main/Troubleshooting.md#typetoken-type-variable
[INFO] 
[ERROR] Tests run: 7, Failures: 0, Errors: 4, Skipped: 0
@ctrueden ctrueden added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant