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>
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>