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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions