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

Migrate to Java 21 and new Runtime APIs #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ravinperera00
Copy link

Purpose

Fixes:

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@@ -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

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);

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();

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

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.

2 participants