-
Notifications
You must be signed in to change notification settings - Fork 5
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
Migrate to Java 21 and new Runtime APIs #37
base: main
Are you sure you want to change the base?
Conversation
@@ -14,5 +14,5 @@ jobs: | |||
call_workflow: | |||
name: Run Build Workflow | |||
if: ${{ github.repository_owner == 'ballerina-platform' }} | |||
uses: ballerina-platform/ballerina-library/.github/workflows/build-timestamp-master-template.yml@main | |||
uses: ballerina-platform/ballerina-library/.github/workflows/build-timestamp-master-template.yml@java21 |
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.
we need to remove @java21
DataReaderTask task = new DataReaderTask(env, iteratorObj, future, type, | ||
CsvConfig.createParseOptions(options), | ||
options.getStringValue(Constants.ConfigConstants.ENCODING)); | ||
DataReaderThreadPool.EXECUTOR_SERVICE.submit(task); |
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.
Shall we remove the pool and use java 21 virtual thread
} | ||
try { | ||
env.getRuntime().callMethod(iterator, closeMethod.getName(), null); | ||
semaphore.release(); |
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.
We dont need semaphore since it is a blocking call
Purpose
Fixes:
Examples
Checklist