Accepting request 1112743 from Java:packages
fix build with java >= 20 OBS-URL: https://build.opensuse.org/request/show/1112743 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/junit?expand=0&rev=30
This commit is contained in:
commit
18eddfad90
@ -36,7 +36,8 @@
|
|||||||
|
|
||||||
<property name="maven.deploy.goal" value="org.apache.maven.plugins:maven-gpg-plugin:1.1:sign-and-deploy-file" />
|
<property name="maven.deploy.goal" value="org.apache.maven.plugins:maven-gpg-plugin:1.1:sign-and-deploy-file" />
|
||||||
|
|
||||||
<property name="compiler.source" value="1.8" />
|
<property name="compiler.release" value="8" />
|
||||||
|
<property name="compiler.source" value="1.${compiler.release}" />
|
||||||
<property name="compiler.target" value="${compiler.source}" />
|
<property name="compiler.target" value="${compiler.source}" />
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
@ -76,6 +77,7 @@
|
|||||||
debug="on"
|
debug="on"
|
||||||
classpath="@{classpath}"
|
classpath="@{classpath}"
|
||||||
includeantruntime="false"
|
includeantruntime="false"
|
||||||
|
release="${compiler.release}"
|
||||||
source="${compiler.source}"
|
source="${compiler.source}"
|
||||||
target="${compiler.target}"
|
target="${compiler.target}"
|
||||||
>
|
>
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 21 07:53:02 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Let ant build with --release 8 if the compiler knows that option.
|
||||||
|
This allows us to avoid incompatible exception declarations
|
||||||
|
in ObjectInputStream.GetField.get(String,Object) in java >= 20
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 23 17:18:10 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
Thu Mar 23 17:18:10 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ class test {
|
|||||||
|
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
javac -cp %{buildroot}/%{_javadir}/%{name}.jar test.java
|
javac -source 8 -target 8 -cp %{buildroot}/%{_javadir}/%{name}.jar test.java
|
||||||
java -cp %{buildroot}/%{_javadir}/%{name}.jar: test 2>&1 | \
|
java -cp %{buildroot}/%{_javadir}/%{name}.jar: test 2>&1 | \
|
||||||
grep 'Exception in thread "main" java.lang.AssertionError: Hello world from junit'
|
grep 'Exception in thread "main" java.lang.AssertionError: Hello world from junit'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user