apache / apache/beam

[Task]: Eliminate `ClassLoadingStrategy.Default.INJECTION` throughout Beam Java code base

Open
#30,358 1 comment 0 reactions 0 assignees View on GitHub
P2 pinned task
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

### What needs to happen?

Past works: #25578 #26508

ClassLoadingStrategy.Default.INJECTION requires the access to jdk internal API, which is discouraged and needs to explicit `--add-opens` jvm options in Java16+.

Current workaround is to add `--jdkAddOpenModules=java.base/java.lang=ALL-UNNAMED` to the pipeline option. However, we should clean up the remaining usages.

### Issue Priority

Priority: 2 (default / most normal work should be filed as P2)

### Issue Components

- [ ] Component: Python SDK
- [x] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.