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 74955 Details for
Bug 197169
Formatter expands @ in annotation in javadoc, creating invalid tag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Add regression test
197169-test.diff (text/plain), 1.36 KB, created by
Matt McCutchen
on 2007-07-30 13:55:50 EDT
(
hide
)
Description:
Add regression test
Filename:
MIME Type:
Creator:
Matt McCutchen
Created:
2007-07-30 13:55:50 EDT
Size:
1.36 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >--- src/org/eclipse/jdt/core/tests/formatter/comment/JavaDocTestCase.java >+++ src/org/eclipse/jdt/core/tests/formatter/comment/JavaDocTestCase.java >@@ -822,4 +822,37 @@ > String result=testFormat(input, options); > assertEquals(expected, result); > } >+ >+ public void test197169() { >+ Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); >+ >+ String input = "/**" + DELIMITER + >+ " * <pre>" + DELIMITER + >+ " * @Anno1 class Foo {" + DELIMITER + >+ " * @Anno1 class Bar {}" + DELIMITER + >+ " * }" + DELIMITER + >+ " * @Anno2(@Anno1) class Baz {}" + DELIMITER + >+ " * </pre>" + DELIMITER + >+ " */"; >+ >+ String expected = "/**" + DELIMITER + >+ " * <pre>" + DELIMITER + >+ // Initial @ left alone. >+ " * @Anno1" + DELIMITER + >+ " * class Foo {" + DELIMITER + >+ // Left alone even after whitespace. >+ " * @Anno1" + DELIMITER + >+ " * class Bar {" + DELIMITER + >+ " * }" + DELIMITER + >+ " * }" + DELIMITER + >+ " * " + DELIMITER + >+ // Non-initial @ expanded. >+ " * @Anno2(@Anno1)" + DELIMITER + >+ " * class Baz {" + DELIMITER + >+ " * }" + DELIMITER + >+ " * </pre>" + DELIMITER + >+ " */"; >+ String result=testFormat(input, options); >+ assertEquals(expected, result); >+ } > }
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 197169
:
74826
| 74955