Aydar Zaynutdinov created BEAM-13943:
----------------------------------------

             Summary: [Playground] Error output indicates to the wrong line 
number
                 Key: BEAM-13943
                 URL: https://issues.apache.org/jira/browse/BEAM-13943
             Project: Beam
          Issue Type: Bug
          Components: beam-playground
            Reporter: Aydar Zaynutdinov


Run the following code via Playground:

 
{code:java}
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
    }
}
{code}
 

 

{*}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)_



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to