jetty.project
jetty.project copied to clipboard
Issue #9511 Verify location of scanned class files
Closes #9511
Check that a class file that is about to be scanned is in the correct location, skipping it if not.
For example, given a class with fully qualified name com.acme.Foo
that comes from jar:file://someplace/somewhere.jar!/
ensure that class is located at jar:file://someplace/somewhere.jar!/com/acme/Foo.class
.
This would skip the class if it was in eg jar:file://someplace/somewhere.jar!/this/is/the/wrong/place/com/acme/Foo.class
. See the original issue #9400 for more examples.
@janbartel make sure we also test for some.jar!/META-INF/versions/<ver>/com/acme/Foo.class
.
@sbordet there are already tests for that.
AnnotatioParser doesn't look to be related to any eeX version. could it be in a single place?
Potentially we could move it into a core jetty-annotations
module, but I think that would be a separate PR.
@gregw shall we can this PR?
@janbartel @gregw shall we close this PR as not useful?
These changes aren't crucial.