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 21002 Details for
Bug 93727
Code Formatter fails with Method Parameter Annotations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD on org.eclipse.jdt.core.tests.model
patch_tests_93727.txt (text/plain), 3.24 KB, created by
Olivier Thomann
on 2005-05-11 15:18:39 EDT
(
hide
)
Description:
Apply on HEAD on org.eclipse.jdt.core.tests.model
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-05-11 15:18:39 EDT
Size:
3.24 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java,v >retrieving revision 1.158 >diff -u -r1.158 FormatterRegressionTests.java >--- src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 13 Apr 2005 14:18:55 -0000 1.158 >+++ src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 11 May 2005 19:17:55 -0000 >@@ -62,7 +62,7 @@ > return suite; > } > junit.framework.TestSuite suite = new Suite(FormatterRegressionTests.class.getName()); >- suite.addTest(new FormatterRegressionTests("test574")); //$NON-NLS-1$ >+ suite.addTest(new FormatterRegressionTests("test575")); //$NON-NLS-1$ > return suite; > } > >@@ -8027,4 +8027,27 @@ > DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); > runTest(codeFormatter, "test574", "A.java", CodeFormatter.K_JAVA_DOC, false);//$NON-NLS-1$ //$NON-NLS-2$ > } >+ >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=77809 >+ public void test575() { >+ Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); >+ DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); >+ Hashtable javaCoreOptions = JavaCore.getOptions(); >+ try { >+ Hashtable newJavaCoreOptions = JavaCore.getOptions(); >+ newJavaCoreOptions.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5); >+ newJavaCoreOptions.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); >+ newJavaCoreOptions.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); >+ JavaCore.setOptions(newJavaCoreOptions); >+ >+ Map compilerOptions = new HashMap(); >+ compilerOptions.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5); >+ compilerOptions.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); >+ compilerOptions.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); >+ DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences, compilerOptions); >+ runTest(codeFormatter, "test575", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ >+ } finally { >+ JavaCore.setOptions(javaCoreOptions); >+ } >+ } > } >Index: workspace/Formatter/test575/A_in.java >=================================================================== >RCS file: workspace/Formatter/test575/A_in.java >diff -N workspace/Formatter/test575/A_in.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test575/A_in.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,5 @@ >+public class A >+{ public Object foo( @Ann("parameter") Object parameter ) { >+ return parameter; >+ } >+} >Index: workspace/Formatter/test575/A_out.java >=================================================================== >RCS file: workspace/Formatter/test575/A_out.java >diff -N workspace/Formatter/test575/A_out.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test575/A_out.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,6 @@ >+public class A { >+ public Object foo(@Ann("parameter") >+ Object parameter) { >+ return parameter; >+ } >+}
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 93727
:
21001
| 21002