| Summary: | Formatter error when generic method has an argument | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.1 | ||
| Target Milestone: | 3.1 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
+1 for RC2 Fixed and released in HEAD. Regression tests added in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests.test581/582. Verified with N20050609-0010 + JDT/Core HEAD Verified for 3.1 RC2 using build I20050610-0010 |
Formatter doesn't work on the following code: import java.lang.reflect.Constructor; public class X { public <T extends X> Constructor<T> ctor() {return null;} static <T extends X> T f1() throws Exception{ return new X().<T>ctor().newInstance(new Object[0]); } static <T extends X> T f2() throws Exception { return f1(); } }