Skip to content

Fix conflict happening between Java's assumed Integer vs intended Long type - #1

Open
rhanton wants to merge 1 commit into
brianeno:mainfrom
rhanton:brianeno-fix
Open

Fix conflict happening between Java's assumed Integer vs intended Long type#1
rhanton wants to merge 1 commit into
brianeno:mainfrom
rhanton:brianeno-fix

Conversation

@rhanton

@rhanton rhanton commented Mar 29, 2024

Copy link
Copy Markdown

Tried to fire up what you had Brian and it failed in a hard-to-diagnose way. Eventually after adding an errorAction for debugging like

    @Bean
    public Action<ArticleStates, ArticleEvents> errorAction() {
        return context -> {
            // RuntimeException("MyError") added to context
            Exception exception = context.getException();
            System.out.println(exception.getMessage());
        };
    }

I found that it was an error at the first line of each Action because your casting of Object to Long when the Object type was Integer was breaking the state machine.

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.

1 participant