cemfi / meico

A converter framework with support for MEI, MSM, MPM, MIDI, WAV, MP3, chroma, and XSLT
GNU General Public License v3.0
69 stars 14 forks source link

Build fails #6

Closed sonovice closed 8 years ago

sonovice commented 8 years ago

Reworking the MIDI part resulted in an error:

$ ant all
Buildfile: /home/travis/build/cemfi/meico/build.xml

init:

clean.module.meico:

clean:

compile.module.meico.production:
    [mkdir] Created dir: /home/travis/build/cemfi/meico/out/production/meico
    [javac] /home/travis/build/cemfi/meico/build.xml:156: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 15 source files to /home/travis/build/cemfi/meico/out/production/meico
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi2AudioRenderer.java:3: warning: AudioSynthesizer is internal proprietary API and may be removed in a future release
    [javac] import com.sun.media.sound.AudioSynthesizer;
    [javac]                           ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi.java:98: error: MidiFileReader is abstract; cannot be instantiated
    [javac]         this.sequence = (new MidiFileReader()).getSequence(file);
    [javac]                          ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi.java:224: error: MidiFileWriter is abstract; cannot be instantiated
    [javac]         (new MidiFileWriter()).write(this.getSequence(), 1, file);
    [javac]          ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi2AudioRenderer.java:117: warning: AudioSynthesizer is internal proprietary API and may be removed in a future release
    [javac]         AudioSynthesizer synth = this.findAudioSynthesizer();
    [javac]         ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi2AudioRenderer.java:153: warning: AudioSynthesizer is internal proprietary API and may be removed in a future release
    [javac]     private AudioSynthesizer findAudioSynthesizer() throws MidiUnavailableException {
    [javac]             ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi2AudioRenderer.java:156: warning: AudioSynthesizer is internal proprietary API and may be removed in a future release
    [javac]         if (synth instanceof AudioSynthesizer) {
    [javac]                              ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi2AudioRenderer.java:157: warning: AudioSynthesizer is internal proprietary API and may be removed in a future release
    [javac]             return (AudioSynthesizer)synth;
    [javac]                     ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi2AudioRenderer.java:164: warning: AudioSynthesizer is internal proprietary API and may be removed in a future release
    [javac]             if (dev instanceof AudioSynthesizer) {
    [javac]                                ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/Midi2AudioRenderer.java:165: warning: AudioSynthesizer is internal proprietary API and may be removed in a future release
    [javac]                 return (AudioSynthesizer) dev;
    [javac]                         ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/legacy/MidiOld.java:38: error: MidiFileReader is abstract; cannot be instantiated
    [javac]             sequence = (new MidiFileReader()).getSequence(midifile);
    [javac]                         ^
    [javac] /home/travis/build/cemfi/meico/src/meico/midi/legacy/MidiOld.java:164: error: MidiFileWriter is abstract; cannot be instantiated
    [javac]             (new MidiFileWriter()).write(this.getSequence(), 1, file);
    [javac]              ^
    [javac] Note: /home/travis/build/cemfi/meico/src/meico/midi/legacy/TrackOld.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /home/travis/build/cemfi/meico/src/meico/app/FileDrop.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 errors
    [javac] 8 warnings

BUILD FAILED
/home/travis/build/cemfi/meico/build.xml:156: Compile failed; see the compiler error output for details.

Total time: 17 seconds
sonovice commented 8 years ago

MidiFileReader is only a stub and nees a proper implementation.

Decompiled class:

public abstract class MidiFileReader {
    public MidiFileReader() {
    }

    public abstract MidiFileFormat getMidiFileFormat(InputStream var1) throws InvalidMidiDataException, IOException;

    public abstract MidiFileFormat getMidiFileFormat(URL var1) throws InvalidMidiDataException, IOException;

    public abstract MidiFileFormat getMidiFileFormat(File var1) throws InvalidMidiDataException, IOException;

    public abstract Sequence getSequence(InputStream var1) throws InvalidMidiDataException, IOException;

    public abstract Sequence getSequence(URL var1) throws InvalidMidiDataException, IOException;

    public abstract Sequence getSequence(File var1) throws InvalidMidiDataException, IOException;
}