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 83964 Details for
Bug 211180
Statements recovery fails inside annotation of a local variable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
bug211180_001.txt (text/plain), 3.66 KB, created by
David Audel
on 2007-11-28 06:02:53 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
David Audel
Created:
2007-11-28 06:02:53 EST
Size:
3.66 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/parser/StatementRecoveryTest_1_5.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/StatementRecoveryTest_1_5.java,v >retrieving revision 1.2 >diff -u -r1.2 StatementRecoveryTest_1_5.java >--- src/org/eclipse/jdt/core/tests/compiler/parser/StatementRecoveryTest_1_5.java 21 Nov 2007 14:11:21 -0000 1.2 >+++ src/org/eclipse/jdt/core/tests/compiler/parser/StatementRecoveryTest_1_5.java 28 Nov 2007 11:02:13 -0000 >@@ -316,4 +316,67 @@ > expectedFullWithStatementRecoveryUnitToString, > testName); > } >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=211180 >+public void test0002() { >+ >+ String s = >+ "package a; \n" >+ + "public class X { \n" >+ + " void foo() { \n" >+ + " # \n" >+ + " @MyAnnot(value=) \n" >+ + " int i; ` \n" >+ + " } \n" >+ + "} \n"; >+ >+ String expectedDietUnitToString = >+ "package a;\n" + >+ "public class X {\n" + >+ " public X() {\n" + >+ " }\n" + >+ " void foo() {\n" + >+ " }\n" + >+ "}\n"; >+ >+ String expectedDietWithStatementRecoveryUnitToString = >+ expectedDietUnitToString; >+ >+ String expectedDietPlusBodyUnitToString = >+ "package a;\n" + >+ "public class X {\n" + >+ " public X() {\n" + >+ " super();\n" + >+ " }\n" + >+ " void foo() {\n" + >+ " }\n" + >+ "}\n"; >+ >+ String expectedDietPlusBodyWithStatementRecoveryUnitToString = >+ "package a;\n" + >+ "public class X {\n" + >+ " public X() {\n" + >+ " super();\n" + >+ " }\n" + >+ " void foo() {\n" + >+ " @MyAnnot(value = $missing$) int i;\n" + >+ " }\n" + >+ "}\n"; >+ >+ String expectedFullUnitToString = >+ expectedDietUnitToString; >+ >+ String expectedFullWithStatementRecoveryUnitToString = >+ expectedFullUnitToString; >+ >+ String testName = "<test>"; >+ checkParse( >+ s.toCharArray(), >+ expectedDietUnitToString, >+ expectedDietWithStatementRecoveryUnitToString, >+ expectedDietPlusBodyUnitToString, >+ expectedDietPlusBodyWithStatementRecoveryUnitToString, >+ expectedFullUnitToString, >+ expectedFullWithStatementRecoveryUnitToString, >+ testName); >+} > } >#P org.eclipse.jdt.core >Index: grammar/java.g >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/grammar/java.g,v >retrieving revision 1.7 >diff -u -r1.7 java.g >--- grammar/java.g 6 Nov 2007 16:06:37 -0000 1.7 >+++ grammar/java.g 28 Nov 2007 11:02:15 -0000 >@@ -2199,6 +2199,7 @@ > /:$compliance 1.5:/ > MemberValue -> MemberValueArrayInitializer > /:$readableName MemberValue:/ >+/:$recovery_template Identifier:/ > /:$compliance 1.5:/ > > MemberValueArrayInitializer ::= EnterMemberValueArrayInitializer '{' PushLeftBrace MemberValues ',' '}' >Index: compiler/org/eclipse/jdt/internal/compiler/parser/parser23.rsc >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/parser23.rsc,v >retrieving revision 1.10 >diff -u -r1.10 parser23.rsc >Binary files /tmp/cvsbORU7U and parser23.rsc differ >Index: compiler/org/eclipse/jdt/internal/compiler/parser/parser22.rsc >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/parser22.rsc,v >retrieving revision 1.13 >diff -u -r1.13 parser22.rsc >Binary files /tmp/cvs46hbbX and parser22.rsc differ
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 211180
: 83964