class loading

Started by raft, February 04, 2010, 08:35:07 PM

Previous topic - Next topic

raft

i've faced something very strange: many of Bones classes has constructors or methods taking Ardor classes as parameters. as they hold no fields to Ardor classes, they are expected to be loaded and run without ardor. for all but one this is the case. that single one even cannot be loaded by classloader because of a thrown ClassNotFoundException for an ardor interface. the unfound interface even is not imported  ???

i've further digged the situation and tried to isolate the problem by commenting out some code.

that class passes some of ardor classes to some static helper methods in another class. static method takes ardor interface as parameter. if i change the method to take implementation class instead of interface as parameter, the problem vanishes.. very odd thing, never faced before  ???

EgonOlsen

Strange. The last time that i've noticed some strange behaviour of a similar kind, it was a VM bug. Maybe this is one too?

raft