JDK-2183605 : Reintroduce Scope.dble
  • Type: Backport
  • Backport of: JDK-6460352
  • Component: tools
  • Sub-Component: javac
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2009-09-30
  • Updated: 2012-10-03
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6-poolResolved 7 b118Fixed
Comments
EVALUATION The problem is that the scope chains are used to contain entries with the same name, and entries with different names with the same hash value. When the hash table needs to be expanded, the names are not correctly mapped into the new table. The proposed fix is to use "open addressing" such that each hash bucket only contains a single entry (or in the case here, entries with the same name.) Names with the same hash value use a secondary hash to find an available empty bucket. More details here: http://en.wikipedia.org/wiki/Open_addressing
27-10-2010

EVALUATION Just need to do a deep copy of entries in dupUnshared. Best way to test this is to reduce the initial size of scopes, eg. 4. With such a value, langtools itself fails to compile.
30-09-2009