Opened 5 years ago
Closed 5 years ago
#19309 closed defect (othersoftware)
Mac OS X 10.15.5 with AdoptOpenJDK 11.0.7 has black table headers
Reported by: | taylor.smock | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report, mac, java11, AdoptOpenJDK | Cc: |
Description (last modified by )
What steps will reproduce the problem?
java -jar ${PATH TO JOSM JAR}
- Open Imagery Preferences
- See black bars
What is the expected result?
Table headers are standard greyish colour
What happens instead?
Table headers are black
Please provide any additional information below. Attach a screenshot if possible.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-05-27 21:23:59 +0200 (Wed, 27 May 2020) Revision:16511 Build-Date:2020-05-28 01:30:47 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (16511 en) Mac OS X 10.15.5 OS Build number: Mac OS X 10.15.5 (19F96) Memory Usage: 370 MB / 4096 MB (115 MB allocated, but free) Java version: 11.0.7+10, AdoptOpenJDK, OpenJDK 64-Bit Server VM Screen: Display 69734272 1280x800, Display 188945226 1920x1080, Display 188945225 1920x1080 Maximum Screen Size: 1920x1080 Last errors/warnings: - E: Region [TMS_BLOCK_v2] : Problem loading keys for file TMS_BLOCK_v2
Notes: Only reproducible with Java 11 on Mac. Java 8/14 both work properly.
Attachments (1)
Change History (9)
by , 5 years ago
Attachment: | Screen Shot 2020-05-28 at 3.42.31 PM.png added |
---|
comment:1 by , 5 years ago
Keywords: | java11 added; os x java 11 removed |
---|
comment:2 by , 5 years ago
Summary: | Mac OS X 10.15.5 with AdoptOpenJDK 11 → Mac OS X 10.15.5 with AdoptOpenJDK 11 has black table headers |
---|
comment:3 by , 5 years ago
Description: | modified (diff) |
---|
comment:4 by , 5 years ago
Description: | modified (diff) |
---|
comment:5 by , 5 years ago
comment:6 by , 5 years ago
Summary: | Mac OS X 10.15.5 with AdoptOpenJDK 11 has black table headers → Mac OS X 10.15.5 with AdoptOpenJDK 11.0.7 has black table headers |
---|
This seems to always happen. I'm inclined to file it as a Java bug, and specifically an AdoptOpenJDK bug. It only occurs with Java 11 with AdoptOpenJDK. It does not occur with Azul Java 11. It does not occur with AdoptOpenJDK 10 or 12. It also does not occur with AdoptOpenJDK 11.0.6. So this seems to be more of a regression on their end.
comment:7 by , 5 years ago
Filed upstream at https://github.com/AdoptOpenJDK/openjdk-support/issues/120
comment:8 by , 5 years ago
Keywords: | AdoptOpenJDK added |
---|---|
Resolution: | → othersoftware |
Status: | new → closed |
Will be fixed in 11.0.8 –
https://github.com/AdoptOpenJDK/openjdk-support/issues/120#issuecomment-640045603
I tested on a nightly build of 11.0.8 and there the problem is fixed. As with 14.0.1, Swing does not try to adapt to Dark Mode. Instead, everything stays in light mode:
Dark Mode is unsupported. The problem is indeed the 10.14 SDK (that Azul does not use yet) which automatically opts into Dark Mode support: https://bugs.openjdk.java.net/browse/JDK-8241135. The umbrella issue to opt out is https://bugs.openjdk.java.net/browse/JDK-8231438.
For reference, how to reproduce (enable Dark Mode):
$ wget https://docs.oracle.com/javase/tutorial/uiswing/examples/components/SimpleTableDemoProject/src/components/SimpleTableDemo.java $ javac -d . SimpleTableDemo.java $ java components.SimpleTableDemo
Does this always happen? With only one screen attached?
Sometimes, I have a similar issues on Linux if the system is slow/heavy loaded but these are more artifacts which disappear. Did not figure out the real reason as it could be many (old hardware, wayland, gnome3, gnome3-plugins, openjdk or JOSM) or even a certain combination.