-
Notifications
You must be signed in to change notification settings - Fork 29
Changed the resource loading to the base class loader. #10
Conversation
| * @throws IOException when an error occurs during resource loading | ||
| */ | ||
| protected InputStream getResourceAsStream(final String resource) throws IOException { | ||
| InputStream getResourceAsStream(final String resource) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can still as protected. Why do we need to make it package private?
pom.xml
Outdated
|
|
||
| <groupId>org.jeasy</groupId> | ||
| <artifactId>easy-props</artifactId> | ||
| <artifactId>easy-props-ext</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this change. Why do we need to change the artifactId?
| @@ -1,25 +1,25 @@ | |||
| /** | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave these license header changes out of the PR. I use a template with the maven licence plugin to update these headers. So if there is an issue with the template, we need to change the template itself so that the changes are taken into account to all other files.
|
Hi Michael, Thank you for the PR! Strange case indeed, but the PR is valid 👍 I just added a couple of notes. If you can address them and then It'll be ready to merge. Kr, |
|
Hi Mahmoud,
My choices were:
Thanks! |
|
Hi,
Of course! Ok keep this in the PR
Ok I see now, but please remove it from the PR.
That's fine. I see from were it comes: The rest looks good to me. Thank you upfront! Kr |
|
Changed the |
|
Done. |
|
Thank you for the updates! I merged the PR. It will be part of v3.0 release. Keep tuned. |
Hi Mahmoud,
Just changed the resource loading in the annotation processor. When dynamically attaching the class loader for the base classes, and those that are added to the boot class path search, don't have a class loader at attach time, so the resource lookup fails. Strange case, I know.
Regards,
Michael