JDK-6919185 : test/closed/sun/net/ftp/FtpTests fails to compile
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-01-22
  • Updated: 2014-10-03
  • Resolved: 2010-02-16
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 b84Fixed
Related Reports
Relates :  
Description
test/closed/sun/net/ftp/FtpTests.java fails to compile:

/java/re/jdk/7/promoted/ea/b77/binaries/solaris-sparc/bin/javac FtpTest.java
FtpTest.java:18: warning: FtpClient is Sun proprietary API and may be removed in a future release
import sun.net.ftp.FtpClient;
   ......
                      ^
FtpTest.java:497: FtpClient is abstract; cannot be instantiated
            ftp = new FtpClient("localhost", port);
                  ^
   ......
11 errors
3 warnings

Comments
EVALUATION The test uses the sun.net.ftp.FtpClient Sun proprietary API which has been changed by 6893702 in b77. This is not a regression in the FTP client implementation. The test just needs to be updated to take account of the new, Sun proprietary, API.
22-01-2010