cushon / issues-import

0 stars 0 forks source link

Warning: 'this' escapes constructor #184

Open cushon opened 9 years ago

cushon commented 9 years ago

Original issue created by kevinb@google.com on 2013-09-11 at 05:28 PM


A constructor body should never pass 'this' ... anywhere? In general APIs do not expect to receive partly-constructed instances! I suppose there might be exceptions to this rule. We'll have to see what the violations look like.