-
Notifications
You must be signed in to change notification settings - Fork 11
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
Upgrade to Groovy 4.0 #1114
Draft
olovy
wants to merge
8
commits into
develop
Choose a base branch
from
feature/groovy-4
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Upgrade to Groovy 4.0 #1114
Commits on Jan 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 60556d2 - Browse repository at this point
Copy the full SHA 60556d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5abc9e1 - Browse repository at this point
Copy the full SHA 5abc9e1View commit details -
Fix weird compilation errors on Groovy 4.0.4
Seems like a new groovy compiler bug. Works in 3.0.9 and 4.0.2 but not in 4.0.4. Among other things static imports fail for constants in whelk.JsonLd. ``` /home/olov/kod/librisxl/whelk-core/build/tmp/compileGroovy/groovy-java-stubs/se/kb/libris/Normalizers.java:2: error: cannot find symbol import static whelk.JsonLd.ID_KEY; ``` Looks like it's an issue with joint Java + Groovy compilation ("groovy-java-stubs")
Configuration menu - View commit details
-
Copy full SHA for b5baf78 - Browse repository at this point
Copy the full SHA b5baf78View commit details -
Fix failing test because of bad implicit cast
DocumentSpec > Cannot set created FAILED org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{@type=Publication, place={@type=Place, label=Stuttgart}, agent={@type=Agent, label=Thieme}}' with class 'java.util.LinkedHashMap' to class 'java.util.Collection' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.Collection(LinkedHashMap) at whelk.converter.marc.MarcFieldHandler.convert_closure15(MarcFrameConverter.groovy:2145) at groovy.lang.Closure.call(Closure.java:418) at whelk.converter.marc.MarcFieldHandler.convert(MarcFrameConverter.groovy:2128) at whelk.converter.marc.MarcRuleSet.processFields_closure6(MarcFrameConverter.groovy:756) at groovy.lang.Closure.call(Closure.java:418) at whelk.converter.marc.MarcRuleSet.processFields(MarcFrameConverter.groovy:753) at whelk.converter.marc.MarcRuleSet.convert(MarcFrameConverter.groovy:746) at whelk.converter.marc.MarcConversion.convert(MarcFrameConverter.groovy:274) at whelk.converter.marc.MarcFrameConverter.runConvert(MarcFrameConverter.groovy:81) at whelk.converter.marc.MarcFrameConverter.convert(MarcFrameConverter.groovy:107) at whelk.DocumentSpec.Cannot set created(DocumentSpec.groovy:374)
Configuration menu - View commit details
-
Copy full SHA for 7bbcb35 - Browse repository at this point
Copy the full SHA 7bbcb35View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf27aee - Browse repository at this point
Copy the full SHA bf27aeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for aec72cd - Browse repository at this point
Copy the full SHA aec72cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96383a6 - Browse repository at this point
Copy the full SHA 96383a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcfd377 - Browse repository at this point
Copy the full SHA dcfd377View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.