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 17:47:54 GMT

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.

> -- 
> 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!

View raw message