Skip to content

Cannot be cast to class Publisher error with non suspending @Transactional functions #26052

Closed
@sdeleuze

Description

@sdeleuze

Such transactional function:

fun findMessages(): Flow<Foo> {
	return fooRepository.findAll()
}

Currently generates a class kotlinx.coroutines.reactive.PublisherAsFlow cannot be cast to class org.reactivestreams.Publisher error message.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions