Skip to content

Commit

Permalink
Avoid non-sensical complaint about MODULE_INFO_CLASS for mismatched m…
Browse files Browse the repository at this point in the history
…inor version
  • Loading branch information
jsoref authored and slachiewicz committed Jul 31, 2021
1 parent c97a9d2 commit 3829392
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,13 @@ private String isBadArtifact( Artifact a )

Matcher matcher = MULTIRELEASE.matcher( entry.getName() );

if ( matcher.matches() )
if ( MODULE_INFO_CLASS.equals( entry.getName() ) ) {
if ( major > maxJavaMajorVersionNumber ) {
getLog().warn("Invalid bytecodeVersion for " + MODULE_INFO_CLASS + ": expected "
+ maxJavaMajorVersionNumber + ", but was " + major);
}
}
else if ( matcher.matches() )
{
Integer expectedMajor = JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.get( matcher.group( 1 ) );

Expand Down

0 comments on commit 3829392

Please sign in to comment.