osgi icon indicating copy to clipboard operation
osgi copied to clipboard

[jpa][tck] org.osgi.test.cases.jpa.junit.JPAService_1_1_TestCase.testUseStandardDataSourceConfig() relies on unspecified behaviour

Open laeubi opened this issue 1 year ago • 4 comments
trafficstars

org.osgi.test.cases.jpa.junit.JPAService_1_1_TestCase.testUseStandardDataSourceConfig() says it is testing JPA Service Spec 127.3.4.1 of the spec that says where it reads:

The EntityManagerFactoryBuilder service must support the defined property names as per the JPA specification. In most cases this will be accomplished by passing the values directly to the Persistence Provider, but in some cases it may require further action from the JPA Service implementation.

Here it seems it relies on the fact that it can pass an preconstructed DataSourceFactory in the properties with javax.persistence.dataSource. This seems to be a specific behavior implemented in Aries JPA but I can't find this documented or required anywhere in the JAP nor the OSGi-JPA spec.

laeubi avatar Jul 07 '24 11:07 laeubi