This is an automated email from the ASF dual-hosted git repository. veithen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis1-java.git
commit 2d3e769a64128f407ba201240f9d83669e587973 Author: Andreas Veithen <andreas.veit...@gmail.com> AuthorDate: Sun Aug 13 20:09:55 2023 +0000 Make ImageDataSource use PNG This makes the code compatible with OpenJDK 8 (while currently it will only work on Oracle JDK 8). PNG is probably the better choice anyway because it is lossless. --- .travis.yml | 1 - .../src/main/java/org/apache/axis/attachments/ImageDataSource.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ac50702f9..741531b8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ dist: trusty language: java -# There are test cases that use ImageIO with JPEG and that only work on Oracle JDK. jdk: - oraclejdk8 install: true diff --git a/axis-rt-core/src/main/java/org/apache/axis/attachments/ImageDataSource.java b/axis-rt-core/src/main/java/org/apache/axis/attachments/ImageDataSource.java index 0fe4fe621..c07958e82 100644 --- a/axis-rt-core/src/main/java/org/apache/axis/attachments/ImageDataSource.java +++ b/axis-rt-core/src/main/java/org/apache/axis/attachments/ImageDataSource.java @@ -37,7 +37,7 @@ public class ImageDataSource implements DataSource { protected static Log log = LogFactory.getLog(ImageDataSource.class.getName()); - public static final String CONTENT_TYPE = "image/jpeg"; + public static final String CONTENT_TYPE = "image/png"; private final String name; private final String contentType;