Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6683438
Votes 0
Synopsis Bad regression test for CR 6611449
Category java:compiler
Reported Against
Release Fixed 7(b27)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 02-APR-2008
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
Posted Date : 2008-04-02 16:23:58.0
Work Around
N/A
Evaluation
Will fix this.
Posted Date : 2008-04-02 16:23:58.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang