SF.net SVN: jikesrvm:[15777] rvmroot/trunk/tools/bootImageWriter/src/org/ jikesrvm/tools/bootImageWriter/BootImageWriter.java

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: jikesrvm:[15777] rvmroot/trunk/tools/bootImageWriter/src/org/ jikesrvm/tools/bootImageWriter/BootImageWriter.java

by dgrove-oss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 15777
          http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=15777&view=rev
Author:   dgrove-oss
Date:     2009-09-08 13:46:56 +0000 (Tue, 08 Sep 2009)

Log Message:
-----------
knownStaticField for java.util.HashMap.  
This field is present in the HashMap used in IBM Java 6,
so I didn't realize that it wasn't there in other class libs.

Modified Paths:
--------------
    rvmroot/trunk/tools/bootImageWriter/src/org/jikesrvm/tools/bootImageWriter/BootImageWriter.java

Modified: rvmroot/trunk/tools/bootImageWriter/src/org/jikesrvm/tools/bootImageWriter/BootImageWriter.java
===================================================================
--- rvmroot/trunk/tools/bootImageWriter/src/org/jikesrvm/tools/bootImageWriter/BootImageWriter.java 2009-09-04 22:05:07 UTC (rev 15776)
+++ rvmroot/trunk/tools/bootImageWriter/src/org/jikesrvm/tools/bootImageWriter/BootImageWriter.java 2009-09-08 13:46:56 UTC (rev 15777)
@@ -2415,7 +2415,12 @@
       } else if (jdkType.equals(java.lang.Short.class)) {
           throw new Error("Unknown field in java.lang.Short " + rvmFieldName + " " + rvmFieldType);
       } else if (jdkType.equals(java.util.HashMap.class)) {
-        throw new Error("Unknown field in java.util.HashMap " + rvmFieldName + " " + rvmFieldType);
+        if (rvmFieldName.equals("DEFAULT_SIZE") && rvmFieldType.isIntType()) {
+          Statics.setSlotContents(rvmFieldOffset, 16);
+          return true;
+        } else {
+          throw new Error("Unknown field in java.util.HashMap " + rvmFieldName + " " + rvmFieldType);
+        }
       } else if (jdkType.equals(java.util.AbstractMap.class)) {
         throw new Error("Unknown field in java.util.AbstractMap " + rvmFieldName + " " + rvmFieldType);
       } else if (jdkType.equals(java.lang.ref.ReferenceQueue.class)) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-commits mailing list
Jikesrvm-commits@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-commits