mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
Use the first replacement class version on the classpath.
This commit is contained in:
parent
2fa6dfedf8
commit
e71161302a
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2020 Volker Berlin (i-net software)
|
Copyright 2020 - 2022 Volker Berlin (i-net software)
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@ -118,8 +118,10 @@ public class ClassFileLoader {
|
|||||||
* the replacing ClassFile
|
* the replacing ClassFile
|
||||||
*/
|
*/
|
||||||
void replace( String className, ClassFile classFile ) {
|
void replace( String className, ClassFile classFile ) {
|
||||||
classFile = new ClassFile( className, classFile );
|
if( replace.get( className ) == null ) {
|
||||||
replace.put( className, classFile );
|
classFile = new ClassFile( className, classFile );
|
||||||
|
replace.put( className, classFile );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user