At 02:37 PM 11/11/2006, you wrote:
>Jacob Kjome wrote:
>>
>>Quoting Christian Cryder
>><mailto:christian.cryder gmail.com><christian.cryder gmail.com>:
>>
>>
>>In any case, can you address the original question
about the
>>ObjectRepositoryAssembler exception when running
under JDK1.5?...
>>
>>plankton.data.ObjectRepositoryAssembler - error
invoking method
>>m:java.lang.IllegalAccessException: Class
>>org.barracudamvc.plankton.data.ObjectRepositoryAssem
bler$AssemblerXMLReader
>>can not access a member of class
java.lang.AbstractStringBuilder with
>>modifiers "public"
>>
>Interesting. Sounds like a public variable changed in
>AbstractStringBuilder for JDK 1.5 (the or assembler is
trying to set
>a value in the string, based on the config value in the
xml file).
>Should be fairly easy to fix (but I don't have the
bandwidth to look
>at it right now). So someone else is going to have to
check this out...
>
>(I wonder if we should create an "open issues"
doc just so we can
>flag stuff like this - so someone looking to use JDK 1.5
would at
>least know that this needs to be fixed.
>
>Christian
I think it has to do with compiling under JDK1.5 (even if
using
source=1.3, target=1.2 like we do). The compiler adds
synthetic
bridge methods with identical signature, but different
return type,
which is new to Java5. See....
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=506
2759
I'm not clear on how to avoid it, though? I've tried a
number of
things JDK1.5 specific things like...
if (m.isBridge()) continue;
OR
if (m.isSynthetic()) continue;
Nothing I've tried seems to work. The two checks above seem
to do
nothing at all, so I get the same behavior as before. In
other
cases, the check was too strict and excluded all methods.
I give up. Someone else want to take a stab?
Jake
--
Barracuda mailing list
Barracuda objectweb.org
http://www.objectweb.org/wws/lists/projects/barracuda
|