JDK-4270489 : RFE: Some objects, such as AudioFormat, should be Serializable
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.0,5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic,solaris_2.6
  • CPU: generic,sparc
  • Submitted: 1999-09-10
  • Updated: 2017-05-19
  • Resolved: 2003-08-08
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
Some Java Sound objects, or at least AudioFormat, should be Serializable. 

--------------------------------------------------------------------------


Date: Wed, 8 Sep 1999 15:32:48 -0700
From: Josh Richmond <###@###.###>
Subject: [JAVASOUND] Serializable Objects
Comments: To: Kara Kytle <###@###.###>
To: ###@###.###

Hi,

I'm writing some RMI code with Javasound and noticed that the AudioFormat
object is not serializable. Since it does not have a default() constructor
I cannot subclass it with a Serializable version. Are there any plans to
make the AudioFormat object (or any others) Serializable?

Thanks.
josh

------------------------------------------------------------------------
Josh Richmond, B.A.Sc.             ###@###.###
Master's Student                   http://www.cs.ubc.ca/spider/jlrichmo
Computer Science, UBC

      "Absence is to love what wind is to fire,
       it extinguishes the small and enkindles the great."

-----------------------------------------------------------------------------

###@###.### 2002-03-15
	This bug should be extended for all Format classes, MIDI Track and Sequence, and possibly more.

Comments
SUGGESTED FIX ###@###.### 2003-07-25 Implement the Serializable interface in these classes: package javax.sound.sampled: AudioFileFormat AudioFileFormat.Type AudioFormat AudioFormat.Encoding Line.Info DataLine.Info LineEvent.Type Mixer.Info Port.Info package javax.sound.midi: MidiDevice.Info MidiEvent MidiFileFormat MidiMessage Patch Sequencer.SyncMode ShortMessage SysExMessage
11-06-2004

EVALUATION ###@###.### 2002-03-15 Good idea. Need to find out the side-effects of serializing them. ###@###.### 2002-10-29 Need to serialize LineEvent.Info to fulfill the implemented interface Serializable of enclosing class LineEvent. Commit to Tiger. ###@###.### 2003-02-12 Also applies to the various .Info classes. ###@###.### 2003-07-23 These classes should then set the serialVersionUID. ###@###.### 2003-08-08 This RFE is changed to the contrary what was requested initially: in the discussion it turned out that it would be impossible to create a consistent Serialiable concept for the Java Sound API. It would also limit its future expansion, and adding a lot of implementation work for a weak use case. The LineEvent class in package javax.sound.sampled is Serializable by inheritage, but it would be impossible to make it Serializable (i.e. the Line interface would have to be made Serializable, too). Consequently, LineEvent should be explicitely marked "Not Serializable". This would also satisfy the JCK problems, I assume: LineEvent's inner class, LineEvent.Type, is not Serializable. ###@###.### 2003-08-08 In order to separate issues, this RFE is closed as "will not fix", and a new RFE was created to track the requested modification of LineEvent: 4903472.
08-08-2003