Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: @Transactional doesn't work when running on the module-path #3533

Open
SentryMan opened this issue Dec 20, 2024 · 0 comments · May be fixed by #3534
Open

BUG: @Transactional doesn't work when running on the module-path #3533

SentryMan opened this issue Dec 20, 2024 · 0 comments · May be fixed by #3534

Comments

@SentryMan
Copy link
Contributor

Expected behavior

The transactional annotation should work like manually creating a transaction with DB.beginTransaction()

Actual behavior

java.lang.IllegalAccessError: 
class com.avaje.jdk.realworld.web.ProfilesController (in module avaje.realworld) 
cannot access class io.ebeaninternal.api.HelpScopeTrans (in module io.ebean.core) 
because module io.ebean.core does not export io.ebeaninternal.api to module avaje.realworld

Steps to reproduce

Have a module-info and a method annotated with transactional

  @Transactional
  void useTransactional() {
  //contents don't matter
  }
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 a pull request may close this issue.

1 participant