-
Notifications
You must be signed in to change notification settings - Fork 764
Upgrade to Groovy 5 #6220
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
base: master
Are you sure you want to change the base?
Upgrade to Groovy 5 #6220
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,11 +76,12 @@ class DumpOp { | |
| DataflowWriteChannel apply() { | ||
|
|
||
| if( !isEnabled() ) { | ||
| if( source instanceof DataflowWriteChannel ) | ||
| return (DataflowWriteChannel)source | ||
| if( source instanceof DataflowWriteChannel dwc ) | ||
| return dwc | ||
| throw new IllegalArgumentException("Illegal dump operator source channel") | ||
| } | ||
|
|
||
| // ERROR: Cannot find matching static method nextflow.extension.CH#createBy(groovyx.gpars.dataflow.DataflowWriteChannel) | ||
| final target = CH.createBy(source) | ||
|
Comment on lines
+84
to
85
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on my limited knowledge of how the Groovy type checker does type inference with |
||
| final events = new HashMap(2) | ||
| events.onNext = { | ||
|
|
@@ -92,6 +93,7 @@ class DumpOp { | |
|
|
||
| events.onComplete = { CH.close0(target) } | ||
|
|
||
| // ERROR: Cannot find matching static method nextflow.extension.DataflowHelper#subscribeImpl(groovyx.gpars.dataflow.DataflowWriteChannel, java.util.HashMap) | ||
| DataflowHelper.subscribeImpl(source, events) | ||
| return target | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried changing the type of
candMAX_LINEStoIntegerbut I get this type checking error regardless. Seems like a Groovy type checker bug