Skip to content

Commit

Permalink
Remove useless log message during a veawing (#1837)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Mar 14, 2023
1 parent dbdf363 commit 1092bbf
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,7 @@ public byte[] transform(final ClassLoader loader, final String className,

} catch (IllegalArgumentException iae) {
// class was probably compiled with some newer than officially supported and tested JDK
// in such case log a warning and try to re-read the class without class version check
if (log.shouldLog(SessionLog.FINE, SessionLog.WEAVER)) {
SessionLogEntry entry = new SessionLogEntry(null, SessionLog.FINE, SessionLog.WEAVER, iae);
entry.setMessage(ExceptionLocalization.buildMessage("unsupported_classfile_version", new Object[] { className }));
log.log(entry);
}
// try to re-read the class without class version check (already logged by MetadataAsmFactory)
classReader = new EclipseLinkClassReader(classfileBuffer);
}
final String reflectiveIntrospectionProperty =
Expand Down

0 comments on commit 1092bbf

Please sign in to comment.