Skip to content

Commit

Permalink
DoNotStripAny on DataClassSuper
Browse files Browse the repository at this point in the history
Summary:
## Context
The no arg constructor on the `DataClassSuper` class is inlined into subclasses and later removed.
This is causing the Deserialization error on IG4A reported on this [post](https://fb.workplace.com/groups/redex.feedback/posts/8137723819630664).

## The Change
This is a temp fix that addresses this particular data class deserialization issue.
We should follow up on the underlying issue that avoid inlining ctor from super class into a Serializable subclass.

Differential Revision: D62903858

fbshipit-source-id: 5a507440fbb032b5809c30ca14b1d045a2fd963c
  • Loading branch information
Wei Zhang (Devinfra) authored and facebook-github-bot committed Sep 19, 2024
1 parent d42dc97 commit 6db9bd0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@

package com.facebook.kotlin.compilerplugins.dataclassgenerate.superclass

open class DataClassSuper
import com.facebook.proguard.annotations.DoNotStripAny

@DoNotStripAny open class DataClassSuper

0 comments on commit 6db9bd0

Please sign in to comment.