[ https://issues.apache.org/jira/browse/PIG-4641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14647094#comment-14647094 ]
songwanging commented on PIG-4641: ---------------------------------- yes, it is trivial but still a bug, I came cross this bug with my bug detection tool. > Print the instance of Object without using toString() > ----------------------------------------------------- > > Key: PIG-4641 > URL: https://issues.apache.org/jira/browse/PIG-4641 > Project: Pig > Issue Type: Bug > Affects Versions: 0.13.0, 0.14.0, 0.15.0 > Reporter: songwanging > Priority: Minor > Original Estimate: 10m > Remaining Estimate: 10m > > In Class: pig-0.15.0\src\org\apache\pig\scripting\js\JsFunction.java > when printing the instance of Object "value", should use "toString()" to > convert it to a String instance > private void debugConvertPigToJS(int depth, String pigType, Object value, > Schema schema) { > if (LOG.isDebugEnabled()) { > LOG.debug(indent(depth)+"converting from Pig " + pigType + " " + > value + " using " + stringify(schema)); > } > } > In the same Class, all others use toString(value) to print the instance of > Object "value". -- This message was sent by Atlassian JIRA (v6.3.4#6332)