www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: raft on February 04, 2010, 08:35:07 pm

Title: class loading
Post by: raft on February 04, 2010, 08:35:07 pm
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  ???
Title: Re: class loading
Post by: EgonOlsen on February 04, 2010, 08:56:32 pm
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?
Title: Re: class loading
Post by: raft on February 04, 2010, 09:04:56 pm
yes, it may be.