Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6627366
Votes 0
Synopsis javac needs Cloneable and Serializable on the classpath even when not directly used
Category java:compiler
Reported Against
Release Fixed 7(b34), 6u10(b12) (Bug ID:2158178)
State 10-Fix Delivered, request for enhancement
Priority: 3-Medium
Related Bugs 6627362 , 6627364 , 5045412
Submit Date 08-NOV-2007
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.
Posted Date : 2007-11-08 01:42:32.0

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.
Posted Date : 2007-11-08 01:46:23.0
Work Around
N/A
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.
Posted Date : 2007-11-08 01:46:23.0

Will consider synthesizing the classes if they are not available on the bootclasspath.
Posted Date : 2007-12-06 21:57:29.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang