ExpediaDotCom / tesla

Apache License 2.0
15 stars 6 forks source link

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

Open csgilrcn opened 9 years ago

csgilrcn commented 9 years ago

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.

zwobill commented 9 years ago

This is a code template problem.