JDK-6862521 : closed/javax/swing/JTable/sorting/UnitTest.java test fails with invalid inferred types.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2009-07-21
  • Updated: 2011-01-19
  • Resolved: 2009-09-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
7Resolved
Related Reports
Duplicate :  
Relates :  
Description
Bug Info
========
closed/javax/swing/JTable/sorting/UnitTest.java test fails while testing with jdk7 pit b66.It works fine till jdk7-b65.

JDK-Info
=========

java version "1.7.0-internal"
Java(TM) SE Runtime Environment (build 1.7.0-internal-administrator_2009_07_14_2
2_30-b00)
Java HotSpot(TM) Client VM (build 16.0-b05, mixed mode)

Error log
==========
invalid inferred types for M#1,I#4; actual arguments do not conforms to inferred formal arguments
                RowFilter.orFilter(myList);
                                  ^
    required: Iterable<? extends RowFilter<? super Object,? super Object>>
    found: List<RowFilter<? super TableModel,Object>>
  where M#1,M#2,I#3,I#4 are type-variables:
    M#1 extends Object declared in method <M#2,I#3>orFilter(Iterable<? extends RowFilter<? super M#2,? super I#3>>)
    M#2 extends Object declared in method <M#2,I#3>orFilter(Iterable<? extends RowFilter<? super M#2,? super I#3>>)
    I#3 extends Object declared in method <M#2,I#3>orFilter(Iterable<? extends RowFilter<? super M#2,? super I#3>>)
    I#4 extends Object declared in method <M#2,I#3>orFilter(Iterable<? extends RowFilter<? super M#2,? super I#3>>)
Note: UnitTest.java uses unchecked or unsafe operations.

Please find the attached log file for more details on issue.

Comments
EVALUATION Here is the note from the compiler team: The simplest way to fix the test is to replace the following line RowFilter<? super TableModel,Object> orFilter = RowFilter.orFilter(myList); with RowFilter<? super TableModel,Object> orFilter = RowFilter.<TableModel, Object>orFilter(myList);
15-09-2009