ucla-pls / wiretap

An instrumenter for dynamic logging for java bytecode programs
MIT License
5 stars 1 forks source link

Can't compile against Java 9 #4

Open pedromartins4 opened 6 years ago

pedromartins4 commented 6 years ago

Produces the following error:

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] error: Source option 1.5 is no longer supported. Use 1.6 or later.
    [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

the solution was to build the jar file with Java 8, which produces the respective warnings:

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
kalhauge commented 6 years ago

Hi @pedromartins4,

It looks like it is "bug" in the way that we build asm-5.1. If compiling with java9 is important then I recommend doing something like this, until I get around to build a more sustainable solution:

diff --git a/lib/asm-5.1/build.xml b/lib/asm-5.1/build.xml
index 1ff25a6..60882a8 100644
--- a/lib/asm-5.1/build.xml
+++ b/lib/asm-5.1/build.xml
@@ -180,7 +180,7 @@
        </target>

        <target name="compile-debug" depends="init,compile-init,compile-config">
-               <javac destdir="${out.build}/tmp" debug="on" source="1.5" target="1.5">
+               <javac destdir="${out.build}/tmp" debug="on">
                        <classpath>
                                <pathelement location="${out.build}/tmp" />
                        </classpath>