db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Re: JPOX enhancer bug
Date Wed, 10 Aug 2005 18:32:32 GMT
Hi Andy,

I've patched the JDOImplHelper class to make the construct method  
static. There are no issues that I can think of to make this method  
static, so I'll change this.

Does this help?

Craig

On Aug 10, 2005, at 10:47 AM, Craig Russell wrote:

> Hi,
>
> On Aug 10, 2005, at 10:38 AM, Andy Jefferson wrote:
>
>>> That exception is a NoSuchMethodError thrown by the enhanced code  
>>> (see
>>> below) of a class "PCPointSingleFieldDate" in methods
>>> "jdoCopyKeyFieldsFromObjectId". I decompiled the code of that  
>>> class. It
>>> seems that the JPOX enhancer generates a java.util.Date  
>>> constructor call
>>> that does not exist. This is an excerpt of the decompiled code:
>>>
>>
>> Already known about.
>> Sadly the enhancer can't just put a call in to Craig's  
>> JDOImplHelper method to
>> construct a date (since it needs AccessPriveleged adding to the  
>> enhanced
>> classes etc, and since that has implications on enhancement). If that
>> JDOImplHelper method was just a static call then it would be easy  
>> to do, but
>> it isn't.
>
> I hadn't thought of this. It's easy to make the methods static.  
> I'll take a look at it.
>
> Craig
>>
>> -- 
>> Andy
>>
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message