From ptisnovs at redhat.com Mon Apr 26 05:47:46 2010 From: ptisnovs at redhat.com (Pavel Tisnovsky) Date: Mon, 26 Apr 2010 14:47:46 +0200 Subject: JTreg SoftSynthesizer test failures on OpenJDK6 (build 19) Message-ID: <4BD58B72.5020209@redhat.com> Hi, I realized that some regression tests especially: com/sun/media/sound/SoftSynthesizer/LoadAllInstruments.java com/sun/media/sound/SoftSynthesizer/LoadInstrument.java com/sun/media/sound/SoftSynthesizer/LoadInstruments.java com/sun/media/sound/SoftSynthesizer/RemapInstrument.java com/sun/media/sound/SoftSynthesizer/UnloadAllInstruments.java com/sun/media/sound/SoftSynthesizer/UnloadInstrument.java com/sun/media/sound/SoftSynthesizer/UnloadInstruments.java fails on OpenJDK6 (build 19) compiled using Gervill on RHEL 5 x86_64, because these tests usually start with these sequence of commands: AudioSynthesizer synth = new SoftSynthesizer(); synth.openStream(null, null); Soundbank defsbk = synth.getDefaultSoundbank(); assertTrue(synth.getLoadedInstruments().length == 0); // **A** synth.unloadAllInstruments(defsbk); // **B** My question is whether the order of the last two commands marked by **A** and **B** is correct. Command **A** check if there are no loaded instruments and _then_ all instruments are unloaded (when this command is executed, getLoadedInstruments().length is equal to zero, of course). Btw the instruments are loaded in public method openStream, but even after reading JavaDoc I'm not sure whether it is bug or no. Any ideas please? Thank you in advance Pavel Tisnovsky