I see the following exception when using v1.1 and the latest v20151202.2 of this project. The same code used to work with the earlier version (r239). It appears like the AutoCloseable interface was introduced in Java 7 and isn't available in Java 6. Is there something that could be done to get this project to work with Java 6?
java.lang.NoClassDefFoundError: java/lang/AutoCloseable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
at org.owasp.html.PolicyFactory.sanitize(PolicyFactory.java:123)
at org.owasp.html.PolicyFactory.sanitize(PolicyFactory.java:101)
Following is the snippet of the code I'm using.