Lingchao Chen created COLLECTIONS-721: -----------------------------------------
Summary: functors.InvokerTransformer backward incompatibility bug Key: COLLECTIONS-721 URL: https://issues.apache.org/jira/browse/COLLECTIONS-721 Project: Commons Collections Issue Type: Bug Affects Versions: 4.3, 4.2, 4.1 Reporter: Lingchao Chen The following code snippets throw a NotSerializableException. It works well before commons-collections4 4.0 and commons-collection3. When I update it to 4.1 or newer versions, it failed. {code:java} @Test public void Demo() throws IOException{ InvokerTransformer transformer = new InvokerTransformer("toString", new Class[]{}, new Object[]{}); Queue priorityQueue = new PriorityQueue(2, new TransformingComparator(transformer)); priorityQueue.add(1); ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(bout); out.writeObject(priorityQueue); } {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)