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 14532 Details for
Bug 73762
Line ends not reset when setting a different source
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
org.eclipse.jdt.core.tests.compiler_patch73762.txt (text/plain), 1.41 KB, created by
Jerome Lanneluc
on 2004-09-14 07:00:07 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2004-09-14 07:00:07 EDT
Size:
1.41 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/InternalScannerTest.java >=================================================================== >RCS file: /data/cvs/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/InternalScannerTest.java,v >retrieving revision 1.3 >diff -u -r1.3 InternalScannerTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/InternalScannerTest.java 13 Jan 2004 15:48:53 -0000 1.3 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/InternalScannerTest.java 14 Sep 2004 10:53:47 -0000 >@@ -44,5 +44,25 @@ > assertEquals("Wrong token type", TerminalTokens.TokenNameEOF, token); > assertEquals("Wrong comment start", 0, scanner.commentStarts[0]); > assertEquals("Wrong comment start", -9, scanner.commentStops[0]); >+ } >+ >+ /** >+ * http://bugs.eclipse.org/bugs/show_bug.cgi?id=73762 >+ */ >+ public void test002() throws InvalidInputException { >+ Scanner scanner = new Scanner(); >+ scanner.recordLineSeparator = true; >+ scanner.setSource("a\nb\nc\n".toCharArray()); >+ int token = 0; >+ while (token != TerminalTokens.TokenNameEOF) { >+ token = scanner.getNextToken(); >+ } >+ scanner.setSource("a\nb\n".toCharArray()); >+ token = 0; >+ while (token != TerminalTokens.TokenNameEOF) { >+ token = scanner.getNextToken(); >+ } >+ assertEquals("Wrong number of line ends", 2, scanner.getLineEnds().length); > } >+ > }
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 73762
:
14531
| 14532