Skip to content

Commit b6159c7

Browse files
committed
Fix for issue #1. Wrong dependency on log4j.
1 parent 351d217 commit b6159c7

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/main/java/org/apache/ibatis/session/Configuration.java

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -151,32 +151,32 @@ public Configuration(Environment environment) {
151151
}
152152

153153
public Configuration() {
154-
typeAliasRegistry.registerAlias("JDBC", JdbcTransactionFactory.class.getName());
155-
typeAliasRegistry.registerAlias("MANAGED", ManagedTransactionFactory.class.getName());
156-
typeAliasRegistry.registerAlias("JNDI", JndiDataSourceFactory.class.getName());
157-
typeAliasRegistry.registerAlias("POOLED", PooledDataSourceFactory.class.getName());
158-
typeAliasRegistry.registerAlias("UNPOOLED", UnpooledDataSourceFactory.class.getName());
159-
160-
typeAliasRegistry.registerAlias("PERPETUAL", PerpetualCache.class.getName());
161-
typeAliasRegistry.registerAlias("FIFO", FifoCache.class.getName());
162-
typeAliasRegistry.registerAlias("LRU", LruCache.class.getName());
163-
typeAliasRegistry.registerAlias("SOFT", SoftCache.class.getName());
164-
typeAliasRegistry.registerAlias("WEAK", WeakCache.class.getName());
165-
166-
typeAliasRegistry.registerAlias("VENDOR", VendorDatabaseIdProvider.class.getName());
167-
168-
typeAliasRegistry.registerAlias("XML", XMLLanguageDriver.class.getName());
169-
typeAliasRegistry.registerAlias("RAW", RawLanguageDriver.class.getName());
170-
171-
typeAliasRegistry.registerAlias("SLF4J", Slf4jImpl.class.getName());
172-
typeAliasRegistry.registerAlias("COMMONS_LOGGING", JakartaCommonsLoggingImpl.class.getName());
173-
typeAliasRegistry.registerAlias("LOG4J", Log4jImpl.class.getName());
174-
typeAliasRegistry.registerAlias("JDK_LOGGING", Jdk14LoggingImpl.class.getName());
175-
typeAliasRegistry.registerAlias("STDOUT_LOGGING", StdOutImpl.class.getName());
176-
typeAliasRegistry.registerAlias("NO_LOGGING", NoLoggingImpl.class.getName());
154+
typeAliasRegistry.registerAlias("JDBC", JdbcTransactionFactory.class);
155+
typeAliasRegistry.registerAlias("MANAGED", ManagedTransactionFactory.class);
156+
typeAliasRegistry.registerAlias("JNDI", JndiDataSourceFactory.class);
157+
typeAliasRegistry.registerAlias("POOLED", PooledDataSourceFactory.class);
158+
typeAliasRegistry.registerAlias("UNPOOLED", UnpooledDataSourceFactory.class);
159+
160+
typeAliasRegistry.registerAlias("PERPETUAL", PerpetualCache.class);
161+
typeAliasRegistry.registerAlias("FIFO", FifoCache.class);
162+
typeAliasRegistry.registerAlias("LRU", LruCache.class);
163+
typeAliasRegistry.registerAlias("SOFT", SoftCache.class);
164+
typeAliasRegistry.registerAlias("WEAK", WeakCache.class);
165+
166+
typeAliasRegistry.registerAlias("VENDOR", VendorDatabaseIdProvider.class);
167+
168+
typeAliasRegistry.registerAlias("XML", XMLLanguageDriver.class);
169+
typeAliasRegistry.registerAlias("RAW", RawLanguageDriver.class);
170+
171+
typeAliasRegistry.registerAlias("SLF4J", Slf4jImpl.class);
172+
typeAliasRegistry.registerAlias("COMMONS_LOGGING", JakartaCommonsLoggingImpl.class);
173+
typeAliasRegistry.registerAlias("LOG4J", Log4jImpl.class);
174+
typeAliasRegistry.registerAlias("JDK_LOGGING", Jdk14LoggingImpl.class);
175+
typeAliasRegistry.registerAlias("STDOUT_LOGGING", StdOutImpl.class);
176+
typeAliasRegistry.registerAlias("NO_LOGGING", NoLoggingImpl.class);
177177

178-
typeAliasRegistry.registerAlias("CGLIB", CglibProxyFactory.class.getName());
179-
typeAliasRegistry.registerAlias("JAVASSIST", JavassistProxyFactory.class.getName());
178+
typeAliasRegistry.registerAlias("CGLIB", CglibProxyFactory.class);
179+
typeAliasRegistry.registerAlias("JAVASSIST", JavassistProxyFactory.class);
180180

181181
languageRegistry.setDefaultDriverClass(XMLLanguageDriver.class);
182182
languageRegistry.register(RawLanguageDriver.class);

0 commit comments

Comments
 (0)