On 01/07/11 21:08, Wu, John Z CTR US USA wrote:
Classification: UNCLASSIFIED
Caveats: FOUO

Dear Jena experts:

I'm new to jena. I tried to use ExtendedIterator with parameter in my
java code for my school project as follows:

ExtendedIterator<OntClass>  classes = model.listNamedClasses();

I received following error message when I was compiling:

.\AdjacencyMatrix.java:31: type
com.hp.hpl.jena.util.iterator.ExtendedIterator does not take parameters
                 ExtendedIterator<OntClass>  classes =
model.listNamedClasses();

I checked your web page
http://jena.sourceforge.net/javadoc/com/hp/hpl/jena/graph/class-use/Trip
le.html
And found following:

com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple>

I don't understanding why I encountered such error. Please advise.

It looks like you are using an old version of Jena before Jena was converted to use generics at 2.6.0 (or have such a copy on your compile classpath before a later one).

The current version is 2.6.4.

        Andy



John Wu (Contractor)
Sr. Oracle Developer
Team ITSS
256-955-9090

Ps. Attached is the java source code.

Classification: UNCLASSIFIED
Caveats: FOUO


Reply via email to