Skip to content

Commit 920c457

Browse files
lmajanoCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 733e101 commit 920c457

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

ModuleConfig.cfc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@ component {
3939
* Fired when the module is registered and activated.
4040
*/
4141
function onLoad(){
42-
var isBoxLang = structKeyExists( server, "boxlang" );
43-
44-
// Bind Core JavaLoader only for non-BoxLang runtimes; BoxLang uses native class loading
45-
if ( !isBoxLang ) {
46-
binder.map( "jl@cbjavaloader" ).to( "#moduleMapping#.models.javaloader.JavaLoader" );
47-
}
42+
// Always bind Core JavaLoader; Loader.setup() will determine the actual strategy
43+
binder.map( "jl@cbjavaloader" ).to( "#moduleMapping#.models.javaloader.JavaLoader" );
4844

45+
var isBoxLang = structKeyExists( server, "boxlang" );
4946
// Duplicating so our final change won't affect the main module settings
5047
var finalSettings = duplicate( settings );
5148

0 commit comments

Comments
 (0)