From d6fe15df6d62dc9ae1c128e1af51bec829ffee4c Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 13 Feb 2015 23:51:29 -0500 Subject: Some minor gruntles about `Class.forName`. --- wiki/java/stop-using-class-dot-forname.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wiki/java/stop-using-class-dot-forname.md b/wiki/java/stop-using-class-dot-forname.md index a44f693..b01e972 100644 --- a/wiki/java/stop-using-class-dot-forname.md +++ b/wiki/java/stop-using-class-dot-forname.md @@ -44,6 +44,13 @@ developers. _You don't need to write any code to load a JDBC 4 driver._ +## What's The Harm? + +It's harmless in the immediate sense: forcing a driver to load immediately +before JDBC would load it itself has no additional side effects. However, it's +a pretty clear indicator that you've copied someone else's code without +thoroughly understanding what it does, which is a bad habit. + ## But What About My Database? You don't need to worry about it. All of the following drivers support JDBC -- cgit v1.2.3