Bug#1057536: tiles-autotag: FTBFS with default Java 21

2024-02-20 Thread tony mancill
On Fri, Feb 16, 2024 at 04:22:14PM +1300, Vladimir Petko wrote:
> Hi,
> 
> The issue is caused by the outdated version of the byte-buddy. Upgrading it
> to 1.14 should solve the issue.
> The issue can be worked around by adding -Dnet.bytebuddy.experimental=true
> to the argLine in maven-surefire-plugin.

FTBFS with Java 21 fixed via the work-around for now.



Bug#1057536: tiles-autotag: FTBFS with default Java 21

2024-02-15 Thread Vladimir Petko
Hi,

The issue is caused by the outdated version of the byte-buddy. Upgrading it
to 1.14 should solve the issue.
The issue can be worked around by adding -Dnet.bytebuddy.experimental=true
to the argLine in maven-surefire-plugin.
This is the same issue as[1].

 Best Regards,
  Vladimir.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=105751



Bug#1057536: tiles-autotag: FTBFS with default Java 21

2023-12-05 Thread Vladimir Petko
Source: tiles-autotag
Version: 1.2-4
Severity: important
Tags: ftbfs
User: debian-j...@lists.debian.org
Usertags: default-java21

Dear Maintainers,

The package tiles-autotag ftbfs with default Java 21.
The relevant part of the build log:
---
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest
[ERROR] Tests run: 5, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.517 s 
<<< FAILURE! - in org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest
[ERROR] 
testEvaluateWithoutWriting(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)
  Time elapsed: 0.397 s  <<< ERROR!
java.lang.IllegalArgumentException: Could not create type
at 
org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWriting(AbstractModelBodyTest.java:95)
Caused by: java.lang.IllegalArgumentException: 
org.easymock.mocks.Writer$$$EasyMock$1 must be defined in the same package as 
org.easymock.internal.ClassProxyFactory
at 
org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWriting(AbstractModelBodyTest.java:95)

[ERROR] 
testEvaluateWithoutWritingException(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)
  Time elapsed: 0.041 s  <<< ERROR!
java.lang.Exception: Unexpected exception, expected but 
was
at 
org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWritingException(AbstractModelBodyTest.java:111)
Caused by: java.lang.IllegalArgumentException: 
org.easymock.mocks.Writer$$$EasyMock$2 must be defined in the same package as 
org.easymock.internal.ClassProxyFactory
at 
org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWritingException(AbstractModelBodyTest.java:111)

[ERROR] 
testEvaluateAsStringException(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)
  Time elapsed: 0.022 s  <<< ERROR!
java.lang.Exception: Unexpected exception, expected but 
was
at 
org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateAsStringException(AbstractModelBodyTest.java:75)
Caused by: java.lang.IllegalArgumentException: 
org.easymock.mocks.Writer$$$EasyMock$3 must be defined in the same package as 
org.easymock.internal.ClassProxyFactory
at 
org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateAsStringException(AbstractModelBodyTest.java:75)

[ERROR] 
testEvaluate(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time 
elapsed: 0.018 s  <<< ERROR!
java.lang.IllegalArgumentException: Could not create type
at 
org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluate(AbstractModelBodyTest.java:46)
Caused by: java.lang.IllegalArgumentException: 
org.easymock.mocks.Writer$$$EasyMock$4 must be defined in the same package as 
org.easymock.internal.ClassProxyFactory
at 
org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluate(AbstractModelBodyTest.java:46)

[INFO] Running org.apache.tiles.autotag.core.runtime.util.NullWriterTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in 
org.apache.tiles.autotag.core.runtime.util.NullWriterTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   AbstractModelBodyTest.testEvaluate:46 » IllegalArgument Could not 
create type
[ERROR]   AbstractModelBodyTest.testEvaluateAsStringException »  Unexpected 
exception, e...
[ERROR]   AbstractModelBodyTest.testEvaluateWithoutWriting:95 » IllegalArgument 
Could no...
[ERROR]   AbstractModelBodyTest.testEvaluateWithoutWritingException »  
Unexpected except...
[INFO]
[ERROR] Tests run: 8, Failures: 0, Errors: 4, Skipped: 0
[INFO]
[INFO] 
[INFO] Reactor Summary for Autotags 1.2:
[INFO]
[INFO] Autotags ... SUCCESS [  0.002 s]
[INFO] Autotag - Core runtime . FAILURE [ 10.816 s]
[INFO] Autotag - Core . SKIPPED
[INFO] Tiles Autotag - JSP tags automatic generation .. SKIPPED
[INFO] Autotag - Freemarker support ... SKIPPED
[INFO] Autotag - Velocity support . SKIPPED
[INFO] maven-autotag-plugin Maven Mojo  SKIPPED
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time:  10.903 s
[INFO] Finished at: 2023-12-04T19:54:39Z
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.3:test (default-test) on 
project tiles-autotag-core-runtime: There are test failures.
[ERROR]
[ERROR] Please refer to