SerialVersionUIDAdder breaks compile if using JDK 1.4
When compiling with a JDK = 1.4 the following error occurs
compile-debug:
[mkdir] Created dir: /home/federico/Desktop/asm-2.2.3/output/build/tmp
[javac] Compiling 109 source files to
/home/federico/Desktop/asm-2.2.3/output/build/tmp
[javac]
/home/federico/Desktop/asm-2.2.3/src/org/objectweb/asm/commons/SerialVersionUIDAdder.java:434:
cannot resolve symbol
[javac] symbol : constructor UnsupportedOperationException
(java.lang.Exception)
[javac] location: class java.lang.UnsupportedOperationException
[javac] throw new UnsupportedOperationException(e);
[javac] ^
[javac] 1 error
That is because the constructor UnsupportedOperationException(Throwable) was
introduced in java 1.5 and is not available on a jdk 1.4
As ant's javac task says source=1.3 target=1.2 I think that class should be patched
Attached you find the current patch used on the Gentoo GNU/Linux distro
Best regards
Federico Fissore