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

Bug 207969

Summary: HashtableOfInt does not accept big negative ints as keys
Product: [Eclipse Project] JDT Reporter: Maxime Daniel <maxime_daniel>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P5 CC: Olivier_Thomann
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard: stalebug

Description Maxime Daniel CLA 2007-10-30 09:03:34 EDT
Source based, v_821.

HashtableOfInt will not accept big negative integers as keys (for example, get(-1000) upon an HashtableOfInt of size 10 will raise an exception).

Need to consider whether we want to protect or document.

Note also that the class doc says 'non-zero int keys', which means that strictly negative ints should be OK, and suggests that zero is not accepted. The latter might need to be revisited as well (is this true? if so, why?).

(Our code currently never happens to call it with inappropriate parameters. Ran into this while making direct calls to internal APIs to test abnormal conditions.)
Comment 1 Olivier Thomann CLA 2009-06-26 11:23:19 EDT
Kent, I think we should just update the doc.
Comment 2 Eclipse Genie CLA 2019-07-26 12:40:28 EDT
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.