[jira] [Created] (FLINK-1221) Use program source line of invocation as the default function name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-1221) Use program source line of invocation as the default function name

Shang Yuanchun (Jira)
Stephan Ewen created FLINK-1221:
-----------------------------------

             Summary: Use program source line of invocation  as the default function name
                 Key: FLINK-1221
                 URL: https://issues.apache.org/jira/browse/FLINK-1221
             Project: Flink
          Issue Type: Improvement
          Components: Java API, Scala API
    Affects Versions: 0.8-incubating
            Reporter: Stephan Ewen
            Priority: Minor
             Fix For: 0.8-incubating


Right now, the default function name is {{getClass().getName()}}.

In many cases, this is not really very revealing. Using line in the source code where the function is invoked is more helpful.

This can be easily obtained by
{code}
Thread.getCurrentThread().getStackTrace()[0]
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)