[
https://issues.apache.org/jira/browse/OPENJPA-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18143778#comment-18143778
]
ASF subversion and git services commented on OPENJPA-3077:
----------------------------------------------------------
Commit 552b0290bdc60a24de319b85e8cc1442d9d481ed in openjpa's branch
refs/heads/OPENJPA-3079 from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=552b0290b ]
[OPENJPA-3077] 'test-dynamic-enhancer' profile is fixed (#306)
* [OPENJPA-3077] profile is partially fixed
* [OPENJPA-3077] Run the test-dynamic-enhancer profile without security manager
and installed kernel jar
The root profile enabled the security manager, which the forked test JVM
rejects on JDK 24+ and which kills the surefire fork on JDK 17/21 with the
old policy file. Being a profile of the root POM it also deactivated the
default test-derby profile. Remove it together with the leftover policy.file
profiles, and attach the agent through a manifest-only jar built in
openjpa-persistence-jdbc so the reactor's kernel classes are used.
The profile also removes target/test-classes before compiling, because test
classes left over from a normal build are already enhanced and are not
compiled again.
* [OPENJPA-3077] Check that the enhancer agent is active in
DynamicEnhancementSuite
The check also fails if the test classes on disk were enhanced at build time.
Also leave out TestClone and TestDataCacheBehavesIdentical, which are excluded
from the regular build and fail with build time enhancement as well.
* [OPENJPA-3077] Load the attach API from the jdk.attach module for the dynamic
enhancement agent
* [OPENJPA-3077] Document the requirements of the dynamic enhancement agent
* [OPENJPA-3077] Test that the dynamically loaded agent enhances an entity
* [OPENJPA-3077] Run the test-dynamic-enhancer profile in CI
---------
Co-authored-by: Richard Zowalla <[email protected]>
> test-dynamic-enhancer is broken
> -------------------------------
>
> Key: OPENJPA-3077
> URL: https://issues.apache.org/jira/browse/OPENJPA-3077
> Project: OpenJPA
> Issue Type: Bug
> Components: instrumentation, jdbc, kernel
> Affects Versions: 4.1.1
> Reporter: Maxim Solodovnik
> Assignee: Maxim Solodovnik
> Priority: Major
> Fix For: 4.2.0
>
>
> No tests are successful if {{test-dynamic-enhancer}} profile being used
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)