Author Topic: class loading  (Read 1223 times)

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
class loading
« 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  ???

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: class loading
« Reply #1 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?

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: class loading
« Reply #2 on: February 04, 2010, 09:04:56 pm »
yes, it may be.