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 99271 Details for
Bug 231122
ASTNode.copySubtree(): NullPointerException if name or type is not set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to solve copySubtree issue
patch.txt (text/plain), 1.62 KB, created by
Etienne Pfister
on 2008-05-08 09:09:47 EDT
(
hide
)
Description:
Patch to solve copySubtree issue
Filename:
MIME Type:
Creator:
Etienne Pfister
Created:
2008-05-08 09:09:47 EDT
Size:
1.62 KB
patch
obsolete
>Index: FunctionDeclaration.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/FunctionDeclaration.java,v >retrieving revision 1.3 >diff -u -r1.3 FunctionDeclaration.java >--- FunctionDeclaration.java 30 Apr 2008 21:32:16 -0000 1.3 >+++ FunctionDeclaration.java 8 May 2008 12:32:41 -0000 >@@ -464,7 +464,9 @@ > } > result.setConstructor(isConstructor()); > result.setExtraDimensions(getExtraDimensions()); >- result.setName((SimpleName) getName().clone(target)); >+ if(getName() != null){ >+ result.setName((SimpleName) getName().clone(target)); >+ } > result.parameters().addAll( > ASTNode.copySubtrees(target, parameters())); > result.thrownExceptions().addAll( >Index: ClassInstanceCreation.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/ClassInstanceCreation.java,v >retrieving revision 1.5 >diff -u -r1.5 ClassInstanceCreation.java >--- ClassInstanceCreation.java 30 Apr 2008 21:32:15 -0000 1.5 >+++ ClassInstanceCreation.java 8 May 2008 12:32:41 -0000 >@@ -318,7 +318,9 @@ > } > if (this.ast.apiLevel >= AST.JLS3) { > result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments())); >- result.setType((Type) getType().clone(target)); >+ if(getType() != null){ >+ result.setType((Type) getType().clone(target)); >+ } > } > result.arguments().addAll(ASTNode.copySubtrees(target, arguments())); > result.setAnonymousClassDeclaration(
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 231122
:
99271
|
99603