-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error message when lazily referencing required options (#431)
In order to support referencing other options in `defaultLazy`, we call `finalize` twice if the first call caused an IllegalStateException. The second time happens after all other options are finalized, so as long as there are no reference cycles or chains, the second call will succeed. In order to support MultiUsageError, we have to collect all UsageErrors until after the second finalization round. The regression happened because we were throwing IllegalStateExceptions that occur in the second round even if there were deferred UsageErrors.
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 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
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
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