Log Message
Merge Java 9 runtime detection from trunk.
Modified Paths
- branches/v-1.4.x/xstream/src/java/com/thoughtworks/xstream/core/JVM.java
- branches/v-1.4.x/xstream-distribution/src/content/changes.html
Property Changed
Diff
Property changes: branches/v-1.4.x
Modified: svn:mergeinfo
Modified: branches/v-1.4.x/xstream/src/java/com/thoughtworks/xstream/core/JVM.java (2312 => 2313)
--- branches/v-1.4.x/xstream/src/java/com/thoughtworks/xstream/core/JVM.java 2015-01-29 00:11:53 UTC (rev 2312)
+++ branches/v-1.4.x/xstream/src/java/com/thoughtworks/xstream/core/JVM.java 2015-01-29 00:13:06 UTC (rev 2313)
@@ -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
@@ -219,6 +219,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: branches/v-1.4.x/xstream-distribution/src/content/changes.html (2312 => 2313)
--- branches/v-1.4.x/xstream-distribution/src/content/changes.html 2015-01-29 00:11:53 UTC (rev 2312)
+++ branches/v-1.4.x/xstream-distribution/src/content/changes.html 2015-01-29 00:13:06 UTC (rev 2313)
@@ -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
@@ -39,6 +39,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>
@@ -53,6 +54,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:
