Interesting... I first reproduced it by doing a new extract of trunk/uimaj and trying to build, after blowing away my local maven repo (but just for org/apache/uima).
The JVM used was: Sun 1.6.0_11-b03 on my Windows XP machine. Version reports: D:\r2.3\trunk\uimaj>java -version java version "1.6.0_11" Java(TM) SE Runtime Environment (build 1.6.0_11-b03) Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing) -Marshall Thilo Goetz wrote: > Marshall Schor wrote: > >> I think this fix gives rise to another test case failure. I backed out >> this fix, and the (I think new) test in IteratorTest - testIterator >> fails on line 357. >> >> With this fix restored, there is a failure on IteratorTest - testDelete, >> line 662. >> >> Thilo - I think you are the best person to investigate - can you take a >> look, please? >> > > Hm, I can't reproduce this. Works for me, fresh out of svn. I did run > all the test cases before I committed this change. Can you make sure > you're at the latest level, and if you are, give me platform details, > in particular exactly which jvm you're using. Thanks. > > --Thilo > > >> -Marshall >> >> Thilo Goetz (JIRA) wrote: >> >>> [ >>> https://issues.apache.org/jira/browse/UIMA-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >>> ] >>> >>> Thilo Goetz closed UIMA-1352. >>> ----------------------------- >>> >>> Resolution: Fixed >>> Fix Version/s: 2.3 >>> >>> Fixed, and Pablo's test case added. Pablo, please verify if possible. >>> >>> >>> >>> >>>> java.lang.ClassCastException using find() with a SET index >>>> ---------------------------------------------------------- >>>> >>>> Key: UIMA-1352 >>>> URL: https://issues.apache.org/jira/browse/UIMA-1352 >>>> Project: UIMA >>>> Issue Type: Bug >>>> Components: Core Java Framework >>>> Affects Versions: 2.2.2 >>>> Environment: Linux openSUSE 10.2 >>>> Reporter: Pablo D. >>>> Assignee: Thilo Goetz >>>> Fix For: 2.3 >>>> >>>> Attachments: uima_test.zip >>>> >>>> >>>> It is not possible to use the FSIndex.find() method when the indexing >>>> strategy is a SET. >>>> A java.lang.ClassCastException is thrown. >>>> For example: >>>> FSIndex idx = aJCas.getJFSIndexRepository().getIndex("idx_SET"); >>>> while (doSomething) { >>>> MyFeatureStructure myFs = new MyFeatureStructure(aJCas); >>>> myFs.setMyFeature(value); >>>> myFs.addToIndexes(); >>>> >>>> // Try to recover from index >>>> MyFeatureStructure otherFs = (MyFeatureStructure)idx.find(myFs); // >>>> ClassCastException !!!! >>>> ... >>>> } >>>> >>>> >>> >>> > > > >
