Commit Graph

92 Commits

Author SHA1 Message Date
Phil Race
d744fce249 8183351: Better cleanup for jdk/test/javax/imageio/spi/AppletContextTest/BadPluginConfigurationTest.sh
Reviewed-by: serb
2017-08-31 13:09:31 -07:00
Shashidhara Veerabhadraiah
bd56ddbad4 8183341: Better cleanup for javax/imageio/AllowSearch.java
Reviewed-by: prr, jdv, pnarayanan
2017-07-24 11:54:57 +05:30
Jayathirth D V
a0f472d880 8183349: Better cleanup for jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java and WriteAfterAbort.java
Reviewed-by: serb, pnarayanan
2017-07-17 14:18:35 +05:30
Igor Ignatyev
77a5de5089 8181762: add explicit @build actions for jdk.test.lib classes in all :tier3 tests
Reviewed-by: alanb
2017-06-12 12:45:52 -07:00
Lana Steuck
ce477ddb3a Merge 2017-06-03 02:49:49 +00:00
Sergey Bylokhov
edb00726d3 8177628: Opensource unit/regression tests for ImageIO
Reviewed-by: prr, pnarayanan
2017-05-22 19:54:23 -07:00
Igor Ignatyev
551c6fdad3 8180805: move RandomFactory to the top level testlibrary
Reviewed-by: bpb, rriggs
2017-05-30 21:14:45 -07:00
Jayathirth D V
888fc3458a 8152561: Is it allowed to have zero value for count in TIFFField.createArrayForType() for the rationals
Reviewed-by: psadhukhan, bpb, prr
2017-01-27 12:16:57 +05:30
Brian Burkhalter
bcfb267efe 8154058: [TIFF] ignoreMetadata parameter of TIFFImageReader's setInput() method affects TIFFImageReadParam in non-obvious way
Add readUnknownTags to TIFFImageReadParam and add ReadParamTest

Reviewed-by: prr
2016-12-13 12:02:37 -08:00
Brian Burkhalter
42edb006ef 8169728: Missing sign checks in TIFFField(TIFFTag tag, int type, int count, Object data) for TIFFTag.TIFF_LONG
Add further checks for TIFF_LONG, TIFF_RATIONAL, TIFF_SRATIONAL, and TIFF_IFD_POINTER.

Reviewed-by: prr
2016-12-09 13:48:06 -08:00
Brian Burkhalter
12d7914077 8169725: cannot use TIFFField(TIFFTag tag, int value) for TIFF_LONG values greater than Integer.MAX_VALUE
Change constructor TIFFField(TIFFTag,int) to TIFFField(TIFFTag,long).

Reviewed-by: jdv, prr
2016-12-09 11:08:38 -08:00
Brian Burkhalter
599879e45f 8164750: TIFF reading fails when ignoring metadata with BaselineTIFFTagSet removed
Disallow not adding to metadata fields which are critical to reading the image data even when the BaselineTIFFTagSet has been removed from the TIFFImageReadParam and the ignoreMetadata flag is set.

Reviewed-by: prr
2016-11-02 11:07:16 -07:00
Jayathirth D V
27043084d2 8167281: IIOMetadataNode bugs in getElementsByTagName and NodeList.item methods
Reviewed-by: prr, pnarayanan
2016-10-17 13:04:33 +05:30
Jayathirth D V
cd11a435b1 6294607: GIFWriter returns the same compression type twice
Reviewed-by: prr, serb, bpb
2016-10-13 11:37:32 +05:30
Jayathirth D V
3f1ae2ad4e 8164931: Verify if writer.abort() works properly for all writers in IIOWriteProgressListener
Reviewed-by: prr, bpb, serb, psadhukhan
2016-09-29 10:57:34 +05:30
Jayathirth D V
a99b7ce759 4924727: reader.abort() method does not work when called inside imageStarted for PNG
Reviewed-by: prr, serb, bpb
2016-09-12 12:07:56 +05:30
Brian Burkhalter
60eccdede5 8149562: TIFFField#createFromMetadataNode javadoc should provide information about sibling/child nodes that should be part of parameter node
Add a throws clause to the TIFFField.createFromMetadataNode method specification stating that the supplied Node parameter must adhere to the TIFFField element structure defined by the TIFF native image metadata DTD.

