diegomjasso / language-detection

Automatically exported from code.google.com/p/language-detection
0 stars 0 forks source link

Works erratically on Java 7 #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On Java 7, use the library multiple times
2. Fails for me 1 out of every 4 times
3.

What is the expected output? What do you see instead?
should load profiles

What version of the product are you using? On what operating system?
latest

Please provide any additional information below.
throws the exception here:
 static private Detector createDetector() throws LangDetectException {
        if (instance_.langlist.size()==0)
            throw new LangDetectException(ErrorCode.NeedLoadProfileError, "need to load profiles");
        Detector detector = new Detector(instance_);
        return detector;
    }

Original issue reported on code.google.com by blitzm...@gmail.com on 8 Jan 2014 at 6:34