80 Commits

Author SHA1 Message Date
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
Stuart Marks
0e680c10d5 8068749: Restrict javax.imageio.spi.ServiceRegistry to ImageIO types
Reviewed-by: prr, serb
2015-08-13 13:30:15 -07:00
Yuri Nesterenko
bdc20e1849 8076468: Add @modules to tests in jdk_desktop test group
Reviewed-by: yan, alexsch
2015-06-23 11:59:27 +03:00
Prasanta Sadhukhan
58c413e2d4 8080086: Test javax/imageio/plugins/png/ItxtUtf8Test.java fails on Linux with G1 GC
Reviewed-by: prr, serb
2015-06-01 13:40:43 +03:00
Andrew Brygin
e7e3187500 8074954: ImageInputStreamImpl.readShort/readInt do not behave correctly at EOF
Reviewed-by: prr, serb
2015-03-23 11:19:41 +03:00
Sergey Bylokhov
104db62eca 4958064: JPGWriter does not throw UnsupportedException when canWriteSequence retuns false
Reviewed-by: prr, bae
2015-02-27 01:06:39 +03:00
Sergey Bylokhov
d32000a710 4952954: abort flag is not cleared for every write operation for JPEG ImageWriter
Reviewed-by: bae, prr
2015-02-05 14:20:05 +03:00
Phil Race
a75613049b 6243376: JPEGImageWriter corrupts color for non-JFIF images with differing sample factor
Reviewed-by: bae, serb
2015-02-04 10:28:40 -08:00
Andrew Brygin
bce59468e0 8041465: BMPImageReader read error using ImageReadParam with set sourceRectangle
Reviewed-by: serb, prr
2014-09-12 13:04:18 +01:00
Mikhail Cherkasov
cb14edb87e 4991647: PNGMetadata.getAsTree() sets bitDepth to invalid value
Reviewed-by: prr, bae
2014-07-10 18:46:40 +04:00
Andrew Brygin
a89eab1dc7 6945174: IndexOutOfBoundsException calling ImageIO.read() on malformed PNG
Reviewed-by: prr, serb
2014-05-14 18:19:14 +04:00
Phil Race
859a0e94f1 8032370: No "Truncated file" warning from IIOReadWarningListener on JPEGImageReader
Reviewed-by: bae, vadim
2014-01-24 10:11:16 -08:00
Lana Steuck
657b9db1ba 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Updated files with 2011, 2012 and 2013 years according to the file's last updated date

Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00