From: Ignazio P. <ipa...@gm...> - 2014-11-27 19:02:12
|
On 27 Nov 2014 12:36, "Lorenz Bühmann" <bue...@in...> wrote: > > Just one comment, I know that it's possible to fix this error with > > this.annotations = Collections.<OWLAnnotation>singletonList(annotations > .iterator().next()); > > but just wondering why I get this error message and I assume that nobody > of the OWL API developers will commit non-compiling code. > :-) the reason for this error is as explained by Simon. We try not to commit code that doesn't compile - hopefully it also passes the unit test suite. There's a Travis build job as well, which uses oracle jdk 1.7 and 1.8 (also openjdk 1.7, if memory serves) to compile and run the tests. Occasionally that brings up incompatibilities between eclipse, local jdks and Travis versions as well, one of them just last week on version 5. These can pop up in almost any version change of the jdk, apparently. If you can tell us which Java 7 version you were using, that would help - I need to update the wiki with this sort of information, now that we mention it. I. > Cheers, > Lorenz > > > Hello, > > > > when I checkout the latest GitHub cdoe of branch version4 I get 2 > > compiler errors in class > > uk.ac.manchester.cs.owl.owlapi.OWLAxiomImplWithEntityAndAnonCaching line 62 > > > > and class > > uk.ac.manchester.cs.owl.owlapi.OWLAxiomImplWithoutEntityAndAnonCaching > > line 64 > > > > with error message > > > > Type mismatch: cannot convert from List<capture#5-of ? extends > > OWLAnnotation> to List<OWLAnnotation> > > > > In both lines, a List<OWLAnnotation> object is set by > > > > this.annotations = Collections.singletonList(annotations > > .iterator().next()); > > > > Is it a problem of my IDE or Java version (JDK 1.7.0_40)? > > > > Kind regards, > > Lorenz > > > > > -- > Lorenz Bühmann > AKSW group, University of Leipzig > Group: http://aksw.org - semantic web research center > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer |