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

[2.7] Fix for ReportQuery not fetching relationships with BatchFetch.IN #2312

Closed
wants to merge 656 commits into from

Conversation

Sheikah45
Copy link
Contributor

Backport of #2303

lukasj and others added 30 commits April 23, 2020 17:27
Signed-off-by: Lukas Jungmann <[email protected]>
-added sdo back to eclipselink.jar and make it runable on JDK 11+
-updated/fixed content of eclipselink.jar/source jar
-fixed up dependency tree for eclipselink.jar (everything is optional as we cannot know what piece of functionality is needed by the user)
-make sure that nightly test results are being garthered AFTER all previous test runs

Signed-off-by: Lukas Jungmann <[email protected]>
* fix scripts, content of binary distribution zip
* remove invalid osgi exports, make osgi exports looking the same as in previous version, tweak dependencies
* include new schemas, no handling yet
* add dist do deployable modules

Signed-off-by: Lukas Jungmann <[email protected]>
Signed-off-by: Radek Felcman <[email protected]>
)

Jenkins and Travis-CI build - server test disable

Signed-off-by: Radek Felcman <[email protected]>
* Integrate jaxb-ri 3.0.0-M3
* Integrate jaxws-ri 3.0.0-M3
* Integrate jaxws-api 3.0.0-RC3
* Integrate mail 2.0.0-RC5
* Integrate ejb-api 4.0.0-RC2
* Integrate mail 2.0.0-RC5

Signed-off-by: Lukas Jungmann <[email protected]>
Nightly build - test status generation

Signed-off-by: Radek Felcman <[email protected]>
… used in InheritanceType.JOINED (eclipse-ee4j#806)

EclipseLink doesn't generate SQL INSERT correctly if @ReturnInsert if used in InheritanceType.JOINED
bugfix for bug eclipse-ee4j#803 + test

Signed-off-by: Radek Felcman <[email protected]>
Signed-off-by: Lukas Jungmann <[email protected]>
* Take aqapi from central, remove obsolete module from the build

Signed-off-by: Lukas Jungmann <[email protected]>
Move some integration tests in *.oracle.test modules into Maven "oracle" profile.
Signed-off-by: Radek Felcman <[email protected]>
The issue is that on OpenJ9 adapterCls.getMethods() returns all the classes' methods. The current code add all the methods to "marshalMethods", so marshal methods but also getClass, equals and so on.
On openjdk the marshal method is the first one to pop, which is not the case on OpenJ9, the first one is getClass
So in the second loop:
JavaClass paramType = method.getParameterTypes()[0]; an ArrayIndexOutOfBoundsException is thrown.
The modification will only add to "marshalMethods" methods named marshal with one argument. Which seems to me the wanted behaviour from the start.

Co-authored-by: Yann Diorcet <[email protected]>
This change is based on recommendations from https://bugs.eclipse.org/bugs/show_bug.cgi?id=564240 .

Signed-off-by: Radek Felcman <[email protected]>
* Jakarta dependencies upgrade

Signed-off-by: Radek Felcman <[email protected]>
Co-authored-by: Lukas Jungmann <[email protected]>
…'s related with Oracle dependencies changes. (eclipse-ee4j#895)

Signed-off-by: Radek Felcman <[email protected]>
dazey3 and others added 26 commits March 16, 2023 08:26
…ities (eclipse-ee4j#1843) (eclipse-ee4j#1863)

* Issue 1596: use a hash-based collection to lookup objects in the cache instead of a linear search
* Adjusted source according to review:
- extended tests
- updated copyright year
- call removeObjectFromPrimaryKeyToNewObjects in preMergeChanges
- remove list from primaryKeyToNewObjects if it is empty
- simplify tests


(cherry picked from commit 76d8274)

Signed-off-by: Patrick Schmitt <[email protected]>
Signed-off-by: Radek Felcman <[email protected]>
Co-authored-by: Patrick Schmitt <[email protected]>
This change solve potential memory leak if SDO component is used in JEE environment.
There is refactor of SDOHelperContext.helperContexts map content (nested map). Instead of current ConcurrentHashMap is CacheIdentityMap used which supports Least Recently Used (LRU) strategy. This one should be controlled by new SDO system property eclipselink.sdo.helper.contexts.max.size.

Signed-off-by: Radek Felcman <[email protected]>
…ery() with wrong argument (eclipse-ee4j#1911) (eclipse-ee4j#1913)

Fixes eclipse-ee4j#1893

Signed-off-by: Radek Felcman <[email protected]>
(cherry picked from commit 6d59a82)
First commit to prepare new version after 3.0.4 (final) release.

Signed-off-by: Radek Felcman <[email protected]>
…clipse-ee4j#1292)

PROBLEM
=======
NullPointerException raising at CacheIndexMetadata.getField() while EntityManager initialising.

CAUSE
=======
Entity metadata XML file contains tag <cache-index><column-name>SOMENAME</column-name></cache-index>.
XML Deserializer call CacheIndexMetadata default constructor. ORMetadata.m_project field stay none initialised.
Call of CacheIndexMetadata.getField() throw to exception.

SOLVING
=======
Set ORMetadata.m_project value after XML deserialization.

Signed-off-by: Vladimir Ivanov <[email protected]>
Co-authored-by: Vladimir Ivanov <[email protected]>
Remove too strong dependency on Oracle error message. There is change between Oracle 23c and Oracle 23ai.

Signed-off-by: Radek Felcman <[email protected]>
…clipse-ee4j#2252)

Under specific conditions is org.eclipse.persistence.exceptions.OptimisticLockException incorrectly thrown.
Environment conditions are:

    JPA L2 cache enabled
    Weaving is applied to used entities
    @Version annotation is used

Test org.eclipse.persistence.testing.tests.advanced2.weave.WeaveVersionTest#testWeavedEntitiesWithVersionL2Cache describe sequence of steps which leads into org.eclipse.persistence.exceptions.OptimisticLockException if fix is not applied.

Purpose of fix in org.eclipse.persistence.internal.sessions.UnitOfWorkImpl#cloneAndRegisterObject(java.lang.Object, org.eclipse.persistence.internal.identitymaps.CacheKey, org.eclipse.persistence.internal.identitymaps.CacheKey, org.eclipse.persistence.descriptors.ClassDescriptor) is update current working object with non-invalidated version from UnitOfWork scope if original is still invalid.

Signed-off-by: Radek Felcman <[email protected]>
(cherry picked from commit c4fc6f1)
…different number of arguments (backport to 3.0) (eclipse-ee4j#2263)

TestArgumentListFunctionExpressionConcurrency.java - adds tests that reproduce the bug.
ExpressionOperator.java - fixes getArgumentIndices by disabling the caching of the dynamically created argument indexes.

Co-authored-by: Igor Mukhin <[email protected]>
@rfelcman
Copy link
Contributor

Sorry in 2.7 is build system based on Ant and there different file structure. Fix must be manually applied there.

@rfelcman rfelcman closed this Nov 22, 2024
@Sheikah45
Copy link
Contributor Author

Got it

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 this pull request may close these issues.