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 · 1 comment
Open

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

SentryMan opened this issue Dec 20, 2024 · 1 comment

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
  }
@rbygrave
Copy link
Member

rbygrave commented Jan 14, 2025

We need to move io.ebeaninternal.api.HelpScopeTrans into a package that is public on the module path. It is currently in io.ebeaninternal and that package should stay internal. So I need to move HelpScopeTrans basically.

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.

2 participants