Community
Participate
Working Groups
Example: class T { static final int[][] f1 = new int[][] {{0}}; { f1[0][0] = 0; int[][] m1 = new int[][] {{0}}; m1[0][0] = 0; } } Inlining "m1" adds extra parentheses and results in: (new int[][] {{0}})[0][0] = 0; Inlining the constant "f1" doesn't add extra parentheses. This is because InlineTempRefactoring#getInitializerSource invokes NecessaryParenthesesChecker#needsParentheses with a copy node which checks for the node's initializer value, and that is null for the copied node.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Still an issue in 4.11.