Login | Register

Returning null as Java array #1213

15 Sep 2010

So we have an interface with method returning an array

package party3;

public interface A {
  Object[] getAll();

Then we implement it in Fantom

using [java]party3

class B : A {
  override Obj?[]? getAll() { null }

On compiling of pod I receive

/home/vkuzkokov/tmp/check/fan/,30): Cannot return 'null' as

Changing return type leads to another CE (Return type mismatch). Returning [,] works.

15 Sep 2010

Promoted to ticket #1213 and assigned to brian

22 Sep 2010

Ticket resolved in 1.0.56

Add support for null literal to Java FFI coercion


Login or Register to Reply

Back | All Topics