-
Bug
-
Resolution: Fixed
-
P3
-
8, 11, 17, 20, 21
-
b04
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8307052 | 20u-cpu | Sergey Bylokhov | P3 | Resolved | Fixed | master |
JDK-8306478 | 20.0.2 | Sergey Bylokhov | P3 | Resolved | Fixed | b03 |
JDK-8306479 | 17.0.8 | Sergey Bylokhov | P3 | Resolved | Fixed | b01 |
JDK-8307763 | 11.0.21-oracle | Renjith Kannath Pariyangad | P3 | Resolved | Fixed | b01 |
JDK-8307552 | 11.0.20 | Sergey Bylokhov | P3 | Resolved | Fixed | b02 |
JDK-8339292 | openjdk8u432 | Sergey Bylokhov | P3 | Resolved | Fixed | b04 |
The root cause is here:
https://github.com/openjdk/jdk/blob/master/src/java.desktop/macosx/native/libawt_lwawt/awt/CRobot.m#L352
Note that we would like to get from native kCGBitmapByteOrder32Host and kCGImageAlphaPremultipliedFirst
CGContextRef jPicContextRef = CGBitmapContextCreate(
jPixelData,
picWidth, picHeight,
8, picWidth * sizeof(jint),
picColorSpace,
kCGBitmapByteOrder32Host |
kCGImageAlphaPremultipliedFirst);
But kCGBitmapByteOrder32Host might not be what we expected in the java.
And looks like the kCGImageAlphaPremultipliedFirst is always wrong:
https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/Robot.java#L521
- backported by
-
JDK-8306478 On the latest macOS+XCode the Robot API may report wrong colors
- Resolved
-
JDK-8306479 On the latest macOS+XCode the Robot API may report wrong colors
- Resolved
-
JDK-8307052 On the latest macOS+XCode the Robot API may report wrong colors
- Resolved
-
JDK-8307552 On the latest macOS+XCode the Robot API may report wrong colors
- Resolved
-
JDK-8307763 On the latest macOS+XCode the Robot API may report wrong colors
- Resolved
-
JDK-8339292 On the latest macOS+XCode the Robot API may report wrong colors
- Resolved
- duplicates
-
JDK-8296848 [macos] Incorrect pixel color in AWT screen capture in Xcode 14.1 build
- Closed
- links to
-
Commit openjdk/jdk11u-dev/ceb6793b
-
Commit openjdk/jdk17u-dev/6254bdf8
-
Commit openjdk/jdk20u/3f8adc4f
-
Commit openjdk/jdk/50120396
-
Commit(master) openjdk/jdk8u-dev/e32d62e2
-
Review openjdk/jdk11u-dev/1822
-
Review openjdk/jdk17u-dev/1233
-
Review openjdk/jdk20u/47
-
Review openjdk/jdk/11733
-
Review(master) openjdk/jdk8u-dev/457