harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjanu...@apache.org
Subject svn commit: r775084 - in /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200: CPMethodOrField.java CPNameAndType.java
Date Fri, 15 May 2009 10:58:53 GMT
Author: sjanuary
Date: Fri May 15 10:58:52 2009
New Revision: 775084

URL: http://svn.apache.org/viewvc?rev=775084&view=rev
Log:
Pack200 - complete implementation of BcBands

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

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/CPMethodOrField.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/CPMethodOrField.java?rev=775084&r1=775083&r2=775084&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/CPMethodOrField.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/CPMethodOrField.java
Fri May 15 10:58:52 2009
@@ -20,7 +20,8 @@
 
     private final CPClass className;
     private final CPNameAndType nameAndType;
-    private int indexInClass;
+    private int indexInClass = -1;
+    private int indexInClassForConstructor = -1;
 
     public CPMethodOrField(CPClass className, CPNameAndType nameAndType) {
         this.className = className;
@@ -79,4 +80,13 @@
     public void setIndexInClass(int index) {
         indexInClass = index;
     }
+
+    public int getIndexInClassForConstructor() {
+        return indexInClassForConstructor;
+    }
+
+    public void setIndexInClassForConstructor(int index) {
+        indexInClassForConstructor = index;
+    }
+
 }
\ No newline at end of file

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/CPNameAndType.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/CPNameAndType.java?rev=775084&r1=775083&r2=775084&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/CPNameAndType.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/CPNameAndType.java
Fri May 15 10:58:52 2009
@@ -59,6 +59,10 @@
         return name.getIndex();
     }
 
+    public String getName() {
+        return name.getUnderlyingString();
+    }
+
     public int getTypeIndex() {
         return signature.getIndex();
     }



Mime
View raw message