Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
csgilrcn opened this issue Apr 2, 2015 · 1 comment
Assignees

Comments

@csgilrcn
Copy link

csgilrcn commented Apr 2, 2015

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 zwobill self-assigned this Apr 24, 2015
@zwobill
Copy link
Contributor

zwobill commented Apr 24, 2015

This is a code template problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants