Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 162695 Details for
Bug 279390
[fiximprove][debug]: Cannot debug static variables when running debugger
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
arrayalloc.patch (text/plain), 2.12 KB, created by
Darin Wright
on 2010-03-22 12:44:35 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Darin Wright
Created:
2010-03-22 12:44:35 EDT
Size:
2.12 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.debug >Index: eval/org/eclipse/jdt/internal/debug/eval/ast/engine/AbstractRuntimeContext.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/AbstractRuntimeContext.java,v >retrieving revision 1.9 >diff -u -r1.9 AbstractRuntimeContext.java >--- eval/org/eclipse/jdt/internal/debug/eval/ast/engine/AbstractRuntimeContext.java 22 Mar 2010 16:18:00 -0000 1.9 >+++ eval/org/eclipse/jdt/internal/debug/eval/ast/engine/AbstractRuntimeContext.java 22 Mar 2010 16:43:49 -0000 >@@ -13,11 +13,13 @@ > import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.IStatus; > import org.eclipse.core.runtime.Status; >+import org.eclipse.jdi.internal.TypeImpl; > import org.eclipse.jdt.core.IJavaProject; > import org.eclipse.jdt.debug.core.IJavaClassObject; > import org.eclipse.jdt.debug.core.IJavaClassType; > import org.eclipse.jdt.debug.core.IJavaFieldVariable; > import org.eclipse.jdt.debug.core.IJavaObject; >+import org.eclipse.jdt.debug.core.IJavaReferenceType; > import org.eclipse.jdt.debug.core.IJavaType; > import org.eclipse.jdt.debug.core.IJavaValue; > import org.eclipse.jdt.internal.debug.core.JDIDebugPlugin; >@@ -101,11 +103,15 @@ > * @throws CoreException if loading fails > */ > protected IJavaClassObject classForName(String qualifiedName, IJavaObject loader) throws CoreException { >- IJavaType[] types = getVM().getJavaTypes(qualifiedName); >+ String tname = qualifiedName; >+ if (tname.startsWith("[")) { //$NON-NLS-1$ >+ tname = TypeImpl.signatureToName(qualifiedName); >+ } >+ IJavaType[] types = getVM().getJavaTypes(tname); > if (types != null && types.length > 0) { > // find the one with the right class loader > for (int i = 0; i < types.length; i++) { >- IJavaClassType type = (IJavaClassType) types[i]; >+ IJavaReferenceType type = (IJavaReferenceType) types[i]; > IJavaObject cloader = type.getClassLoaderObject(); > if (isCompatibleLoader(loader, cloader)) { > return type.getClassObject();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279390
:
162678
|
162688
| 162695