Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/660#discussion_r91640657 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/compile/TemplateClassDefinition.java --- @@ -63,6 +78,14 @@ public SignatureHolder getSignature(){ @Override public String toString() { - return "TemplateClassDefinition [template=" + template + ", signature=" + signature + "]"; + StringBuilder buf = new StringBuilder( ); + buf.append( "TemplateClassDefinition [interface=" ); + buf.append( (iface == null) ? "null" : iface.getName() ); + buf.append( ", template=" ); + buf.append( (template == null) ? "null" : template.getName() ); + buf.append( ", signature=\n" ); --- End diff -- Done this way because the value itself is big and uses multiple lines. This is one problem with the {toString()} approach to dumping objects: no allowance for nesting multiple lines. Is there a better solution I can use here?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---