OHDSI / WebAPI

OHDSI WebAPI contains all OHDSI services that can be called from OHDSI applications
Apache License 2.0
130 stars 169 forks source link

Fix for compile error seen for Eclipse #2390

Closed greshje closed 2 weeks ago

greshje commented 2 months ago

WebAPI fails to compile using Eclipse. Two errors are given around the use of generics and wild cards (e.g. <V,?>). The overloading of the initAndBuildList function for the lists and group lists gives one error in ValidatorGroupBuilder and one error in AbstractForEachValidatorBuilder.

The fix for this is simply to create an exact duplicate of the very small mehtods in each class for initAndBuildList for the group list with a more specific call signature.

chrisknoll commented 2 months ago

Can we get more detail around what exactly the error is? Something like we should add something like ? extends SomeClass to it? What is the more specific call signature you're suggesting?