[BLUEJ-684] The import cache can be written incomplete
I don't know exactly how (I'm guessing: quick exit from BlueJ while scanning is still ongoing) but import-cache.xml can get written with incomplete info, e.g. no classes in java.lang. On the next load, we read the cache, think it's complete and proceed with wrong information. We either need to realise it's incomplete and finish scanning, or (probably better solution) only write import-cache.xml if we know we have the complete information.
Issue metadata
- Issue type: Sub-task
- Priority: Medium
- Parent issue: [BLUEJ-665] Fix 4.0.0-preview-rc3 issues
- Fix versions: 4.0.0preview