United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6627366 : javac needs Cloneable and Serializable on the classpath even when not directly used

Details
Type:
Enhancement
Submit Date:
2007-11-08
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
tools
OS:
generic
Sub-Component:
javac
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

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

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.
                                     
2007-11-08
SUGGESTED FIX

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

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



Hardware and Software, Engineered to Work Together