Summary: | [1.7][compiler] Stackoverflow error if compiled in 1.7 compliance mode | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Srikanth Sankaran <srikanth_sankaran> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | jarthana, srikanth_sankaran |
Version: | 3.7 | ||
Target Milestone: | 3.7 M4 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Whiteboard: |
Description
Olivier Thomann
2010-11-09 11:02:27 EST
I'll take a look. I believe this is the intended behavior deliberately brought about by the fix for bug 207935. See that code compiled with javac7 also exhibits the same symptom. Bug 207935's duplicate bug 150655 has some rationale for the expected behavior including documenting that the stack overflow is expected. Adjusted the test to expect stack overflow error in 1.7+ modes. Search the method org.eclipse.jdt.internal.compiler.lookup.Scope.computeCompatibleMethod(MethodBinding, TypeBinding[], InvocationSite) for reference to JDK7 to see the code that triggers the different behavior. Verified for 3.7M4 by code inspection |