harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjanu...@apache.org
Subject svn commit: r633849 - /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/BandSet.java
Date Wed, 05 Mar 2008 14:00:56 GMT
Author: sjanuary
Date: Wed Mar  5 06:00:55 2008
New Revision: 633849

URL: http://svn.apache.org/viewvc?rev=633849&view=rev
Log:
Fix for HARMONY-5570 ([classlib][pack200] LineNumberTableAttribute being computed incorrectly)

Modified:
    harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/BandSet.java

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/BandSet.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/BandSet.java?rev=633849&r1=633848&r2=633849&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/BandSet.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/BandSet.java
Wed Mar  5 06:00:55 2008
@@ -130,6 +130,14 @@
                 }
             }
         }
+        if(codecUsed instanceof BHSDCodec) {
+            long cardinality = ((BHSDCodec)codecUsed).cardinality();
+            for (int i = 0; i < band.length; i++) {
+                while(band[i] > cardinality) {
+                    band[i] -= cardinality;
+                }
+            }
+        }
         return band;
     }
 



Mime
View raw message