[Playground] Error output indicates to the wrong line number
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
Run the following code via Playground:
```
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.PipelineResult;
import org.apache.beam.sdk.io.TextIO;
import
org.apache.beam.sdk.options.PipelineOptions;
import org.apache.beam.sdk.options.PipelineOptionsFactory;
public
class Class {
public static void main(String[] args) {
PipelineOptions options = PipelineOptionsFactory.create();
Pipeline p = Pipeline.create(options);
p.run().waitUntilFinish();
int a = 1
/ 0; // 13 line
}
}
```
__Expected result__:
output contains next error:
_error: exit status 1_
_output: Exception in thread "main" java.lang.ArithmeticException: / by zero_
_at Class.main(fa2f3143-01cd-439f-9b23-51f3647313d9.java:13)_
__Actual result__:
output contains next error:
_error: exit status 1_
_output: Exception in thread "main" java.lang.ArithmeticException: / by zero_
_at Class.main(fa2f3143-01cd-439f-9b23-51f3647313d9.java:20)_
Imported from Jira [BEAM-13943](https://issues.apache.org/jira/browse/BEAM-13943). Original Jira may contain additional context.
Reported by: Aydar Zaynutdinov.
Contributor guide
Assessment
This issue has not been assessed yet.