Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 519068 - [9] non-deterministic AIOOBE in ModuleInfo.createModule()
Summary: [9] non-deterministic AIOOBE in ModuleInfo.createModule()
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: BETA J9   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-01 11:24 EDT by Stephan Herrmann CLA
Modified: 2017-07-18 05:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2017-07-01 11:24:31 EDT
Running ModuleCompilationTests against bug 517808 I sometimes see AIOOBE, because module-info.class lacks the entry referenced by module_name_index.

Very difficult to debug while javap is a complete failure and our disassembler isn't yet available either.
Comment 1 Stephan Herrmann CLA 2017-07-01 13:36:11 EDT
Found the reason: the caches added to ConstantPool via bug 511814 where never cleaned in ConstantPool.reset(). This caused us to re-use entries from a previous class file which were obviously missing in the new class file.

Pushed the fix directly via http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?h=BETA_JAVA9&id=365e6ae74a8ef58cdbe94029bfe9b239a016a1b4