Community
Participate
Working Groups
Our default shared setting in the annotation and xml is true. However the code in CacheMetadata is incorrectly defaulting it to false if null. In general none of the meta-data processing should be setting default values if null, null means use the default, which may be set elsewhere. Please fix this for 1.1 if possible.
Created attachment 121845 [details] Patch
I fixed the shared default bug, but the null defaulting needs to be fixed across the board. I think it is only an issue from xml, as annotation do not support null, so will default correctly?
Part of the issue on defaulting is that annotation do not allow null, so the @Cache annotation needs to be change to use -1 default for size, and DEFAULT as default for type, not sure how to default shared other than changing type to tri-state from boolean. Null should be maintained from XML though. This causes the project level defaults for cache options to not default correctly.
The original issue was fixed. And the general issue was resolved by switch to asm to process metadata, I think.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink