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 23611 Details for
Bug 100797
editor general failure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Proposed patch
patchjdtcore001.txt (text/plain), 2.45 KB, created by
David Audel
on 2005-06-21 09:05:08 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
David Audel
Created:
2005-06-21 09:05:08 EDT
Size:
2.45 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java,v >retrieving revision 1.47 >diff -u -r1.47 RecoveredMethod.java >--- compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java 24 Feb 2005 19:59:20 -0000 1.47 >+++ compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java 21 Jun 2005 12:52:56 -0000 >@@ -318,8 +318,7 @@ > * is about to disappear because of restarting recovery > */ > public void updateFromParserState(){ >- >- if(this.bodyStartsAtHeaderEnd()){ >+ if(this.bodyStartsAtHeaderEnd() && this.parent != null){ > Parser parser = this.parser(); > /* might want to recover arguments or thrown exceptions */ > if (parser.listLength > 0 && parser.astLengthPtr > 0){ // awaiting interface type references >@@ -375,19 +374,27 @@ > // to compute bodyStart, and thus used to set next checkpoint. > int count; > for (count = 0; count < argLength; count++){ >- Argument argument = (Argument)parser.astStack[argStart+count]; >- /* cannot be an argument if non final */ >- char[][] argTypeName = argument.type.getTypeName(); >- if ((argument.modifiers & ~AccFinal) != 0 >- || (argTypeName.length == 1 >- && CharOperation.equals(argTypeName[0], VoidBinding.sourceName()))){ >+ if(parser.astStack[argStart+count] instanceof Argument) { >+ Argument argument = (Argument)parser.astStack[argStart+count]; >+ /* cannot be an argument if non final */ >+ char[][] argTypeName = argument.type.getTypeName(); >+ if ((argument.modifiers & ~AccFinal) != 0 >+ || (argTypeName.length == 1 >+ && CharOperation.equals(argTypeName[0], VoidBinding.sourceName()))){ >+ parser.astLengthStack[parser.astLengthPtr] = count; >+ parser.astPtr = argStart+count-1; >+ parser.listLength = count; >+ parser.currentToken = 0; >+ break; >+ } >+ if (needUpdateRParenPos) parser.rParenPos = argument.sourceEnd + 1; >+ } else { > parser.astLengthStack[parser.astLengthPtr] = count; > parser.astPtr = argStart+count-1; > parser.listLength = count; > parser.currentToken = 0; > break; > } >- if (needUpdateRParenPos) parser.rParenPos = argument.sourceEnd + 1; > } > if (parser.listLength > 0 && parser.astLengthPtr > 0){ >
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 Raw
Actions:
View
Attachments on
bug 100797
:
23539
| 23611