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 23319 Details for
Bug 100302
StackOverflowError during completion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Regression test
patchcompiler001.txt (text/plain), 3.98 KB, created by
David Audel
on 2005-06-16 09:06:40 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
David Audel
Created:
2005-06-16 09:06:40 EDT
Size:
3.98 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/parser/GenericsCompletionParserTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/GenericsCompletionParserTest.java,v >retrieving revision 1.16 >diff -u -r1.16 GenericsCompletionParserTest.java >--- src/org/eclipse/jdt/core/tests/compiler/parser/GenericsCompletionParserTest.java 3 Jun 2005 14:01:05 -0000 1.16 >+++ src/org/eclipse/jdt/core/tests/compiler/parser/GenericsCompletionParserTest.java 16 Jun 2005 10:21:14 -0000 >@@ -8827,4 +8827,130 @@ > expectedReplacedSource, > "diet ast"); > } >+/* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=100302 >+ */ >+public void test0202(){ >+ String str = >+ "public class Test {\n" + >+ " void bar() {\n" + >+ " for (Entry entry : (Set<Entry>) var) {\n" + >+ " entry.\n" + >+ " }\n" + >+ " }\n" + >+ "}\n"; >+ >+ String completeBehind = "entry."; >+ int cursorLocation = str.indexOf("entry.") + completeBehind.length() - 1; >+ String expectedCompletionNodeToString = "<NONE>"; >+ String expectedParentNodeToString = "<NONE>"; >+ String completionIdentifier = "<NONE>"; >+ String expectedReplacedSource = "<NONE>"; >+ String expectedUnitDisplayString = >+ "public class Test {\n" + >+ " public Test() {\n" + >+ " }\n" + >+ " void bar() {\n" + >+ " }\n" + >+ "}\n"; >+ >+ checkDietParse( >+ str.toCharArray(), >+ cursorLocation, >+ expectedCompletionNodeToString, >+ expectedParentNodeToString, >+ expectedUnitDisplayString, >+ completionIdentifier, >+ expectedReplacedSource, >+ "diet ast"); >+ >+ expectedCompletionNodeToString = "<CompleteOnName:entry.>"; >+ expectedParentNodeToString = "<NONE>"; >+ completionIdentifier = ""; >+ expectedReplacedSource = "entry."; >+ expectedUnitDisplayString = >+ "public class Test {\n" + >+ " public Test() {\n" + >+ " }\n" + >+ " void bar() {\n" + >+ " Entry entry;\n" + >+ " {\n" + >+ " <CompleteOnName:entry.>;\n" + >+ " }\n" + >+ " }\n" + >+ "}\n"; >+ >+ checkMethodParse( >+ str.toCharArray(), >+ cursorLocation, >+ expectedCompletionNodeToString, >+ expectedParentNodeToString, >+ expectedUnitDisplayString, >+ completionIdentifier, >+ expectedReplacedSource, >+ "full ast"); >+} >+/* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=100302 >+ */ >+public void test0203(){ >+ String str = >+ "public class Test {\n" + >+ " void bar() {\n" + >+ " for (Entry entry : (ZZZ<YYY>.Set<Entry>) var) {\n" + >+ " entry.\n" + >+ " }\n" + >+ " }\n" + >+ "}\n"; >+ >+ String completeBehind = "entry."; >+ int cursorLocation = str.indexOf("entry.") + completeBehind.length() - 1; >+ String expectedCompletionNodeToString = "<NONE>"; >+ String expectedParentNodeToString = "<NONE>"; >+ String completionIdentifier = "<NONE>"; >+ String expectedReplacedSource = "<NONE>"; >+ String expectedUnitDisplayString = >+ "public class Test {\n" + >+ " public Test() {\n" + >+ " }\n" + >+ " void bar() {\n" + >+ " }\n" + >+ "}\n"; >+ >+ checkDietParse( >+ str.toCharArray(), >+ cursorLocation, >+ expectedCompletionNodeToString, >+ expectedParentNodeToString, >+ expectedUnitDisplayString, >+ completionIdentifier, >+ expectedReplacedSource, >+ "diet ast"); >+ >+ expectedCompletionNodeToString = "<CompleteOnName:entry.>"; >+ expectedParentNodeToString = "<NONE>"; >+ completionIdentifier = ""; >+ expectedReplacedSource = "entry."; >+ expectedUnitDisplayString = >+ "public class Test {\n" + >+ " public Test() {\n" + >+ " }\n" + >+ " void bar() {\n" + >+ " Entry entry;\n" + >+ " {\n" + >+ " <CompleteOnName:entry.>;\n" + >+ " }\n" + >+ " }\n" + >+ "}\n"; >+ >+ checkMethodParse( >+ str.toCharArray(), >+ cursorLocation, >+ expectedCompletionNodeToString, >+ expectedParentNodeToString, >+ expectedUnitDisplayString, >+ completionIdentifier, >+ expectedReplacedSource, >+ "full ast"); >+} > }
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 100302
:
23318
| 23319