Skip to content

Do not use reflective exception pre-handler on newer Androids, since … #1030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 22, 2019

Conversation

qwwdfsad
Copy link
Collaborator

@qwwdfsad qwwdfsad commented Mar 7, 2019

…Pie runtime ensures that uncaught exception is always logged

Fixes #822

…Pie runtime ensures that uncaught exception is always logged

Fixes #822
}
}
catch (e: Throwable) { null /* not found */ }
private val getter by lazy {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be defined inside AndroidExceptionPreHandler to avoid a second class being generated for the file members.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, though moving it inside AEPH is not enough

@qwwdfsad qwwdfsad marked this pull request as ready for review March 13, 2019 12:07
@qwwdfsad qwwdfsad requested a review from elizarov March 13, 2019 12:07
Copy link
Contributor

@elizarov elizarov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is insanely optimized code now. If we were to write all our code like this it would become an unreadable mess. I hope R8 becomes smarter over time and we don't have to do it. Anyway, I'm Ok with it.

@qwwdfsad qwwdfsad merged commit 5ea9339 into develop Mar 22, 2019
@qwwdfsad qwwdfsad deleted the android-prehandler branch March 22, 2019 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants