Community
Participate
Working Groups
As per discussion in Bug 539080 - [12] Switch AST to JLS12, Dom need not expose setImplicit(boolean) method to public.
New Gerrit change created: https://git.eclipse.org/r/139007
Why it should not be used by client - 1. case 1->2; changes to case 1->{ System.out.println("2"); break 2; } Client needs to remove the expression statement for "2" and add the block statement with sysout and break statements. 2. case 2->{ System.out.println("2"); break 2; } changes to case 1->2; Client needs to remove the block statement and add the expression statment for "2". compiler will add the implicit break statement.
(In reply to Sarika Sinha from comment #0) > Dom need not expose setImplicit(boolean) method to public. Agree. This was intended to be non-public by design (In reply to Sarika Sinha from comment #2) > Why it should not be used by client - > for "2". compiler will add the implicit break statement. +1. This is internally used by the compiler. Client should not be using this.
Gerrit change https://git.eclipse.org/r/139007 was merged to [BETA_JAVA_12]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=a39326e536c471be4affbcc0e5abf7e3abd41b82