Reviewed-by: prr, darcy, serb
2016-08-24 10:59:17 -07:00
Jayathirth D V
5390af7c2b 8163258: Getting NullPointerException from ImageIO.getReaderWriterInfo due to failure to check for null
Reviewed-by: prr, psadhukhan
2016-08-19 12:22:23 +05:30
Brian Burkhalter
61860ae01d 8152966: ClassCastException when adding IFD to the TIFFDirectory before the image write
Move the private method getDirectoryAsIFD(TIFFDirectory) from the API class TIFFDirectory to a public method in the internal class TIFFIFD and replace all casts of TIFFDirectory to TIFFIFD with its invocation

Reviewed-by: prr
2016-08-12 14:35:56 -07:00
Brian Burkhalter
d41cfa354a 8145014: "IIOException: Couldn't seek!" when calling TIFFImageReader.getNumImages()
In locateImage() break and decrement image count for zero-entry IFDs and on encountering an EOF.

Reviewed-by: prr
2016-08-11 11:35:47 -07:00
Phil Race
79b2dd4b8d Merge 2016-08-11 10:37:50 -07:00
Mandy Chung
e2a0ff3e0d 8136930: Simplify use of module-system options by custom launchers
Reviewed-by: alanb, ksrini, henryjen, sundar
2016-08-10 15:51:25 -07:00
Brian Burkhalter
f270d810ad 8150154: AIOOB Exception during sequential write of TIFF images
Need to reset isRescaling variable when resetting the ImageWriter.

Reviewed-by: prr
2016-08-08 11:09:19 -07:00
Jayathirth D V
d375707075 8160943: skipImage() in JPEGImageReader class throws IIOException if we have gaps between markers in Jpeg image
Reviewed-by: prr, flar
2016-08-02 15:55:03 +05:30
Phil Race
f3b4127564 8140314: Verify IIOMetadataFormat class on loading
Reviewed-by: bpb
2016-07-22 15:57:57 -07:00
Brian Burkhalter
13f9c0a307 8148454: [PIT] Failure of ReplaceMetadataTest on TIFF with IllegalStateException
Move super.setOutput() to end of setOutput() to avoid setting super.output to null

