This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 95100 [details] screenshot of how the Variables presents the hash incorrectly A simple Ruby program. It creates a hash (assoc. array), and it adds 2 entries to the hash. Both entries have value 'true' but different keys. After adding the 1st entry with key=0 the Variables debugger view shows the entry correctly. But after adding the 2nd entry with key=1 the Variables view shows the hash incorrectly - it shows 2 entries, both with same key '1'. Ruby actually works fine, because when I print the hash in a loop, it shows up correctly. If I use a string (for example 'cuckoo') as a value instead of true, then Variables view works fine. ------------------- hash= Hash.new # When debugging the following lines, # You get the same behaviour when you use string keys instead of numbers. hash[0]= true hash[1]= true hash[0]= true # If you use strings as values instead of true, then debugging works correctly: #hash[0]= 'cuckoo' #hash[1]= 'cuckoo' #hash[0]= 'cuckoo' hash.each do |key, value| $stderr.print key.to_s+ " => " +value.to_s+ "\n" end ------------------- I'm using the native Ruby, not JRuby, with fast debugger gem. Ruby 1.8.6-p287 Product Version: NetBeans IDE 6.8 (Build 200912041610) Java: 1.5.0_22; Java HotSpot(TM) Client VM 1.5.0_22-147 System: Mac OS X version 10.5.8 running on i386 debugger gems: ruby-debug (0.10.3) ruby-debug-base (0.10.3) ruby-debug-ide (0.4.9)