On Thu, Jun 26, 2008 at 9:30 AM, Matthew Toseland
<toad at amphibian.dyndns.org> wrote:
> On Thursday 26 June 2008 01:34, Daniel Cheng wrote:
>> On Thu, Jun 26, 2008 at 7:55 AM, <toad at freenetproject.org> wrote:
>> > Author: toad
>> > Date: 2008-06-25 23:55:31 +0000 (Wed, 25 Jun 2008)
>> > New Revision: 20726
>> >
>> > Modified:
>> > branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
>> > Log:
>> > Chain activation to parent.
>> >
>> > Modified:
> branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
>> > ===================================================================
>> > --- branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
> 2008-06-25 23:32:58 UTC (rev 20725)
>> > +++ branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
> 2008-06-25 23:55:31 UTC (rev 20726)
>> > @@ -736,6 +736,11 @@
>> > }
>> > }
>> >
>> > + public void objectOnActivate(ObjectContainer container) {
>> > + // Chain to containing class, since we use its
> members extensively.
>> > + container.activate(SingleFileInserter.this, 1);
>> > + }
>> > +
>> > }
>>
>> ugh.
>> I think you have to activate from "this" with depth, not
>> SingleFileInserter.this.
>
> After a great deal of trouble (relating to IllegalAccessException's), it does
> seem to work. You have any reason to think that activating the containing
> class won't work?
>
hmm..
no -- no reason.
I just haven't wake up yet.
--