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 83280 Details for
Bug 207567
HTML2TextReader reader get stuck in infinite loop
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test case
clipboard.txt (text/plain), 1.68 KB, created by
George Lindholm
on 2007-11-19 15:59:33 EST
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
George Lindholm
Created:
2007-11-19 15:59:33 EST
Size:
1.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.tests >Index: src/org/eclipse/mylyn/tasks/tests/web/Html2TextReaderTest.java >=================================================================== >RCS file: src/org/eclipse/mylyn/tasks/tests/web/Html2TextReaderTest.java >diff -N src/org/eclipse/mylyn/tasks/tests/web/Html2TextReaderTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/tasks/tests/web/Html2TextReaderTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,33 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.tasks.tests.web; >+ >+import java.io.IOException; >+import java.io.Reader; >+import java.io.StringReader; >+ >+import junit.framework.TestCase; >+import org.eclipse.mylyn.internal.jira.ui.html.HTML2TextReader; >+public class Html2TextReaderTest extends TestCase { >+ >+ public void testCpuLoop() { >+ String text = "Spurious <?xml version=\"1.0\" encoding=\"UTF-8\"?> in generated <head> section"; >+ Reader stringReader = new StringReader(text); >+ >+ HTML2TextReader html2TextReader = new HTML2TextReader(stringReader, null); >+ try { >+ char[] chars = new char[text.length()]; >+ int len = html2TextReader.read(chars, 0, text.length()); >+ assertTrue(true); >+ } catch (IOException e) { >+ } >+ assertTrue(false); >+ >+ } >+}
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 207567
: 83280 |
83290
|
83291
|
83298
|
83299