Bugs

Robert Field robert.field at oracle.com
Tue Mar 31 18:29:20 UTC 2015


Fix pushed:   hg: kulla/dev/langtools: Fix spacing sensitive bracket 
detection in modifier removal.

-Robert

On 03/30/15 08:41, andrei.eremeev wrote:
> Hi REPL team,
>
> The following declaration fails with compilation error if there is no 
> space between "I" and "{". See 
> SimpleRegressionTest#testNoSpaceBetweenIAndBrace
>
> -> interface I { void f(); }
> |  Added interface I
>
> -> class C implements I{ public void f() {}}
> |  Error:
> |  f() in C cannot implement f() in I
> |    attempting to assign weaker access privileges; was public
> |  class C implements I{ public void f() {}}
> |                               ^---------^
>
>
> Andrei Eremeev



More information about the kulla-dev mailing list