-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"has weaker access privileges; it should be public" error when compiling against jOOQ #18654
Comments
There is any additional information I can provide for this bug? |
Worth adding that the linked project is minimized; it supplies the minimal required Java classes. I spent some time a week ago to try it out, and I was like where is the jooq dependency? I didn't come to any conclusion about the override check, IIRC. |
note that #16844 is also now minimized/no-dependencies. it isn't obvious to me whether they're related. |
There are dependencies to jooq both here and in #16844. I agree that this needs fixing at high priority but as a matter of general policy I will not handle bugs with external dependencies. My time is extremely limited and my setup makes it very hard to add such dependencies since I do everything outside of a build tool with an explicit class path. So somebody has to either minimize it so that it becomes self-contained or take this on themselves (I can provide advice where to look). |
My previous comment meant that the linked project has "outline" API in I don't think that is the best way to present a minimization, and there are several interfaces involved, but it is not compiled against actual |
Ah I see now. @EugeneFlesselle is trying to reproduce it with the minimized project now. Once we have that we'll see whether we can do something about it. |
Looks like we found a fix. PR is forthcoming. |
Compiler version
Scala 3.3.1
Minimized code
See: https://github.com/tpunder/scala3_jooq_bug_access_privileges
The only Scala source file is:
The equivalent Java source compiles file:
Output
Expectation
The code works fine under Scala 2.12 and 2.13:
There is a similar jOOQ related bug here: #16844
The text was updated successfully, but these errors were encountered: