Skip to content

Commit

Permalink
Merge pull request #61 from apache/3.2.13-release
Browse files Browse the repository at this point in the history
3.2.13 release
  • Loading branch information
AlbumenJ authored Oct 4, 2022
2 parents b048672 + 9801af8 commit 5727b36
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ sudo: false # faster builds

jdk:
- openjdk11
- openjdk10
- openjdk9
- openjdk8
# - openjdk7

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<groupId>com.alibaba</groupId>
<artifactId>hessian-lite</artifactId>
<packaging>jar</packaging>
<version>3.2.12</version>
<version>3.2.13</version>
<name>Hessian Lite(Dubbo embed version)</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,6 @@ public Serializer getSerializer(Class cl)
serializer = factory.getSerializer(cl);
}

if (!Serializable.class.isAssignableFrom(cl)
&& !_isAllowNonSerializable) {
throw new IllegalStateException("Serialized class " + cl.getName() + " must implement java.io.Serializable");
}

if (serializer != null) {

} else if (isZoneId(cl)) //must before "else if (JavaSerializer.getWriteReplace(cl) != null)"
Expand Down Expand Up @@ -419,6 +414,11 @@ protected Serializer getDefaultSerializer(Class cl) {
if (_defaultSerializer != null)
return _defaultSerializer;

if (!Serializable.class.isAssignableFrom(cl)
&& !_isAllowNonSerializable) {
throw new IllegalStateException("Serialized class " + cl.getName() + " must implement java.io.Serializable");
}

return new JavaSerializer(cl, _loader);
}

Expand Down Expand Up @@ -453,11 +453,6 @@ public Deserializer getDeserializer(Class cl)
deserializer = factory.getDeserializer(cl);
}

if (!Serializable.class.isAssignableFrom(cl)
&& !_isAllowNonSerializable) {
throw new IllegalStateException("Serialized class " + cl.getName() + " must implement java.io.Serializable");
}

if (deserializer != null) {
} else if (Collection.class.isAssignableFrom(cl))
deserializer = new CollectionDeserializer(cl);
Expand Down Expand Up @@ -500,6 +495,11 @@ else if (Class.class.equals(cl))
* @return a serializer object for the serialization.
*/
protected Deserializer getDefaultDeserializer(Class cl) {
if (!Serializable.class.isAssignableFrom(cl)
&& !_isAllowNonSerializable) {
throw new IllegalStateException("Serialized class " + cl.getName() + " must implement java.io.Serializable");
}

return new JavaDeserializer(cl);
}

Expand Down
9 changes: 8 additions & 1 deletion src/main/resources/DENY_CLASS
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ org.apache.commons.beanutils.
org.apache.commons.codec.binary.
org.apache.commons.collections.functors.
org.apache.commons.collections4.functors.
org.apache.commons.codec.
org.apache.commons.configuration.
org.apache.commons.configuration2.
org.apache.commons.dbcp.datasources.
Expand All @@ -97,9 +98,10 @@ org.apache.xalan.xsltc.trax.
org.apache.xbean.naming.context.
org.apache.xpath.
org.apache.zookeeper.
org.aspectj.apache.bcel.util.
org.aspectj.
org.codehaus.groovy.runtime.
org.datanucleus.store.rdbms.datasource.dbcp.datasources.
org.dom4j.
org.eclipse.jetty.util.log.
org.geotools.filter.
org.h2.value.
Expand All @@ -109,8 +111,11 @@ org.jboss.ejb3.
org.jboss.proxy.ejb.
org.jboss.resteasy.plugins.server.resourcefactory.
org.jboss.weld.interceptor.builder.
org.junit.
org.mockito.internal.creation.cglib.
org.mortbay.log.
org.mockito.
org.thymeleaf.
org.quartz.
org.springframework.aop.aspectj.
org.springframework.beans.BeanWrapperImpl$BeanPropertyHandler
Expand All @@ -120,7 +125,9 @@ org.springframework.jndi.
org.springframework.orm.
org.springframework.transaction.
org.yaml.snakeyaml.tokens.
ognl.
pstore.shaded.org.apache.commons.collections.
sun.print.
sun.rmi.server.
sun.rmi.transport.
weblogic.ejb20.internal.
Expand Down

0 comments on commit 5727b36

Please sign in to comment.