[javac] enable forceSerializableRepresentation using a compiler switch

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P4
    • 8
    • Affects Version/s: 8-repo-lambda
    • Component/s: tools
    • Environment:

      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>

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

              Created:
              Updated:
              Resolved: