Skip to content

Commit 2d3e769

Browse files
committed
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.
1 parent 7e66753 commit 2d3e769

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
dist: trusty
22
language: java
3-
# There are test cases that use ImageIO with JPEG and that only work on Oracle JDK.
43
jdk:
54
- oraclejdk8
65
install: true

axis-rt-core/src/main/java/org/apache/axis/attachments/ImageDataSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class ImageDataSource implements DataSource {
3737
protected static Log log =
3838
LogFactory.getLog(ImageDataSource.class.getName());
3939

40-
public static final String CONTENT_TYPE = "image/jpeg";
40+
public static final String CONTENT_TYPE = "image/png";
4141

4242
private final String name;
4343
private final String contentType;

0 commit comments

Comments
 (0)