#include <java/lang/Double.h>
#include <java/io/StringWriter.h>
#include <java/io/PrintWriter.h>
-#include <java/util/Hashtable.h>
+#include <java/util/HashMap.h>
#include <java/util/Date.h>
#include <java/util/Calendar.h>
#include <java/lang/System.h>
static java::lang::Thread *nextThread;
-static java::util::Hashtable *objects;
+static java::util::HashMap *objects;
static void store_reference(jobject object) {
JvAttachCurrentThread(NULL, NULL);
nextThread = new java::lang::Thread();
- objects = new java::util::Hashtable();
+ objects = new java::util::HashMap();
- java::util::Hashtable *props = (java::util::Hashtable *)
+ java::util::HashMap *props = (java::util::HashMap *)
java::lang::System::getProperties();
props->put(JvNewStringUTF("inRuby"), objects);
// a Hashtable or HashMap as the ArrayList will preserve the\r
// ordering of the items added to it; the first item added will\r
// be the first item recovered and the last item added, the last\r
- // item recovered.\r
+ // item recovered. Alternatively, a LinkedHashMap could be used\r
+ // to preserve order.\r
row = sheet.createRow(4);\r
cell = row.createCell(0);\r
multiLevelListItems = new ArrayList<MultiLevelListItem>();\r