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

classloader checks / cleanup app-domain.jar / test-domain.jar #92

Closed
cruftex opened this issue Mar 10, 2016 · 2 comments
Closed

classloader checks / cleanup app-domain.jar / test-domain.jar #92

cruftex opened this issue Mar 10, 2016 · 2 comments
Milestone

Comments

@cruftex
Copy link
Member

cruftex commented Mar 10, 2016

The Spec says on page 20:

A CacheManager provides: [ ... ] The ClassLoader that caches will use, should they require it,
for resolving and loading application classes.

I browsed through the TCK and cannot find any assertions for this. There is a jar file called app-domain.jar that seams to be created for it. This gets picked up in CachingProviderClassLoaderTest. But there is no test with it. Did I miss something?

Should we:

  1. Remove app-domain.jar and leave classloading untested?
  2. Add tests?
@cruftex cruftex added this to the 1.1.0 milestone May 15, 2016
@cruftex cruftex changed the title More classloader checks / cleanup app-domain.jar classloader checks / cleanup app-domain.jar May 17, 2016
@vbekiaris
Copy link
Contributor

It looks like there was a test for Caches with different ClassLoaders that did actually use app-domain.jar artifact but was removed by 3e96233 as a fix for #56 . My understanding is that tests should be added to verify classloading behaviour of Caches.

@cruftex cruftex changed the title classloader checks / cleanup app-domain.jar classloader checks / cleanup app-domain.jar / test-domain.jar Dec 21, 2016
@cruftex
Copy link
Member Author

cruftex commented Dec 21, 2016

Meanwhile I found out that the beans in app-domain.jar are used in some other tests. However, those tests don't need it in a separate class.

The whole classloading topic is in jsr107/jsr107spec#358 and was deferred to JCache 2.0. We shouldn't add tests if the Spec is not clear about it.

If the TCK 1.1 is also uploaded to maven central, I think we should cleanup and put the needed code from these modules in the TCK directly. app-domain.jar and test-domain.jar on maven central is looking quite strange.

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

No branches or pull requests

2 participants