Reviewed-by: prr
2016-07-22 14:32:49 -07:00
Jayathirth D V
68aae8c142 7059970: Test case: javax/imageio/plugins/png/ITXtTest.java is not closing a file
Reviewed-by: prr, bpb, psadhukhan
2016-07-13 17:34:26 +05:30
Jayathirth D V
10493ff2bd 8152672: IIOException while getting second image properties for JPEG
Reviewed-by: prr, flar
2016-07-01 13:58:55 +05:30
Alexander Stepanov
540242ecef 8152183: [TEST] add test for TIFFField
Reviewed-by: prr, yan
2016-04-08 12:56:28 +03:00
Jayathirth D V
d69d30499a 8044289: In ImageIO.write() and ImageIO.read() null stream is not handled properly
Reviewed-by: prr, serb, psadhukhan
2016-04-06 12:25:21 +05:30
Alexander Stepanov
fbd868d77c 8149028: [TEST] add test for TIFFDirectory
Reviewed-by: ssadetsky, yan
2016-04-01 13:52:04 +03:00
Alexander Stepanov
92f7b367fa 8149558: [TEST] add regression test for JDK-8150154
Reviewed-by: serb, yan
2016-03-25 15:49:24 +03:00
Alan Bateman
db4d383614 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com>
Co-authored-by: Huaming Li <huaming.li@oracle.com>
Co-authored-by: Sean Mullan <sean.mullan@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com>
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Stuart Marks <stuart.marks@oracle.com>
Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Felix Yang <felix.yang@oracle.com>
Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com>
Co-authored-by: Frank Yuan <frank.yuan@oracle.com>
Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Tiantian Du <tiantian.du@oracle.com>
Co-authored-by: Sha Jiang <sha.jiang@oracle.com>
Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
2016-03-17 19:04:16 +00:00
Joe Darcy
bf048683fc 8148914: BitDepth.java test fails
Reviewed-by: bpb, prr
2016-02-17 12:47:35 -08:00
Alexander Stepanov
5b2d0bfd39 8145780: create a simple test for TIFF tag sets
Reviewed-by: bpb, yan
2016-02-04 14:27:16 +03:00
Jayathirth D V
25f9c2a196 8022640: ServiceRegistry (used by ImageIO) lack synchronization
Reviewed-by: prr, psadhukhan
2016-02-01 15:39:02 +05:30
Alexander Stepanov
08f0edbf5a 8146881: [TEST] update some imageio plugins tests to affect TIFF format
Reviewed-by: serb, ssadetsky
2016-01-22 13:37:46 +03:00
Jayathirth D V
a757640460 8143562: JPEG reader returns null for getRawImageType()
Reviewed-by: prr, arapte
2016-01-19 11:11:20 +05:30
Alexander Stepanov
5a0d7f856f 8145776: [TEST] add a test checking multipage tiff creation
Reviewed-by: bpb, serb, ssadetsky
2016-01-14 16:22:31 +03:00
Laurent Bourgès
8d70fa8891 8145608: PNG writer should permit setting compression level and iDAT chunk maximum size
Reviewed-by: serb, prr
2015-12-16 15:29:57 -08:00
Phil Race
2a51a0bf5e 8146508: 6488522 was committed with incorrect author attribution
Reviewed-by: bpb
2015-12-16 15:22:56 -08:00
Phil Race
20a2e2f7eb 6488522: PNG writer should permit setting compression level and iDAT chunk maximum size
Reviewed-by: serb, prr
2015-12-16 14:36:37 -08:00
Brian Burkhalter
5b1765f25d 8144245: [PIT] javax/imageio/plugins/shared/WriteAfterAbort.java
Reset stream position after abort; change IAEs to NPEs.

Reviewed-by: prr, serb
2015-12-11 11:38:18 -08:00
Jiri Vanek
854c765186 8144071: ImageIO does not reset stream if an exception is thrown
Reset the I/O stream in a finally block

Reviewed-by: andrew
2015-12-02 21:23:59 +00:00
Jayathirth D V
2b89c8529d 8041501: ImageIO reader is not capable of reading JPEGs without JFIF header
Reviewed-by: prr, psadhukhan
2015-12-02 00:52:49 +05:30
Jayathirth D V
3a2b32b707 6967419: IndexOutOfBoundsException when drawing PNGs
Reviewed-by: prr, psadhukhan
2015-12-02 00:47:36 +05:30
Jayathirth D V
e300345cc8 8074967: [macosx] JPEGImageReader incorrectly identifies YCbCr JPEGs as RGB in standard metadata
Reviewed-by: prr, psadhukhan
2015-12-02 00:34:35 +05:30
Jayathirth D V
bfcf012a01 7182758: BMPMetadata returns invalid PhysicalPixelSpacing
Reviewed-by: serb, vadim
2015-10-20 22:46:29 +03:00
Jayathirth D V
059474a6ee 8066904: NullPointerException when calling ImageIO.read(InputStream) with corrupt BMP
Reviewed-by: serb, prr
2015-10-13 14:59:44 +03:00
Martin Buchholz
24742f7b1d 8134984: Text files should end in exactly one newline
Automated fixup of newlines at end-of-file via the usual perl one-liner

Reviewed-by: chegar, sherman
2015-09-02 14:11:50 -07:00