You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2018. It is now read-only.
Overview:
- Previously JarFileScanner assumed backslashes to be the platform independent
file separator for zip files. This is incorrect (and in fact, the associated
unit tests did assume forward slashes, using "javax/ws/rs" to denote the
package "javax.ws.rs"). See [1] for details.
- As a result the non-recursive scanning mode was broken: failing to find the
backslash delimiter, the scanner would return classes from subpackages even
when it was instructed not to do so. This has been fixed.
- The scanner also did not verify that "matching" classes were in a proper
subdirectory of the indicated package. As a result a class such as
javax.ws.rs.GET was matched for the following "packages":
- javax/ws/r (too short, misses an "s")
- javax/ws/rs/GE (too long, includes class name prefix)
This has been fixed as well.
The class' unit tests were extended to cover the problematic cases. Of the
five new unit tests, three fail prior to the fix.
[1] https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
0 commit comments