Issue #1692
This commit is contained in:
parent
1295dc372d
commit
e00182323b
|
@ -1016,11 +1016,18 @@ public class AnnotationParser
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//skip anything that is not a class file
|
//skip anything that is not a class file
|
||||||
if (!name.toLowerCase(Locale.ENGLISH).endsWith(".class"))
|
String lc = name.toLowerCase(Locale.ENGLISH);
|
||||||
|
if (!lc.endsWith(".class"))
|
||||||
{
|
{
|
||||||
if (LOG.isDebugEnabled()) LOG.debug("Not a class: {}",name);
|
if (LOG.isDebugEnabled()) LOG.debug("Not a class: {}",name);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lc.equals("module-info.class"))
|
||||||
|
{
|
||||||
|
if (LOG.isDebugEnabled()) LOG.debug("Skipping module-info.class");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//skip any classfiles that are not a valid java identifier
|
//skip any classfiles that are not a valid java identifier
|
||||||
int c0 = 0;
|
int c0 = 0;
|
||||||
|
@ -1028,7 +1035,7 @@ public class AnnotationParser
|
||||||
c0 = (ldir > -1 ? ldir+1 : c0);
|
c0 = (ldir > -1 ? ldir+1 : c0);
|
||||||
if (!Character.isJavaIdentifierStart(name.charAt(c0)))
|
if (!Character.isJavaIdentifierStart(name.charAt(c0)))
|
||||||
{
|
{
|
||||||
if (LOG.isDebugEnabled()) LOG.debug("Not a java identifier: {}"+name);
|
if (LOG.isDebugEnabled()) LOG.debug("Not a java identifier: {}",name);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue