eclipse.platform icon indicating copy to clipboard operation
eclipse.platform copied to clipboard

Build failure correlates with new javax-annotation warning

Open ewillink opened this issue 2 years ago • 4 comments

Tycho builds now report

WARNING: Annotation classes from the 'javax.inject' or 'javax.annotation' package found. It is recommended to migrate to the corresponding replacements in the jakarta namespace. The Eclipse E4 Platform will remove support for those javax-annotations in a future release. To suppress this warning, set the VM property: -Declipse.e4.inject.javax.warning=false To disable processing of 'javax' annotations entirely, set the VM property: -Declipse.e4.inject.javax.disabled=true

The QVTo build (https://ci.eclipse.org/qvt-oml/job/qvto-master/546/console) that does not use javax.annotation fails with the apparently unrelated

org.apache.maven.surefire.util.SurefireReflectionException: java.lang.ClassNotFoundException: org.apache.maven.surefire.junit4.JUnit4Provider at org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:249)

However adding a requirement dependency for javax.annotation fixes the build.

It would appear that the warning that javax.annotation is going obsolete malfunctions when javax.annotation is not actually in use.

ewillink avatar Nov 07 '23 11:11 ewillink

Is this similar to #821 ?

ajohnson1 avatar Nov 09 '23 14:11 ajohnson1

Is this similar to #821 ?

Possibly, but I titled this issue 'correlates' since a causality between javax.annotation and JUnit4Provider is surprising.

ewillink avatar Nov 09 '23 14:11 ewillink

A similar JUnit4Provider problem is reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=582650.

There is a problem when using https://download.eclipse.org/releases/2023-12/202311171000 to provide org.eclipse.sdk.feature.group. The problem goes away when instead using https://download.eclipse.org/releases/2023-12/202310271000.

ewillink avatar Nov 20 '23 11:11 ewillink

https://bugs.eclipse.org/bugs/show_bug.cgi?id=582650#c5 identifies probably the same JUnit4Provider problem occurring between https://download.eclipse.org/releases/2023-12/202310271000 and https://download.eclipse.org/releases/2023-12/202311171000.

ewillink avatar Nov 20 '23 17:11 ewillink