javapathfinder / jpf-core

JPF is an extensible software analysis framework for Java bytecode. jpf-core is the basis for all JPF projects; you always need to install it. It contains the basic VM and model checking infrastructure, and can be used to check for concurrency defects like deadlocks, and unhandled exceptions like NullPointerExceptions and AssertionErrors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect serialization of lambda expressions

amgad-rady opened this issue · comments

JPF does not correctly handle the FLAG_SERIALIZABLE field of java.lang.invoke.LambdaMetaFactory. Certain serializable lambda expressions, like those in java.util.Comparator, do not have the interface java.io.Serializable in their set of interfaces. The following test will fail

  @Test
  public void testComparingInt() {
    if (verifyNoPropertyViolation()) {
      ToIntFunction<Integer> keyExtractor = (x) -> 0;
      Comparator<Integer> comparator = comparingInt(keyExtractor);
    }
  }

hi would you please tell me more about it.

duplicate of #234

Hi @cyrille-artho and @pparizek, this is a duplicate issue, and we may close it.