Skip to content

Compiler generate error while compiling a complext type like Map<String, double[][]> #2

Description

@csgilrcn

Our class added this type of field and corresponding setter and getter methods:

transient private Map<String, double[][]> matrixMap;

public Map<String, double[][]> getMatrixMap()
{
return this.matrixMap;
}

public void setMatrixMap(Map<String, double[][]> matrixMap)
{
this.matrixMap = matrixMap;
}

The tesla compiler generated the source code that threw some compile errors:
BomSerializer.java:2469: error: incompatible types
[javac] double[] v = new java.lang.Double[size];
[javac] ^
[javac] required: double[]
[javac] found: Double[]
[javac]

BomSerializer.java:2687: error: incompatible types
[javac] double[][] v = new java.lang.Double[size][];
[javac] ^
[javac] required: double[][]
[javac] found: Double[][]

Please investigate.

Activity

  1. self-assigned this
    on Apr 24, 2015
  2. zwobill commented on Apr 24, 2015

    @zwobill
    Contributor

    This is a code template problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions