Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save promises type pollution due to interface type checks
Motivation: DefaultPromise performs interfaces type checks to distinguish single/multi listeners presence, hitting https://bugs.openjdk.org/browse/JDK-8180450 Modifications: Using separate listener fields that won't require type checks to evaluate listeners arity Result: No type pollution for user-defined listeners types.
- Loading branch information
Showing
1 changed file
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters