Summary: | [1.5][compiler] Make optional warning from compiler error for generics clash bug 289247 | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Mark Hoffmann <m.hoffmann> |
Component: | Core | Assignee: | Srikanth Sankaran <srikanth_sankaran> |
Status: | VERIFIED WONTFIX | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | daniel_megert, m.hoffmann, Olivier_Thomann |
Version: | 3.6 | ||
Target Milestone: | 3.7 M1 | ||
Hardware: | PC | ||
OS: | All | ||
See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=6182950 | ||
Whiteboard: |
Description
Mark Hoffmann
2010-07-15 08:45:25 EDT
I understand your problem, but if the fix is backported to a JDK6 you will have the same problem with javac. Srikanth, I let you decide on this one. I don't like to introduce options to reproduce bugs. (In reply to comment #1) > I understand your problem, but if the fix is backported to a JDK6 you will have > the same problem with javac. > Srikanth, I let you decide on this one. I don't like to introduce options to > reproduce bugs. My sentiments are along the same lines. I think the problem is better addressed by adjusting the source code, even if that route is painful currently (sorry), it is an investment that needs to be made anyways at some point in future. Thank you for your comments. After some thinking this weekend, I the optinion that you're right. So I take back this feature request. But can you tell me how complex it is, to create a own patched version of the JDT? I would patch the code and could provide it in our company. But I don't know where I have to look for the right code position. Thank you, Mark > But can you tell me how complex it is, to create a own patched version of the > JDT? I would patch the code and could provide it in our company. But I don't > know where I have to look for the right code position. You can start with taking a look at the source & test patches attached to bug #289247. You will want to also test your changes : org.eclipse.jdt.core.tests.RunCompilerTests is the entry point for bulk of compiler related tests. You should also run org.eclipse.jdt.core.tests.RunBuilderTests, org.eclipse.jdt.core.tests.RunDOMTests,org.eclipse.jdt.core.tests.RunFormatterTests, org.eclipse.jdt.core.tests.RunModelTests etc. Mark, patching the JDT is expensive and with each new version you have to do this again. I don't know how you ended up with lots of such errors (generated code) but it's definitely better to fix them earlier than later. Verified. |