File tree Expand file tree Collapse file tree
org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 *******************************************************************************/
1414package org .eclipse .jdt .internal .debug .eval .ast .engine ;
1515
16- import java .util .List ;
17-
1816import org .eclipse .core .runtime .CoreException ;
1917import org .eclipse .jdt .core .IJavaProject ;
2018import org .eclipse .jdt .debug .core .IJavaDebugTarget ;
2321import org .eclipse .jdt .debug .core .IJavaReferenceType ;
2422import org .eclipse .jdt .debug .core .IJavaThread ;
2523import org .eclipse .jdt .debug .core .IJavaVariable ;
26- import org .eclipse .jdt .internal .debug .core .model .JDIClassType ;
27- import org .eclipse .jdt .internal .debug .core .model .JDIDebugTarget ;
28-
29- import com .sun .jdi .ClassType ;
30- import com .sun .jdi .ReferenceType ;
3124
3225public class JavaPrimitiveRuntimeContext extends AbstractRuntimeContext {
3326 /**
@@ -77,11 +70,7 @@ public IJavaPrimitiveValue getThisPrimitive() {
7770 */
7871 @ Override
7972 public IJavaReferenceType getReceivingType () throws CoreException {
80- JDIDebugTarget target = (JDIDebugTarget ) getThisPrimitive ().getJavaType ().getDebugTarget ();
81- List <ReferenceType > ref = target .getVM ().classesByName ("java.lang.Object" ); //$NON-NLS-1$
82- ClassType classType = (ClassType ) ref .get (0 );
83- JDIClassType jdiClassType = new JDIClassType (target , classType );
84- return jdiClassType ;
73+ return (IJavaReferenceType ) getThisPrimitive ().getJavaType ();
8574 }
8675
8776 /**
You can’t perform that action at this time.
0 commit comments