[hibernate-issues] [JIRA] (HHH-13972) Disable the ForbiddenAPI classloader cache

Sanne Grinovero (JIRA) jira at hibernate.atlassian.net
Thu Apr 23 07:13:11 EDT 2020


Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZmNiYjA4ZjgzYzFlNDRhOWJjYzkxMDgyZTI0Y2IyYmYiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HHH-13972?atlOrigin=eyJpIjoiZmNiYjA4ZjgzYzFlNDRhOWJjYzkxMDgyZTI0Y2IyYmYiLCJwIjoiaiJ9 ) HHH-13972 ( https://hibernate.atlassian.net/browse/HHH-13972?atlOrigin=eyJpIjoiZmNiYjA4ZjgzYzFlNDRhOWJjYzkxMDgyZTI0Y2IyYmYiLCJwIjoiaiJ9 ) Disable the ForbiddenAPI classloader cache ( https://hibernate.atlassian.net/browse/HHH-13972?atlOrigin=eyJpIjoiZmNiYjA4ZjgzYzFlNDRhOWJjYzkxMDgyZTI0Y2IyYmYiLCJwIjoiaiJ9 )

Issue Type: Task Assignee: Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea ) Components: build Created: 23/Apr/2020 04:13 AM Fix Versions: 5.5.0.Beta1 Priority: Minor Reporter: Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea )

The ForbiddenAPI tool we use has a smart classloader cache, but it seems this interacts with the gradle daemon; in some situations this has shown to load snapshot builds from a previous build.

I haven't fully understood why this happens; what I know is we're possibly loading the snapshots that the OSGi integration tests are needing to deploy into a Maven repository, so I'd guess this possibly bypasses some sanity checks from the Gradle tooling.

Let's disable the cache: it solves the problem, probably avoids some future headaches and I've not seen any performance difference.

( https://hibernate.atlassian.net/browse/HHH-13972#add-comment?atlOrigin=eyJpIjoiZmNiYjA4ZjgzYzFlNDRhOWJjYzkxMDgyZTI0Y2IyYmYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13972#add-comment?atlOrigin=eyJpIjoiZmNiYjA4ZjgzYzFlNDRhOWJjYzkxMDgyZTI0Y2IyYmYiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:63ccdc5 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200423/117d6874/attachment.html 


More information about the hibernate-issues mailing list