Skip to content

setReadOnly not defined in JpaTransactionObject in JpaTransactionManager #24422

@pmartin8

Description

@pmartin8

In spring-orm-8.2.3.RELEASE the problem described in Ticket # 23943 is still present.

At line 405
txObject.setReadOnly(definition.isReadOnly());
txObject is of type JpaTransactionObject
line 378 : JpaTransactionObject txObject = (JpaTransactionObject) transaction;

method isReadOnly() is not in the service contract of JpaTransactionObject.

Because of this I get the following message :
Caused by: java.lang.NoSuchMethodError: 'void org.springframework.orm.jpa.JpaTransactionManager$JpaTransactionObject.setReadOnly(boolean)' at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:405) ... 37 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions