Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8011163

[javac] enable forceSerializableRepresentation using a compiler switch

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 8-repo-lambda
    • tools
    • lambda

    • generic
    • generic

      In order to test Serialization/DeSerialization testing we have to apply the following patch,
      it would be a lot nicer if this was enabled by a private switch ex: javac -XDforceSerializableRepresentation,
      this will make it easier to hand over the test framework to SQE and also automate the
      testing process.

      diff --git a/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java b/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
      --- a/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
      +++ b/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
      @@ -159,7 +159,7 @@
               make = TreeMaker.instance(context);
               types = Types.instance(context);
               transTypes = TransTypes.instance(context);
      - // forceSerializableRepresentation = true;
      + forceSerializableRepresentation = true;
               analyzer = new LambdaAnalyzer();
           }
           // </editor-fold>

            ksrini Kumar Srinivasan
            ksrini Kumar Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: