-
Notifications
You must be signed in to change notification settings - Fork 18
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
Do not silently fail in case of class scanning exceptions #98
Conversation
@cstamas Any idea how to make this configurable from Maven? Do we really want to extend the Plexus Container API for that? |
@@ -92,7 +92,7 @@ public final void index( final ClassSpace _space ) | |||
{ | |||
try | |||
{ | |||
new SpaceScanner( _space ).accept( this ); | |||
new SpaceScanner( _space, true ).accept( this ); |
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 guess being always strict here should be fine
@@ -166,7 +166,7 @@ public SpaceVisitor visitor( final Binder binder ) | |||
|
|||
void scanForElements( final Binder binder ) | |||
{ | |||
new SpaceScanner( space, finder ).accept( strategy.visitor( binder ) ); | |||
new SpaceScanner( space, finder, true ).accept( strategy.visitor( binder ) ); |
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.
this should probably expose a way on how to toggle the strict flag.
6b23ed9
to
f45f781
Compare
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 the default mode should remain non-strict, for reasons discussed in #97 (comment)
We can still change the mode to strict when generating the index via annotation processing or the maven plugin. That should solve the main build-time issue without affecting runtime deployments.
@mcculls Can you be more specific, where exactly you want to keep the default behaviour of being lenient?
or anywhere else (which I missed in the list above) |
@mcculls Can you comment on the individual cases listed above? |
|
c6b97c6
to
7bc2ae3
Compare
@mcculls done now, can you check again? |
If there are no further concerns @mcculls I am gonna merge end of this week. |
This closes #97