Skip to content

Commit b9895de

Browse files
committed
Fixing critical server error that occurs when it attempts to register a driver compiled for higher Java version
1 parent 7facf93 commit b9895de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: java/server/src/org/openqa/selenium/remote/server/DefaultDriverSessions.java

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ private void registerDriver(Capabilities caps, String className) {
102102
log.log(Level.INFO, "Unable to register driver with className " + className + " due to ClassNotFoundException");
103103
} catch (NoClassDefFoundError e) {
104104
log.log(Level.WARNING, "Unable to register driver with className " + className + " due to NoClassDefFoundError");
105+
} catch (UnsupportedClassVersionError e) {
106+
log.log(Level.WARNING, "Unable to register driver with className " + className + " due to UnsupportedClassVersionError");
105107
}
106108
}
107109

0 commit comments

Comments
 (0)