jbossas/jboss-modules — pull request #13 by krutm (2012-01-14 14:21:12+00:00)
Title: Try with user supplied fully qualified library name

Currently if user tries to load the library with already provided mapped name jboss-module will refuse to load the library.

System.loadLibrary(System.mapLibraryName("mylibrary") + ".1.2.3");
will try to map '.../main/lib/$os-$arch/liblibmylibrary.so.1.2.3.so'

Patch adds additional check without calling System.mapLibraryName.
which will try to load correct library '.../main/lib/$os-$arch/libmylibrary.so.1.2.3'