From 0232d99ba646313505536a0663952e9e94340022 Mon Sep 17 00:00:00 2001 From: skyupward Date: Wed, 15 Nov 2017 20:54:43 +0800 Subject: getName call it self result in stackoverflow I think line 12 is incorrect, call "this.getName()" in it self will cause stackoverflow.Change to return this.name. --- usage_examples/ToStringExample_pre.jpage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usage_examples') diff --git a/usage_examples/ToStringExample_pre.jpage b/usage_examples/ToStringExample_pre.jpage index a15fb944..39b25892 100644 --- a/usage_examples/ToStringExample_pre.jpage +++ b/usage_examples/ToStringExample_pre.jpage @@ -9,7 +9,7 @@ public class ToStringExample { private int id; public String getName() { - return this.getName(); + return this.name; } @ToString(callSuper=true, includeFieldNames=true) -- cgit