I am trying to build Strata in Eclipse and followed the instructions. Most of the projects are good except in Strata-function project, I have a compiler error.
In package com.opengamma.strata.function.marketdata.curve, class CurveInputsMarketDataFunction has getMarketDataValues method (the last method of the class with generic parameters) , I am getting an error “Type mismatch: cannot convert from ImmutableMap<Object,Object> to Map<? extends MarketDataKey<?>,MarketDataBox<?>>”.
What compiler are you using and what version? The early versions of the Java 8 compiler contained bugs in the type inference implementation and couldn’t handle some valid code containing lambdas. Strata requires a JDK version of 1.8.0_40 or later to build. See the README file on Github.
I am using jdk 1.8.0_40
I am using the Eclipse “embedded” version of Maven. I guess I could install a standalone version of Maven and do “mvn install” .Let me try that. Or do you suggest I upgrade my JDK to the most recent version ? Thanks.
This is the only one compiler error in all strata projects.
I have installed JDK version “1.8.0_92”. My eclipse is Version: Mars Release (4.5.0). In all strata projects, I used this JDK. I have made a Maven build at the command line too.