java - How to debug classloader issues without tools -


for basic know classloaders have hierarchy , sequence default classloaders run below :-

a) bootstrap class loader : runs first , loads java classes etc.

b) extclassloader : extclassloaders loads ext folder jars , java libraries.

c) application classloader : programs execute , linked classes found loaded classpath using class loader.

enter image description here

now, have pojo classes being generated @ run time various json inputs , pojo class loaded first seems not being replaced on using custom class loaders (as normal class loader first check if class loaded if loaded not load class per below image normal default class loader behavior).

so stuck @ how know if classes being replaced or not? can link listeners classes in jvm let me know class been replaced ? looking debugging steps debugging reloading or replacing classes process .

note : seems using custom class loader used has loaded same class new custom classloader instance in jvm.

please have @ approach issue(may be) jsonschema2pojo jackson deserialisation issue still looking answer at. requirement deserialize json dynamically created pojo , suggest approach when need deserialize json after creating pojo classes @ runtime in above question?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -