Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 489907

Summary: [1.9] AIOOBE during code generation of a module-info with large number of package exports
Product: [Eclipse Project] JDT Reporter: Jay Arthanareeswaran <jarthana>
Component: CoreAssignee: Jay Arthanareeswaran <jarthana>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: manoj.palat, stephan.herrmann
Version: 4.5.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
Sample module-info
none
Proposed fix none

Description Jay Arthanareeswaran CLA 2016-03-18 04:43:05 EDT
Created attachment 260403 [details]
Sample module-info

The attached module-info.java has over hundred package exports and this is resulting in an AIOOBE during code generation. This could happen for requires and other sections of the module attribute too.

We should resize the contents array from time to time.
Comment 1 Jay Arthanareeswaran CLA 2016-03-18 04:46:21 EDT
Created attachment 260404 [details]
Proposed fix

The test case need another look.
Comment 2 Stephan Herrmann CLA 2017-10-09 19:40:46 EDT
I believe bug 495967 was the most recent fix in this area. I'd hope with that we are done here, no?

Still the test will be good to have :)
Comment 3 Eclipse Genie CLA 2019-11-07 15:17:59 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.