Skip to content

[BOUNTY $25] Can not directly return an instantiated array. #66

Open
@freemo

Description

@freemo

Generating the code for the following will return an exception:

 public class ReturnDoubleArrayNew extends Kernel {

    double[] returnDoubleArrayNew() {
        return new double[1024];
    }

    public void run() {
        returnDoubleArrayNew();
    }
}

However the following work around will compile just fine:

public class ReturnDoubleArrayVar extends Kernel {

    double[] returnDoubleArrayVar() {
        double[] doubles = new double[1024];
        return doubles;
    }

    public void run() {

        returnDoubleArrayVar();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty $$$Cash reward!bugFix something that is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions