Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] JDOM 1.1 Release Candidate

Jason Hunter

2007-11-14


> With jdom-1.1 and this change ported up... everything runs fine in
> ActiveMath after recompilation (running jdk1.5 on Linux).
>
> Before, however, I had the following:
>
> java.lang.NoSuchMethodError:
> org.jdom.Element.setAttributes(Ljava/util/List;)Lorg/jdom/Element;
>      at
> org.activemath.exercises.InteractionManager.decorateElement(InteractionManager.java:1303)
>
>      at
> org.activemath.exercises.InteractionManager.decorateElement(InteractionManager.java:1264)
>
>
> ... and indeed setAttributes was for List in JDOM 1.0...
> I would suggest you keep both methods.

Great catch! This is exactly why I make the release candidates.

I've added back setAttributes(List) and kept setAttributes(Collection)
as well. I don't think there's any other situations like this. But
please do check for me against the RC I'll build later tonight. The
goal of course is no recompile needed, just drop-in compatible.

-jh-
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.