You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Jochen Wiedmann <jo...@gmail.com> on 2022/05/02 17:57:45 UTC

[lang] What does the animal-sniffer-maven-plugin compare against?

Hi,

I am currently preparing a feature for Lang, that makes use of
MethodHandle.invoke(Object...)

According to the Javadocs [1], this should be fine, but I am getting
this from the animal-sniffer-maven-plugin:

[INFO] --- animal-sniffer-maven-plugin:1.21:check
(checkAPIcompatibility) @ commons-lang3 ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[ERROR] C:\Work\git\ASF\commons-lang\src\main\java\org\apache\commons\lang3\function\access\Getter.java:139:
Undefined reference: Object
java.lang.invoke.MethodHandle.invoke(Object)

Can anyone help, please?

Thanks,

Jochen


1: https://docs.oracle.com/javase/8/docs/api/java/lang/invoke/MethodHandle.html#invoke-java.lang.Object...-

-- 
Philosophy is useless, theology is worse. (Industrial Desease, Dire Straits)

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


Re: [lang] What does the animal-sniffer-maven-plugin compare against?

Posted by Jochen Wiedmann <jo...@gmail.com>.
Thanks for the reply, Bernd. Any suggestions on how I could proceed?

On Mon, May 2, 2022 at 8:17 PM Bernd Eckenfels <ec...@zusammenkunft.net> wrote:
>
> BTW Interesting that those signatures are 6 years old, but the coordinates seems to be correct (don’t know if the content is correct)
>
> https://repo1.maven.org/maven2/org/codehaus/mojo/signature/
>
> Older major versions have vendor specific suffixes, none of them use minor version numbers.
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
> ________________________________
> Von: Jochen Wiedmann <jo...@gmail.com>
> Gesendet: Monday, May 2, 2022 8:05:48 PM
> An: Apache Commons Developers List <de...@commons.apache.org>
> Betreff: Re: [lang] What does the animal-sniffer-maven-plugin compare against?
>
> Followup question: Should the following reveal a property definition?
> Because, I only see uses of ${javaTarget.majorVersion}, and no
> definition.
>
> $ mvn help:effective-pom | grep -i majorVersion
>     <animal-sniffer.signature>java${javaTarget.majorVersion}${javaTarget.minorVersion}</animal-sniffer.signature>
>
> <artifactId>java${javaTarget.majorVersion}${javaTarget.minorVersion}</artifactId>
>             <artifactId>java${javaTarget.majorVersion}${javaTarget.minorVersion}</artifactId>
>
> On Mon, May 2, 2022 at 7:57 PM Jochen Wiedmann
> <jo...@gmail.com> wrote:
> >
> > Hi,
> >
> > I am currently preparing a feature for Lang, that makes use of
> > MethodHandle.invoke(Object...)
> >
> > According to the Javadocs [1], this should be fine, but I am getting
> > this from the animal-sniffer-maven-plugin:
> >
> > [INFO] --- animal-sniffer-maven-plugin:1.21:check
> > (checkAPIcompatibility) @ commons-lang3 ---
> > [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
> > [ERROR] C:\Work\git\ASF\commons-lang\src\main\java\org\apache\commons\lang3\function\access\Getter.java:139:
> > Undefined reference: Object
> > java.lang.invoke.MethodHandle.invoke(Object)
> >
> > Can anyone help, please?
> >
> > Thanks,
> >
> > Jochen
> >
> >
> > 1: https://docs.oracle.com/javase/8/docs/api/java/lang/invoke/MethodHandle.html#invoke-java.lang.Object...-
> >
> > --
> > Philosophy is useless, theology is worse. (Industrial Desease, Dire Straits)
>
>
>
> --
> Philosophy is useless, theology is worse. (Industrial Desease, Dire Straits)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>


-- 
Philosophy is useless, theology is worse. (Industrial Desease, Dire Straits)

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


Re: [lang] What does the animal-sniffer-maven-plugin compare against?

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
BTW Interesting that those signatures are 6 years old, but the coordinates seems to be correct (don’t know if the content is correct)

https://repo1.maven.org/maven2/org/codehaus/mojo/signature/

Older major versions have vendor specific suffixes, none of them use minor version numbers.

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: Jochen Wiedmann <jo...@gmail.com>
Gesendet: Monday, May 2, 2022 8:05:48 PM
An: Apache Commons Developers List <de...@commons.apache.org>
Betreff: Re: [lang] What does the animal-sniffer-maven-plugin compare against?

Followup question: Should the following reveal a property definition?
Because, I only see uses of ${javaTarget.majorVersion}, and no
definition.

$ mvn help:effective-pom | grep -i majorVersion
    <animal-sniffer.signature>java${javaTarget.majorVersion}${javaTarget.minorVersion}</animal-sniffer.signature>

<artifactId>java${javaTarget.majorVersion}${javaTarget.minorVersion}</artifactId>
            <artifactId>java${javaTarget.majorVersion}${javaTarget.minorVersion}</artifactId>

On Mon, May 2, 2022 at 7:57 PM Jochen Wiedmann
<jo...@gmail.com> wrote:
>
> Hi,
>
> I am currently preparing a feature for Lang, that makes use of
> MethodHandle.invoke(Object...)
>
> According to the Javadocs [1], this should be fine, but I am getting
> this from the animal-sniffer-maven-plugin:
>
> [INFO] --- animal-sniffer-maven-plugin:1.21:check
> (checkAPIcompatibility) @ commons-lang3 ---
> [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
> [ERROR] C:\Work\git\ASF\commons-lang\src\main\java\org\apache\commons\lang3\function\access\Getter.java:139:
> Undefined reference: Object
> java.lang.invoke.MethodHandle.invoke(Object)
>
> Can anyone help, please?
>
> Thanks,
>
> Jochen
>
>
> 1: https://docs.oracle.com/javase/8/docs/api/java/lang/invoke/MethodHandle.html#invoke-java.lang.Object...-
>
> --
> Philosophy is useless, theology is worse. (Industrial Desease, Dire Straits)



--
Philosophy is useless, theology is worse. (Industrial Desease, Dire Straits)

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


Re: [lang] What does the animal-sniffer-maven-plugin compare against?

Posted by Jochen Wiedmann <jo...@gmail.com>.
Followup question: Should the following reveal a property definition?
Because, I only see uses of ${javaTarget.majorVersion}, and no
definition.

$ mvn help:effective-pom | grep -i majorVersion
    <animal-sniffer.signature>java${javaTarget.majorVersion}${javaTarget.minorVersion}</animal-sniffer.signature>

<artifactId>java${javaTarget.majorVersion}${javaTarget.minorVersion}</artifactId>
            <artifactId>java${javaTarget.majorVersion}${javaTarget.minorVersion}</artifactId>

On Mon, May 2, 2022 at 7:57 PM Jochen Wiedmann
<jo...@gmail.com> wrote:
>
> Hi,
>
> I am currently preparing a feature for Lang, that makes use of
> MethodHandle.invoke(Object...)
>
> According to the Javadocs [1], this should be fine, but I am getting
> this from the animal-sniffer-maven-plugin:
>
> [INFO] --- animal-sniffer-maven-plugin:1.21:check
> (checkAPIcompatibility) @ commons-lang3 ---
> [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
> [ERROR] C:\Work\git\ASF\commons-lang\src\main\java\org\apache\commons\lang3\function\access\Getter.java:139:
> Undefined reference: Object
> java.lang.invoke.MethodHandle.invoke(Object)
>
> Can anyone help, please?
>
> Thanks,
>
> Jochen
>
>
> 1: https://docs.oracle.com/javase/8/docs/api/java/lang/invoke/MethodHandle.html#invoke-java.lang.Object...-
>
> --
> Philosophy is useless, theology is worse. (Industrial Desease, Dire Straits)



-- 
Philosophy is useless, theology is worse. (Industrial Desease, Dire Straits)

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