FlexSearch / FlexLucene

IKVM Build scripts
Apache License 2.0
16 stars 5 forks source link

Creating a FSDirectory throws exception #10

Closed bahaabeih closed 8 years ago

bahaabeih commented 8 years ago

I am using a FSDirectory in FlexLucene v6.0.0 as follows:

java.io.File f = new java.io.File(IndexDir.FullName);
java.nio.file.Path p = f.toPath();                                     //This line 
//java.nio.file.Path p = Paths.get(IndexDir.FullName);  //and this alternative line too
FSDirectory fsDir = FSDirectory.Open(p);

The lines marked both throw the following exceptions respectively. Although the methods toPath and get show up in intellisense.

'java.lang.NoSuchMethodException' in IKVM.OpenJDK.Core.dll //For first line 'java.lang.NoSuchMethodError' in IKVM.Runtime.dll //and this for the alternate line

Any idea why this happens?

vladnega commented 8 years ago

Could you please try it using FlexLucene 6.0.1.0 ?

bahaabeih commented 8 years ago

Did so and they no longer get thrown. Is it a known problem?

vladnega commented 8 years ago

No, it wasn't a known problem. Maybe it got fixed by this commit.