incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r800572 - in /incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti: javaruntime/model/JLocalVariableTableEntry.java javaruntime/model/JMethod.java process/ImageFactoryImpl.java
Date Mon, 03 Aug 2009 21:25:33 GMT
Author: spoole
Date: Mon Aug  3 21:25:32 2009
New Revision: 800572

URL: http://svn.apache.org/viewvc?rev=800572&view=rev
Log:
updated jvmti project to support new API changes

Modified:
    incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JLocalVariableTableEntry.java
    incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMethod.java
    incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/process/ImageFactoryImpl.java

Modified: incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JLocalVariableTableEntry.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JLocalVariableTableEntry.java?rev=800572&r1=800571&r2=800572&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JLocalVariableTableEntry.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JLocalVariableTableEntry.java
Mon Aug  3 21:25:32 2009
@@ -6,7 +6,7 @@
 import javax.tools.diagnostics.image.DataUnavailable;
 import javax.tools.diagnostics.runtime.java.JavaVariable;
 
-public class JLocalVariableTableEntry  {
+public class JLocalVariableTableEntry implements JavaVariable {
 
 	public String gensig;
 	public String sig;
@@ -38,5 +38,11 @@
 	public int getStart() {
 		return start;
 	}
+
+	@Override
+	public Object getValue() {
+		// TODO Auto-generated method stub
+		return null;
+	}
 	
 }
\ No newline at end of file

Modified: incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMethod.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMethod.java?rev=800572&r1=800571&r2=800572&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMethod.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMethod.java
Mon Aug  3 21:25:32 2009
@@ -10,6 +10,7 @@
 import javax.tools.diagnostics.image.DataUnavailable;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaMethod;
+import javax.tools.diagnostics.runtime.java.JavaVariable;
 
 import org.apache.kato.common.ObjectMapList;
 
@@ -26,7 +27,7 @@
 	public int mods=0;
 	public JClass parent=null;
 	
-	private ObjectMapList<Integer,JLocalVariableTableEntry> localVars=null;
+	private ObjectMapList<Integer,JavaVariable> localVars=null;
 	public JMethod() {
 		
 	}
@@ -38,7 +39,7 @@
 
 	public void addLocalVariableTableEntry(JLocalVariableTableEntry entry) {
 		if(localVars==null) {
-			localVars=new ObjectMapList<Integer, JLocalVariableTableEntry>();
+			localVars=new ObjectMapList<Integer, JavaVariable>();
 		}
 		
 		localVars.put(entry.slot,entry);
@@ -79,18 +80,18 @@
 	}
 
 	@Override
-	public List getVariables() throws DataUnavailable {
+	public List<JavaVariable> getVariables() {
 		if(localVars==null) {
-			localVars=new ObjectMapList<Integer, JLocalVariableTableEntry>();
+			localVars=new ObjectMapList<Integer, JavaVariable>();
 		}
 		return localVars.values();
 	}
 
 	public JLocalVariableTableEntry getEntry(int slot) {
 		if(localVars==null) {
-			localVars=new ObjectMapList<Integer, JLocalVariableTableEntry>();
+			localVars=new ObjectMapList<Integer, JavaVariable>();
 		}
-		return localVars.get(slot);
+		return (JLocalVariableTableEntry) localVars.get(slot);
 			
 	}
 	

Modified: incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/process/ImageFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/process/ImageFactoryImpl.java?rev=800572&r1=800571&r2=800572&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/process/ImageFactoryImpl.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.jvmti/src/main/java/org/apache/kato/jvmti/process/ImageFactoryImpl.java
Mon Aug  3 21:25:32 2009
@@ -37,19 +37,19 @@
 	}
 
 	@Override
-	public int getKatoMajorVersion() {
+	public int getMajorVersion() {
 		// TODO Auto-generated method stub
 		return 0;
 	}
 
 	@Override
-	public int getKatoMinorVersion() {
+	public int getMinorVersion() {
 		// TODO Auto-generated method stub
-		return 0;
+		return 1;
 	}
 
 	@Override
-	public int getKatoModificationLevel() {
+	public int getModificationLevel() {
 		// TODO Auto-generated method stub
 		return 0;
 	}



Mime
View raw message