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

add export of internal.weaving package #2236

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bundles/eclipselink/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@
exports org.eclipse.persistence.internal.sessions.factories;
exports org.eclipse.persistence.internal.sessions.factories.model;
exports org.eclipse.persistence.internal.sessions.remote;
exports org.eclipse.persistence.internal.weaving;
exports org.eclipse.persistence.internal.xr;

//exported through EclipseLink INTERNAL API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
org.eclipse.persistence.sdo,
org.eclipse.persistence.pgsql;
exports org.eclipse.persistence.internal.mappings.converters to org.eclipse.persistence.jpa;
exports org.eclipse.persistence.internal.weaving to org.eclipse.persistence.jpa;
exports org.eclipse.persistence.internal.weaving;
exports org.eclipse.persistence.internal.cache to org.eclipse.persistence.moxy;
exports org.eclipse.persistence.internal.oxm.schema to
org.eclipse.persistence.dbws,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2021 IBM Corporation. All rights reserved.
* Copyright (c) 1998, 2024 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023 IBM Corporation. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
Expand Down Expand Up @@ -202,7 +202,7 @@ public synchronized void addQuery(DatabaseQuery query) {
List<DatabaseQuery> queriesByName = getQueries().get(query.getName());
if (queriesByName == null) {
// lazily create Vector in Hashtable.
queriesByName = org.eclipse.persistence.internal.helper.NonSynchronizedVector.newInstance();
queriesByName = new ArrayList<>();
getQueries().put(query.getName(), queriesByName);
} else {
int argumentTypesSize = 0;
Expand Down Expand Up @@ -597,9 +597,9 @@ public DatabaseQuery getLocalQuery(String name, Vector arguments) {
if (arguments != null) {
argumentTypesSize = arguments.size();
}
Vector argumentTypes = org.eclipse.persistence.internal.helper.NonSynchronizedVector.newInstance(argumentTypesSize);
List<Class<?>> argumentTypes = new ArrayList<>(argumentTypesSize);
for (int i = 0; i < argumentTypesSize; i++) {
argumentTypes.addElement(arguments.elementAt(i).getClass());
argumentTypes.add(arguments.elementAt(i).getClass());
}
return getLocalQueryByArgumentTypes(name, argumentTypes);

Expand Down
Loading