You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "TisonKun (JIRA)" <ji...@apache.org> on 2019/07/19 06:30:00 UTC
[jira] [Created] (FLINK-13332)
PackagedProgram#isUsingInteractiveMode implemented error prone
TisonKun created FLINK-13332:
--------------------------------
Summary: PackagedProgram#isUsingInteractiveMode implemented error prone
Key: FLINK-13332
URL: https://issues.apache.org/jira/browse/FLINK-13332
Project: Flink
Issue Type: Bug
Components: Command Line Client
Affects Versions: 1.10.0
Reporter: TisonKun
Currently, {{PackagedProgram#isUsingInteractiveMode}} implemented as
{code:java}
public boolean isUsingInteractiveMode() {
return this.program == null;
}
{code}
is hacky and a better implementation would be
{code:java}
public boolean isUsingInteractiveMode() {
return hasMainMethod(mainClass);
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)