Compile problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compile problem

Patric Bechtel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've a strange problem using the javax.sound API. The following code:

- ----
options strictcase binary strictargs

import javax.sound.sampled.AudioSystem
import javax.sound.sampled.Clip
import javax.sound.sampled.DataLine

clipFile=File('test.wav')
audioInputStream=AudioSystem.getAudioInputStream(clipFile)
audioFormat=audioInputStream.getFormat()
info=DataLine.Info(Clip.class, audioFormat)
- ----

does not compile, the error message is:
[soundtest.nrx 10 15 4] Error: The class 'DataLine.Info' is not a dependent class, so it cannot be constructed in the context of a parent object

*puzzled* Neither do I understand the error message itself, nor the cause of it. The DataLine.Info class is a public static class, which is simply defined inside
DataLine class. The corresponding Java source does compile flawlessly.
Is this a compiler bug or my own stupidity?

tia,

Patric

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1 (C) 1997-1999 Network Associates, Inc. and its affiliated companies.

iQA/AwUBP69pbnxoBrvMu8qQEQIDjACgmWP3NwL85pk4aaWFLdmaiB6JHB0AoKhL
ceYnN+j22b1l4turMRdmFuAq
=r6zj
-----END PGP SIGNATURE-----



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>