Bug 540416 - [memory] Avoid zero-length Annotation arrays
Summary: [memory] Avoid zero-length Annotation arrays
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.10   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-24 01:31 EDT by Karsten Thoms CLA
Modified: 2020-09-09 19:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Thoms CLA 2018-10-24 01:31:42 EDT
In a memory snapshot the top-most zero-length array was for type Annotation. Most places in the parser already properly guard creation of arrays for that type, but I found 3 places where it isn't (searched for Write access to AbstractVariableDeclaration#annotations).
Comment 1 Eclipse Genie CLA 2018-10-24 01:34:45 EDT
New Gerrit change created: https://git.eclipse.org/r/131392