Details
-
Bug
-
Resolution: Fixed
-
P3
-
openjdk8u252
-
jdk built from http://hg.openjdk.java.net/jdk8u/jdk8u repository
affects jdk 8u252
-
b08
-
generic
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8241775 | openjdk8u262 | Laurent Bourgès | P3 | Resolved | Fixed | team |
Description
Steps to reproduce:
- Build jdk8u from http://hg.openjdk.java.net/jdk8u/jdk8u repository
- compile SimpleImage.java app:
-------------- SimpleImage.java ---------
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
public class SimpleImage {
public static void main(String[] args) throws Exception {
JLabel label = new JLabel("Hello, world");
label.setSize(200, 100);
BufferedImage buff = new BufferedImage(200, 100, BufferedImage.TYPE_INT_RGB);
Graphics g = buff.createGraphics();
g.setColor(Color.WHITE);
g.fillRect(0, 0, 200, 100);
label.print(g);
g.dispose();
ImageIO.write(buff, "png", new File("hello.png"));
}
}
----------------------------
Run the app with sun.java2d.renderer.log=true java property:
java -Dsun.java2d.renderer.log=true SimpleImage
---------------
INFO: Marlin software rasterizer = ENABLED
INFO: Version = [marlin-0.7.2-Unsafe-OpenJDK]
INFO: sun.java2d.renderer = sun.java2d.marlin.MarlinRenderingEngine
---------------
MarlinRenderingEngine is enabled by default.
- Build jdk8u from http://hg.openjdk.java.net/jdk8u/jdk8u repository
- compile SimpleImage.java app:
-------------- SimpleImage.java ---------
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
public class SimpleImage {
public static void main(String[] args) throws Exception {
JLabel label = new JLabel("Hello, world");
label.setSize(200, 100);
BufferedImage buff = new BufferedImage(200, 100, BufferedImage.TYPE_INT_RGB);
Graphics g = buff.createGraphics();
g.setColor(Color.WHITE);
g.fillRect(0, 0, 200, 100);
label.print(g);
g.dispose();
ImageIO.write(buff, "png", new File("hello.png"));
}
}
----------------------------
Run the app with sun.java2d.renderer.log=true java property:
java -Dsun.java2d.renderer.log=true SimpleImage
---------------
INFO: Marlin software rasterizer = ENABLED
INFO: Version = [marlin-0.7.2-Unsafe-OpenJDK]
INFO: sun.java2d.renderer = sun.java2d.marlin.MarlinRenderingEngine
---------------
MarlinRenderingEngine is enabled by default.
Attachments
Issue Links
- backported by
-
JDK-8241775 Marlin renderer should not be the default in 8u252
- Resolved
- relates to
-
JDK-8328194 Add a test to check default rendering engine
- Resolved