You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alan Woodward (Jira)" <ji...@apache.org> on 2020/05/05 11:30:00 UTC

[jira] [Commented] (SOLR-14426) forbidden api error during precommit DateMathFunction

    [ https://issues.apache.org/jira/browse/SOLR-14426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17099798#comment-17099798 ] 

Alan Woodward commented on SOLR-14426:
--------------------------------------

I've also run into this, it seems like it's due to DateMathValueFunction being defined as an old-style package-private class after the main class, rather than as a static nested class.  We should probably try and find all instances of these in the codebase and clear them up.

> forbidden api error during precommit DateMathFunction
> -----------------------------------------------------
>
>                 Key: SOLR-14426
>                 URL: https://issues.apache.org/jira/browse/SOLR-14426
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Build
>            Reporter: Mike Drob
>            Priority: Major
>
> When running `./gradlew precommit` I'll occasionally see
> {code}
> * What went wrong:
> Execution failed for task ':solr:contrib:analytics:forbiddenApisMain'.
> > de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden API calls failed while scanning class 'org.apache.solr.analytics.function.mapping.DateMathFunction' (DateMathFunction.java): java.lang.ClassNotFoundException: org.apache.solr.analytics.function.mapping.DateMathValueFunction (while looking up details about referenced class 'org.apache.solr.analytics.function.mapping.DateMathValueFunction')
> {code}
> `./gradlew clean` fixes this, but I don't understand what or why this happens. Feels like a gradle issue?



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