--- old/src/java.desktop/share/classes/com/sun/media/sound/AuFileFormat.java 2016-04-07 21:16:15.000000000 +0300 +++ new/src/java.desktop/share/classes/com/sun/media/sound/AuFileFormat.java 2016-04-07 21:16:15.000000000 +0300 @@ -33,7 +33,7 @@ * * @author Jan Borgersen */ -final class AuFileFormat extends AudioFileFormat { +final class AuFileFormat extends StandardFileFormat { // magic numbers static final int AU_SUN_MAGIC = 0x2e736e64; // ".snd" @@ -55,11 +55,18 @@ static final int AU_HEADERSIZE = 24; - private int auType; + /** + * According the specification of AU file format this is the value for + * length field if length is not known. This is a maximum possible value for + * the unsigned int. + */ + static final long /*unsigned int */ UNKNOWN_SIZE = 0xffffffffL; - AuFileFormat(AudioFileFormat.Type type, int lengthInBytes, AudioFormat format, int lengthInFrames) { + private int auType; - super(type,lengthInBytes,format,lengthInFrames); + AuFileFormat(final AudioFileFormat.Type type, final long byteLength, + final AudioFormat format, final long frameLength) { + super(type, byteLength, format, frameLength); AudioFormat.Encoding encoding = format.getEncoding();