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 43794 Details for
Bug 119860
[evaluation] NPE from watch expression
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
bug119860.patch (text/plain), 1.64 KB, created by
Darin Wright
on 2006-06-07 16:48:55 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Darin Wright
Created:
2006-06-07 16:48:55 EDT
Size:
1.64 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.debug >Index: eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java,v >retrieving revision 1.68 >diff -u -r1.68 ASTInstructionCompiler.java >--- eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java 8 May 2006 20:23:02 -0000 1.68 >+++ eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java 7 Jun 2006 20:51:18 -0000 >@@ -18,6 +18,7 @@ > > import org.eclipse.jdt.core.Flags; > import org.eclipse.jdt.core.Signature; >+import org.eclipse.jdt.core.compiler.IProblem; > import org.eclipse.jdt.core.dom.ASTNode; > import org.eclipse.jdt.core.dom.ASTVisitor; > import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration; >@@ -2647,6 +2648,23 @@ > } > > IMethodBinding methodBinding= (IMethodBinding) node.getName().resolveBinding(); >+ if (methodBinding == null) { >+ // could be the receiver is not visible - for example a private field access from super class >+ ASTNode root = node.getRoot(); >+ if (root instanceof CompilationUnit) { >+ CompilationUnit cu = (CompilationUnit) root; >+ IProblem[] problems = cu.getProblems(); >+ for (int i = 0; i < problems.length; i++) { >+ IProblem problem = problems[i]; >+ setHasError(true); >+ addErrorMessage(problem.getMessage()); >+ } >+ } >+ } >+ >+ if (hasErrors()) { >+ return true; >+ } > > if (containsALocalType(methodBinding)) { > setHasError(true);
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 119860
: 43794