JDK-6683438 : Bad regression test for CR 6611449
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2008-04-02
  • Updated: 2011-05-17
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b27Fixed
Description
There is an error in the test case for CR 6611449.  The test case defines two methods that are not used at all.  I think the two method definitions should be spelled the same way as the methods that are invoked. Either that or remove the two unused method definitions.


*+public class T6611449<S> { *
*+ *
*+ T6611449() {this(1);} *
*+ *
*+ <T extends S> T6611449(T t1) {this(t1, 1);} *
*+ *
*+ <T extends S> T6611449(T t1, T t2) {} *
*+ *
*+ <T extends S> void m(T t1) {} *
*+ *
*+ <T extends S> void m(T t1, T t2) {} *
*+ *
*+ void test() { *
*+ m1(1); *
*+ m2(1, 1); *
*+ } *
*+}*

The bad test in under

test/tools/javac/generics/inference/6611449/T6611449.java

the golden file should probably be updated too

Comments
SUGGESTED FIX see http://sa.sfbay.sun.com/projects/langtools_data/7/6683438/
09-04-2008

EVALUATION Will fix this.
02-04-2008