Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
xstream1.4.11 need jdk 8？ #133
xstream 1.4.11 is been release lately, after i upgrate in my project, i got a exception. After i dig in the source code. I found that Base64JavaUtilCodec class use java.util.Base64 package. And java.util.Base64 package is been import from jdk1.8.
It does. It runs even on Java 1.4. The appropriate implementation for base64 is selected based on the current Java runtime. However, the xstream jar contains multiple classes compiled for Java 8 only, but that is nothing new.
The question is, why you do get an exception? What is your envrornment and which xstream library are you using?
My jdk version is jdk6 and xstream version is 1.4.11, and I write simple code like this :
The code of JVM class in line 423- 429 like this :
unfortunately this time the progrom throw an error and cannot catch the error.