Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-04-22 14:33:57 +0000
committerStephan Herrmann2010-04-22 14:33:57 +0000
commit2408c32660aa504695f03b6649d0e86c24be9569 (patch)
tree591f19a0b5b11aaab15852c5d46c6cb5e0554a36 /testplugins/org.eclipse.objectteams.otdt.debug.tests
parent6cd4f69e8a0949d33c9bb5f18ddd872cbf30c967 (diff)
downloadorg.eclipse.objectteams-2408c32660aa504695f03b6649d0e86c24be9569.tar.gz
org.eclipse.objectteams-2408c32660aa504695f03b6649d0e86c24be9569.tar.xz
org.eclipse.objectteams-2408c32660aa504695f03b6649d0e86c24be9569.zip
Fix regression in SourceDebugExtensionTest()
- don't fiddle with a Repository which won't find the file, but directly go for a ClassParser.
Diffstat (limited to 'testplugins/org.eclipse.objectteams.otdt.debug.tests')
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.debug.tests/src/org/eclipse/objectteams/otdt/debug/tests/ClassAttributeReader.java27
1 files changed, 10 insertions, 17 deletions
diff --git a/testplugins/org.eclipse.objectteams.otdt.debug.tests/src/org/eclipse/objectteams/otdt/debug/tests/ClassAttributeReader.java b/testplugins/org.eclipse.objectteams.otdt.debug.tests/src/org/eclipse/objectteams/otdt/debug/tests/ClassAttributeReader.java
index 76d77ef8e..fdc80aa9a 100644
--- a/testplugins/org.eclipse.objectteams.otdt.debug.tests/src/org/eclipse/objectteams/otdt/debug/tests/ClassAttributeReader.java
+++ b/testplugins/org.eclipse.objectteams.otdt.debug.tests/src/org/eclipse/objectteams/otdt/debug/tests/ClassAttributeReader.java
@@ -20,16 +20,13 @@
**********************************************************************/
package org.eclipse.objectteams.otdt.debug.tests;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Hashtable;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Vector;
-
-import org.eclipse.core.runtime.IPath;
-
-import org.apache.bcel.Repository;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Vector;
+
import org.apache.bcel.classfile.Attribute;
import org.apache.bcel.classfile.ClassFormatException;
import org.apache.bcel.classfile.ClassParser;
@@ -38,6 +35,7 @@ import org.apache.bcel.classfile.ConstantUtf8;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.Method;
import org.apache.bcel.classfile.Unknown;
+import org.eclipse.core.runtime.IPath;
/**
* @author ike
@@ -61,10 +59,8 @@ public class ClassAttributeReader
public ClassAttributeReader(IPath classFilePath)
{
try {
- if ((_javaclass = Repository.lookupClass(classFilePath.toOSString())) == null) {
- _javaclass = new ClassParser(classFilePath.toOSString()).parse(); // May throw
- readAndStoreAttributes();
- }
+ _javaclass = new ClassParser(classFilePath.toOSString()).parse(); // May throw
+ readAndStoreAttributes();
}
catch (ClassFormatError e)
{
@@ -78,9 +74,6 @@ public class ClassAttributeReader
} catch (ClassFormatException e) {
_error = e.getMessage();
e.printStackTrace();
- } catch (ClassNotFoundException e) {
- _error = e.getMessage();
- e.printStackTrace();
}
}

Back to the top