saveEvent incompatible return

Hi

I’m a noob and wanting to evaluate javaplanner and have downloaded v1.5. Following the tutorial at javaplanner.com/blog/creating-a- … -calendar/ I have created an Eclipse project and all goes well until I try and integrate with my database.

The EventsManager.java class won’t compile because the Integer return type for saveEvent() is incompatible with the superclass DHXEventsManager.saveEvent which is expecting DHXStatus.

v1.2 demos compile ok, but I get the evaluation time out message on run.

Any ideas?

Thanks

Hi,

You should return status instead since JavaPlanner v1.5:

    @Override
    public DHXStatus saveEvent(DHXEv event, DHXStatus status) {
        ...
        return status;
    }

please, try to update javaplanner.jar from here:
dl.dropboxusercontent.com/u/912 … 5-eval.zip

Thanks Radyno.

That’s got it. V1.5 evaluation up and running.