You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Andi Vajda <os...@ovaltofu.org> on 2020/08/16 22:19:10 UTC

Re: [jira] [Created] (LUCENE-9466) JCC creates the classes in non-deterministic order

Can you be more specific about "not working" ?
Why does the order of classes matter ?
(thanks!)

> On Aug 16, 2020, at 11:49, Andrea Sterbini (Jira) <ji...@apache.org> wrote:
> 
> Andrea Sterbini created LUCENE-9466:
> ---------------------------------------
> 
>             Summary: JCC creates the classes in non-deterministic order
>                 Key: LUCENE-9466
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9466
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/tools
>            Reporter: Andrea Sterbini
> 
> 
> I am trying to wrap the BabelNet API code.
> 
> The resulting module is non-deterministically not-working (once every 5 I get it OK).
> 
> This seems to be related to the order the classes are handled.
> 
> By changing cpp.py at line 696 to sort the class names I get a working module.
> {code:java}
> // changed from
> for cls in todo:
> {code}
> {code:java}
> // to
> for cls in sorted(todo, key=lambda c: c.getName()):
> {code}
> 
> 
> 
> --
> This message was sent by Atlassian Jira
> (v8.3.4#803005)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
> For additional commands, e-mail: issues-help@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org