JDK-6627366 : javac needs Cloneable and Serializable on the classpath even when not directly used
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-11-08
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
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 JDK 7 Other
6u10Fixed 7 b34Fixed OpenJDK6Fixed
Related Reports
Relates :  
Relates :  
Description
javac needs Cloneable and Serializable on the classpath even when not directly used.

This causes problems for JavaCard, which does not support these interfaces.
javac needs Cloneable and Serializable on the classpath even when not directly used.
This is a problem for JavaCard which does not support these interfaces.

Comments
EVALUATION Will consider synthesizing the classes if they are not available on the bootclasspath.
06-12-2007

SUGGESTED FIX Suggest putting empty interfaces for Cloneable and Serializable on the bootclasspath for compilation, to keep the compiler happy.
14-11-2007

EVALUATION This is a problem since JLS states very clearly that arrays implement the interfaces Cloneable and Serializable. JLS 3 $10.8, p. 293. Suggest putting empty interfaces for Cloneable and Serializable on the bootclasspath for compilation, to keep the compiler happy.
08-11-2007