Modify ↓
#19017 closed defect (fixed)
MapCSSRendererTest output differs between Java 8 and Java 11
| Reported by: | Don-vip | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 20.03 |
| Component: | Unit tests | Version: | |
| Keywords: | java11 | Cc: | simon04 |
Description
Jenkins build fails because of a difference between Java 8 and Java 11:
https://josm.openstreetmap.de/jenkins/job/JOSM/jdk=JDK11/lastCompletedBuild/testReport/
@Simon: do you have any idea how to make this test more robust?
Attachments (0)
Change History (9)
comment:1 by , 6 years ago
| Keywords: | java11 added |
|---|
comment:2 by , 6 years ago
comment:6 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



The differences all seem to be at the edges of the painted shapes. After investigating the
test-differences.png, my first guesses are/were transparency and anti-aliasing. The diffs are mostly related to the alpha channel.Regarding transparency, painting on a white background without alpha channel does not make a difference (might be a stupid/useless test):
test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java