Log Message
Detect Java 9 runtime.
Modified Paths
- trunk/xstream/src/java/com/thoughtworks/xstream/core/JVM.java
- trunk/xstream-distribution/src/content/changes.html
Diff
Modified: trunk/xstream/src/java/com/thoughtworks/xstream/core/JVM.java (2311 => 2312)
--- trunk/xstream/src/java/com/thoughtworks/xstream/core/JVM.java 2015-01-28 23:39:47 UTC (rev 2311)
+++ trunk/xstream/src/java/com/thoughtworks/xstream/core/JVM.java 2015-01-29 00:11:53 UTC (rev 2312)
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2004, 2005, 2006 Joe Walnes.
- * Copyright (C) 2006, 2007, 2008, 2010, 2011, 2012, 2013, 2014 XStream Committers.
+ * Copyright (C) 2006, 2007, 2008, 2010, 2011, 2012, 2013, 2014, 2015 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
@@ -237,6 +237,13 @@
return majorJavaVersion >= 1.8f;
}
+ /**
+ * @since upcoming
+ */
+ public static boolean is19() {
+ return majorJavaVersion >= 1.9f;
+ }
+
private static boolean isIBM() {
return vendor.indexOf("IBM") != -1;
}
Modified: trunk/xstream-distribution/src/content/changes.html (2311 => 2312)
--- trunk/xstream-distribution/src/content/changes.html 2015-01-28 23:39:47 UTC (rev 2311)
+++ trunk/xstream-distribution/src/content/changes.html 2015-01-29 00:11:53 UTC (rev 2312)
@@ -1,7 +1,7 @@
<html>
<!--
Copyright (C) 2005, 2006 Joe Walnes.
- Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 XStream committers.
+ Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 XStream committers.
All rights reserved.
The software in this package is published under the terms of the BSD
@@ -64,6 +64,7 @@
<h2>Minor changes</h2>
<ul>
+ <li>Detect Java 9 runtime.</li>
<li>XSTR-767: Deserialization of referenced lambda expressions fail.</li>
<li>XSTR-762: Private method readResolve() called on base classes.</li>
<li>XSTR-755: ExternalizableConverter does not respect writeReplace and readResolve.</li>
@@ -78,6 +79,7 @@
<h2>API changes</h2>
<ul>
+ <li>Added c.t.x.util.JVM.is19().</li>
<li>c.t.x.converters.reflection.AbstractReflectionConverter.readResolve() is protected now.</li>
<li>c.t.x.mapper.AbstractAttributeAliasingMapper.readResolve() is protected now.</li>
<li>Deprecated c.t.x.converters.extended.StackTraceElementFactory, it is an internal helper class.</li>
To unsubscribe from this list please visit:
