JDK-6260638 : isPrinting() is final
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-04-25
  • Updated: 2017-05-16
  • Resolved: 2005-06-01
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 6
6 b39Fixed
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b32)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b32, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
The new isPrinting() method is final and so can not be overwritten. Our application uses a third party graph extension which has its own printing support and it already includes a isPrinting() method to indicate that the component is printing. Today I tested the 1.6 release with our application and I get the error message that isPrinting() overwrites a final method.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The method isPrinting() can not be overwritten for a custom component.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
isPrinting() should not be final.
ACTUAL -
Can not test our application with 1.6 without making code changes.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
No workaround available.
###@###.### 2005-04-25 12:09:47 GMT

Comments
EVALUATION We want this method to be final, but agree that isPrinting() is too common a name. This method will be renamed to isPaintingForPrint(). ###@###.### 2005-05-03 21:00:22 GMT
03-05-2005