Using gwt 2.8.0, restygwt 2.2.0, gwtjackson 0.14.2 (all latest versions),
I am getting this error:
[ERROR] Line 22: The constructor Employee() is not visible
But that constructor is visible:
public class Employee implements Serializable {
private String name;
private Employee() {
}
public Employee(String name) {
this.name = name;
}
...
}
Any idea what can cause this?
Full error message:
[INFO] --- gwt-maven-plugin:1.0-rc-6:compile (default-compile) @ employee-rostering-oaas-gwtui ---
[INFO] Compiling module org.optaplanner.openshift.workerrostering.gwtui.WorkerRosteringWebapp
[INFO] Adding '2' new generated units
[INFO] See snapshot: /tmp/org.optaplanner.openshift.workerrostering.domain.Employee_Generated_JsonEncoderDecoder_3932536815121640627.java
[INFO] Ignored 1 unit with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] [ERROR] Errors in 'generated://BA1D9DD7AB25C9820EE61BC007A1D0C2/org/optaplanner/openshift/workerrostering/domain/Employee_Generated_JsonEncoderDecoder_.java'
[INFO] [ERROR] Line 22: The constructor Employee() is not visible
[INFO] See snapshot: /tmp/org.optaplanner.openshift.workerrostering.domain.Employee_Generated_JsonEncoderDecoder_4842096055955344587.java
[INFO] Tracing compile failure path for type 'org.optaplanner.openshift.workerrostering.domain.Employee_Generated_JsonEncoderDecoder_'
[INFO] [ERROR] Errors in 'generated://BA1D9DD7AB25C9820EE61BC007A1D0C2/org/optaplanner/openshift/workerrostering/domain/Employee_Generated_JsonEncoderDecoder_.java'
[INFO] [ERROR] Line 22: The constructor Employee() is not visible