Maxim Solodovnik created OPENJPA-2955:
-----------------------------------------

             Summary: extractSchemaGenObjects mutates caller's properties map
                 Key: OPENJPA-2955
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2955
             Project: OpenJPA
          Issue Type: Sub-task
          Components: jpa
    Affects Versions: 4.2.0
            Reporter: Maxim Solodovnik
             Fix For: 4.2.0


Discussion thread: 
https://github.com/apache/openjpa/pull/144#discussion_r3683000132


**(medium)** `extractSchemaGenObjects` calls `map.remove(key)` on the 
caller-supplied properties map - this mutates user configuration and throws 
UnsupportedOperationException for unmodifiable maps (e.g. `Map.of(...)` passed 
to `createEntityManagerFactory`). Can the Writer/Reader values be captured 
without mutating the input?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to