[metaas-dev] getAllMetaTags() method problem
David Holroyd
dave at badgers-in-foil.co.uk
Sat Sep 8 21:18:55 UTC 2007
Hi,
On Fri, Sep 07, 2007 at 10:22:01AM +0200, Sergey Akopkokhyants wrote:
> I start use "getAllMetaTags" and "getMetaTagsWithName" methods for fetch
> information about MetaTags from AS file and everytime have got exception:
>
> java.lang.IllegalArgumentException: null not allowed
> at uk.co.badgersinfoil.metaas.impl.ASTIterator.<init>(ASTIterator.java:22)
> at uk.co.badgersinfoil.metaas.impl.TagUtils.iterTags(TagUtils.java:70)
> at uk.co.badgersinfoil.metaas.impl.TagUtils.getAllMetaTags(TagUtils.java:21)
> at uk.co.badgersinfoil.metaas.impl.ASTASType.getAllMetaTags(ASTASType.java:124)
> In my code I did:
>
> ASCompilationUnit unit = ...;
> ASType clazz = unit.getType();
> List metaTags = clazz.getMetaTagsWithName("RemoteClass");
>
> or
>
> List metaTags = clazz.getAllMetaTags();
I've created a unit test based on this, and the example code you
submitted. The test passes using the latest Svn trunk version of
metaas. Maybe I've inadvertently fixed the cause of this problem since
the last release.
Could you try again with the latest code? Let me know if you'd like me
to email you a .jar file.
thanks!
dave
--
http://david.holroyd.me.uk/
More information about the metaas-dev
mailing list