Skip to content

Commit 1092bbf

Browse files
authored
Remove useless log message during a veawing (#1837)
Signed-off-by: Lukas Jungmann <[email protected]>
1 parent dbdf363 commit 1092bbf

File tree

1 file changed

+1
-6
lines changed
  • jpa/org.eclipse.persistence.jpa/src/main/java/org/eclipse/persistence/internal/jpa/weaving

1 file changed

+1
-6
lines changed

jpa/org.eclipse.persistence.jpa/src/main/java/org/eclipse/persistence/internal/jpa/weaving/PersistenceWeaver.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,7 @@ public byte[] transform(final ClassLoader loader, final String className,
119119

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

0 commit comments

Comments
 (0)