Commit Graph

759 Commits

Author SHA1 Message Date
Stuart Marks
9af3729cc7 8078463: TEST_BUG: optimize java/util/Map/Collisions.java
Reviewed-by: martin, chegar, dfuchs
2015-05-14 13:52:05 -07:00
Daniel Fuchs
04f236baec 8079773: java/util/logging/LogManager/TestLoggerNames.java
Fixed a race condition in the test which was responsible of the intermittent failure.

Reviewed-by: mchung
2015-05-12 14:32:50 +02:00
Paul Sandoz
0e7987c721 8078645: removeIf(filter) in ConcurrentHashMap removes entries for which filter is false
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: martin, dholmes
2015-05-12 10:50:40 +02:00
Chris Hegarty
008fee0591 8079782: RandomFactory should be in the jdk.testlibrary package
Reviewed-by: bpb
2015-05-08 11:02:33 +01:00
Joe Darcy
709770f935 8079544: Mark java/util/regex/RegExTest.java as failing intermittently
Reviewed-by: sherman
2015-05-06 16:00:15 -07:00
Joe Darcy
3830136846 8079419: Update to RegEx test to use random number library
Reviewed-by: sherman
2015-05-05 15:34:22 -07:00
Naoto Sato
ae93bb2873 8075545: Add permission check for locale service provider implementations
Reviewed-by: mchung, alanb
2015-04-29 11:03:56 -07:00
Joe Darcy
86c109e149 8078334: Mark regression tests using randomness
Reviewed-by: xuelei, alanb
2015-04-29 10:25:53 -07:00
Brian Burkhalter
6929be6fff 8075156: (prefs) get*() and remove() should disallow the use of the null control character '\u0000' as key
Extend disallowing null control character key to remove()

Reviewed-by: rriggs, alanb
2015-04-28 11:10:45 -07:00
Doug Lea
37fbfc1a3d 8078490: Missed submissions in ForkJoinPool
Reviewed-by: psandoz, shade, martin, chegar
2015-04-24 15:39:41 +02:00
Naoto Sato
5b2c289414 8076287: Performance degradation observed with TimeZone Benchmark
Reviewed-by: okutsu
2015-04-16 08:25:19 -07:00
Chris Hegarty
7e6f12e6e9 8076442: Cannot fully read BitSet.stream() if bit Integer.MAX_VALUE is set
Reviewed-by: alanb, henryjen
2015-04-07 10:33:08 +01:00
Xueming Shen
2de64493a2 8076641: getNextEntry throws ArrayIndexOutOfBoundsException when unzipping file
To add extra sanity check for entry extra data

Reviewed-by: alanb
2015-04-06 13:41:10 -07:00
Brent Christian
6c5d70bfbc 8071667: HashMap.computeIfAbsent() adds entry that HashMap.get() does not find
Throw ConcurrentModificationException from computeIfAbsent() & friends

Reviewed-by: chegar, psandoz
2015-04-02 12:33:03 -07:00
Daniel Fuchs
ce950c0798 7113878: LogManager - namedLoggers should be ConcurrentHashMap instead of Hashtable
NamedLoggers is now a ConcurrentHashMap. findLogger is updated to take benefit of the change.

Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: dholmes, lancea, martin, mchung, plevart
2015-04-02 16:24:46 +02:00
Daniel Fuchs
679db144e5 8075810: LogManager.readConfiguration may throw undocumented IllegalArgumentException
LogManager.readConfiguration will wrap the IllegalArgumentException thrown by Properties.load inside an IOException.

Reviewed-by: lancea, mchung, rriggs
2015-04-02 11:42:07 +02:00
Martin Buchholz
a194da7ffb 8076105: java/util/zip/EntryCount64k.java failing after push for JDK-8073158
Fix Windows newline problem; write enclosing class file for MacOSX

Reviewed-by: sherman, alanb
2015-03-30 09:46:05 -07:00
Masayoshi Okutsu
90e30c53bc 8075548: SimpleDateFormat formatting of "LLLL" in English is incorrect; should be identical to "MMMM"
Reviewed-by: naoto
2015-03-30 16:31:18 +09:00
Martin Buchholz
8ab93c84ec 8073158: zip files with total entry count 0xFFFF need not be ZIP64 files
Minor rewrite of crufty zip implementation in parse_manifest.c

Reviewed-by: sherman
2015-03-25 15:36:43 -07:00
Paul Sandoz
b220e6cb1d 8075307: Pipeline calculating inconsistent flag state for parallel stateful ops
Reviewed-by: smarks
2015-03-25 10:50:08 +00:00
Lev Priima
2b63b5d1d7 8075071: [TEST_BUG] TimSortStackSize2.java: OOME: Java heap space: MaxHeap shrinked by MaxRAMFraction
Reviewed-by: dholmes
2015-03-24 03:46:57 -04:00
Brian Burkhalter
d7419560c2 8075362: j.u.Properties.load() methods have misaligned @throws clauses
Add spaces to align the @throws clauses, and rename Basic.java test and its @summary clause.

Reviewed-by: rriggs
2015-03-20 10:37:03 -07:00
Naoto Sato
ca08065c34 8074350: Support ISO 4217 "Current funds codes" table (A.2)
8074351: Support for currencies with the 4 digits (or more) minor unit

Reviewed-by: okutsu
2015-03-17 16:04:26 -07:00
Xueming Shen
f3a2e4480d 8074678: JCK test java_util/regex/MatchResult/index.html starts failing after JDK-8071479
To add non-match sanity check

Reviewed-by: psandoz
2015-03-17 09:54:36 -07:00
Amy Lu
b8770ac035 8075111: Mark testFlatMappingClose (from CollectorsTest) as serialization hostile
Reviewed-by: psandoz
2015-03-16 10:24:16 +01:00
Aggelos Biboudis
cb566c6ce5 8067969: Optimize Stream.count for SIZED Streams
Reviewed-by: psandoz, chegar
2015-03-16 10:19:49 +01:00
Brian Burkhalter
6290291b27 8075110: (prefs) CodePointZeroPrefsTest fails on certain platforms
Contrain test to the Linux and Solaris OS families

Reviewed-by: darcy
2015-03-13 15:03:42 -07:00
Brian Burkhalter
17f8ee8cf0 8073214: javadoc of Properties methods should specify NullPointerExceptions
Add test for null parameter and corresponding throws clause to load() methods

Reviewed-by: darcy
2015-03-13 14:54:40 -07:00
Brian Burkhalter
68ef8f6035 8068373: (prefs) FileSystemPreferences writes \0 to XML storage, causing loss of all preferences
Disallow entries whose key or value contains the null control character '\u0000' from being stored in the preferences node.

Reviewed-by: psandoz, rriggs
2015-02-12 12:56:48 -08:00
Paul Sandoz
0405de7fca 8071479: Stream and lambdafication improvements to j.u.regex.Matcher
Reviewed-by: smarks, briangoetz, sherman
2015-03-03 12:30:48 +01:00
Claes Redestad
c8e99e3610 8073497: Lazy conversion of ZipEntry time
Reviewed-by: sherman, plevart
2015-02-28 13:17:13 +01:00
Paul Sandoz
95b2455d16 8071600: Add a flat-mapping collector
Reviewed-by: smarks, chegar, briangoetz
2015-02-27 09:58:25 +01:00
Lev Priima
ff45a0b5b0 8073354: TimSortStackSize2.java: test cleanup: make test run with single argument
Reviewed-by: dholmes
2015-02-26 18:50:02 -05:00
Daniel Fuchs
fc084beb84 8072645: java.util.logging should use java.time to get more precise time stamps
J.u.logging uses j.t.Instant to store LogRecord time stamps. XMLFormatter format is updated to allow for a new optional <nanos> element containing a nano second adjustment. SimpleFormatter passes a ZonedDateTime object to String.format. LogRecord getMillis/setMillis are deprecated, replaced by getInstant/setInstant.

Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: scolebourne, plevart, rriggs
2015-02-25 18:41:07 +01:00
Claes Redestad
16989e7b17 8068790: ZipEntry/JarEntry.setCreation/LastAccessTime(null) don't throw NPE as specified
Reviewed-by: coffeys, sherman
2015-02-21 13:46:24 +01:00
Lev Priima
a1d6f0cbcd 8073124: Tune test and document TimSort runs length stack size increase
Reviewed-by: dholmes
2015-02-16 19:16:50 -05:00
Paul Sandoz
a12ad15110 8069325: Pattern.splitAsStream does not return input if it is empty and there is no match
Reviewed-by: sherman
2015-02-13 11:13:30 +01:00
Paul Sandoz
4b2af9acf9 8071670: java.util.Optional: please add a way to specify if-else behavior
Reviewed-by: dfuchs, lowasser
2015-02-13 11:13:27 +01:00
Lev Priima
892b06056c 8072909: TimSort fails with ArrayIndexOutOfBoundsException on worst case long arrays
Reviewed-by: rriggs, dholmes
2015-02-12 10:34:35 -05:00
Paul Sandoz
7c67f47c4d 8050819: Please add java.util.Stream.ofNullable(T object)
Reviewed-by: alanb, smarks
2015-02-10 11:18:51 +01:00
Paul Sandoz
c007f0f7d4 8072030: Race condition in ThenComposeExceptionTest.java
Reviewed-by: chegar
2015-02-02 14:21:32 +01:00
Paul Sandoz
dd21d2c4db 8050820: Please add java.util.Optional.stream() to convert Optional<T> to Stream<T>
Reviewed-by: alundblad, forax, chegar, jrose
2015-02-02 14:19:12 +01:00
Masayoshi Okutsu
f6262c1abc 8065178: test/java/util/ResourceBundle/Bug6287579.java needs update for per language package support
Reviewed-by: naoto, peytoia
2015-01-27 12:59:45 +09:00
Paul Sandoz
d58ef60b88 8071477: Better Spliterator implementations for String.chars() and String.codePoints()
Reviewed-by: sherman
2015-01-26 17:26:49 +00:00
Peter Levart
eae923a8ae 8068427: Hashtable deserialization reconstitutes table with wrong capacity
Reviewed-by: mduigou, martin, chegar, dfuchs
2015-01-21 21:42:22 +01:00
Doug Lea
595be219a4 8068432: Inconsistent exception handling in CompletableFuture.thenCompose
Reviewed-by: psandoz, chegar, martin
2015-01-21 09:46:21 +00:00
Alejandro Murillo
c74ecba112 Merge 2015-01-08 17:11:49 -08:00
Brian Burkhalter
29fc16ebbe 8059175: Zero BigDecimal with negative scale prints leading zeroes in String.format
Correct erroneous appending of zeroes and clean up code logic.

Reviewed-by: darcy, psandoz
2015-01-07 14:15:00 -08:00
Yumin Qi
5e2fcdcda0 Merge 2014-12-19 22:58:32 -08:00
Katja Kantserova
f1e461b61e 6977426: sun/tools tests can intermittently fail to find app's Java pid
Reviewed-by: dfuchs, jbachorik, egahlin, sjiang
2014-12-19 13:13:11 +01:00
Naoto Sato
9cb99ee080 8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
Reviewed-by: alanb
2014-12-16 12:48:31 -08:00
Amy Lu
3b60f51758 8067112: Update java/util/Collections/EmptyIterator.java to eliminate dependency on sun.tools.java
Reviewed-by: chegar, prappo
2014-12-13 20:22:21 +00:00
Daniel Fuchs
7e7e10eb42 8065991: LogManager unecessarily calls JavaAWTAccess from within a critical section
The call to JavaAWTAccess is moved outside of the critical section

Reviewed-by: mchung
2014-12-05 12:20:51 +01:00
Chris Hegarty
43842f6349 Merge 2014-12-03 19:28:35 +00:00
Chris Hegarty
441905cdc7 8049367: Modular Run-Time Images
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore
2014-12-03 14:22:58 +00:00
Jan Lahoda
56d2ce25a9 8065998: Avoid use of _ as a one-character identifier
Reviewed-by: alanb, chegar, darcy
2014-12-02 15:12:40 +01:00
Daniel Fuchs
96da5b9ce3 8060132: Handlers configured on abstract nodes in logging.properties are not always properly closed
Loggers which have been configured with a handler in the configuration file will be retained by the LogManager until reset() is called. A new configuration property is added to explicitely turn the fix off.

Reviewed-by: mchung
2014-11-24 17:02:37 +01:00
Stuart Marks
da2c303927 8056313: TEST_BUG: java/util/Timer/NameConstructors.java fails intermittently
Reviewed-by: lancea, rriggs
2014-11-21 13:32:17 -08:00
Staffan Friberg
c90bc5b316 6321472: Add CRC-32C API
To add CRC-32C api and implementation

Reviewed-by: sherman
2014-11-21 09:28:53 -08:00
Claes Redestad
f50ee8896a 8058887: (fmt) Improve java/util/Formatter test coverage of group separators and width
Reviewed-by: sherman
2014-11-16 15:03:46 +01:00
Daniel Fuchs
59ca72f0eb 8059767: FileHandler should allow 'long' limits and handle overflow of MeteredStream.written
FileHandler now uses 'long' for limit and MeteredStream.written. It also reads a long for limit from the configuration, and has a new constructor allowing to pass a 'long' for limit.

Reviewed-by: alanb, igerasim, mchung
2014-10-22 17:23:14 +02:00
Martin Buchholz
72f7a2a671 8062194: java.util.jar.Attributes should use insertion-ordered iteration
S/HashMap/LinkedHashMap/g

Reviewed-by: alanb, sherman
2014-10-27 16:24:43 -07:00
Chris Hegarty
1a2e64b98b 8060052: FutureTask; fix underflow when timeout = Long.MIN_VALUE
Reviewed-by: martin
2014-10-11 14:45:27 +01:00
Amy Lu
9b4793ec4c 8058855: Update java.util.zip tests to work with modular image
Reviewed-by: dholmes, sherman, alanb
2014-10-11 13:24:23 +01:00
Daniel Fuchs
9183fba213 8028788: Logger.enterring uses String concatenation in a loop
Changed code to use StringBuilder instead.

Reviewed-by: chegar, lancea
2014-10-07 14:49:45 +02:00
Daniel Fuchs
7200372290 8025690: Default FileHandler constructor doesn't throw NullPointerException if pattern is empty and count > 1
Added additional check in default constructor in order to fix the oddity and make the implementation comply with the spec.

Reviewed-by: lancea
2014-10-01 18:16:45 +02:00
Daniel Fuchs
9087c7536e 8059269: FileHandler may throw NPE if pattern is a simple name and the lock file already exists
NPE may be thrown when Path.getParentPath() returns null. The fix is to call Path.getAbsolutePath().getParentPath() when Path.getParentPath() returns null.

Reviewed-by: alanb
2014-09-29 18:56:32 +02:00
Daniel Fuchs
0a6f6d9d89 8043306: Provide a replacement for the API that allowed to listen for LogManager configuration changes
Added two new methods to LogManager (addConfigurationListener/removeConfigurationListener) which provide an equivalent functionality with no ties to java.beans.

Reviewed-by: alanb, mchung, plevart, psandoz
2014-09-26 11:29:29 +02:00
Martin Buchholz
3951dda4cf 8056934: ZipInputStream does not correctly handle local header data descriptors with the optional signature missing
Fix off-by-one bug in EXTSIG handling; add docs.

Reviewed-by: sherman, alanb
2014-08-29 12:07:11 -07:00
Yong Jeffrey Huang
95232def75 8055222: ISO 4217 Amendment #159
Reviewed-by: naoto
2014-09-04 00:32:43 -07:00
Amy Lu
ff93fd2cce 8042003: Update java/lang/Math tests to eliminate dependency on sun.misc.DoubleConsts and sun.misc.FloatConsts
Reviewed-by: mchung, darcy
2014-08-22 14:56:09 -07:00
Martin Buchholz
15aa55d99e 8055675: java/util/Currency/PropertiesTest.sh fails on OS X after JDK-8055253
Replace obsolescent cp -r with cp -R.  Add more error checks.

Reviewed-by: naoto
2014-08-20 11:06:38 -07:00
Amy Lu
f9c8748b48 8055262: Update jdk/test/java/util/Base64 tests to remove use of sun.misc.BASE64Encoder/Decoder
Reviewed-by: mchung, sherman
2014-08-19 12:26:34 -07:00
Daniel Fuchs
f0133ac1a0 8052403: java/util/logging/CheckZombieLockTest.java fails with NoSuchFileException
CheckZombieLockTest and CheckLockLocationTest should work with different temporary log directories so that they can be run concurrently. This fix changes the name of the log directory used by CheckZombieLockTest.

Reviewed-by: mchung
2014-08-19 17:11:28 +02:00
Martin Buchholz
0613e548bb 8055253: test/java/util/Currency/PropertiesTest.sh modifies the test JDK
Always make a temp copy of the test JDK before destructively modifying

Reviewed-by: naoto, alanb
2014-08-18 21:06:45 -07:00
Daniel Fuchs
15a875a7a5 8054480: Test java/util/logging/TestLoggerBundleSync.java fails: Unexpected bundle name: null
This is due to a race condition in the test where one GetRB thread can receive a stale LogRecord comming from another GetRB thread.

Reviewed-by: dholmes
2014-08-14 15:18:11 +02:00
Ivan Gerasimov
b79daf9354 8054221: StringJoiner imlementation optimization
Reviewed-by: martin
2014-08-07 15:07:33 +04:00
Masayoshi Okutsu
d84a697aad 8048123: Replace calendars.properties with another mechanism to specify a new Japanese calendar era
Reviewed-by: naoto, alanb
2014-08-07 13:04:26 +09:00
Chris Hegarty
343fd87ea8 8053938: Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
Reviewed-by: rriggs, mduigou
2014-07-30 17:42:18 +01:00
Mike Duigou
ab68202313 8048209: Collections.synchronizedNavigableSet().tailSet(Object,boolean) synchronizes on wrong object
Reviewed-by: psandoz, chegar
2014-07-24 09:01:00 -07:00
Claes Redestad
23f341125f 8006627: UUID to/from String performance should be improved by reducing object allocations
Co-authored-by: Steven Schlansker <stevenschlansker@gmail.com>
Reviewed-by: mduigou, plevart
2014-07-21 23:07:40 +02:00
Paul Sandoz
7a0238bfd3 8044047: Missing null pointer checks for streams
Co-authored-by: Ivan Gerasimov <ivan.gerasimov@oracle.com>
Reviewed-by: dfuchs
2014-07-16 14:35:48 +02:00
Ivan Gerasimov
e03728427a 8035975: Pattern.compile(String, int) fails to throw IllegalArgumentException
Reviewed-by: sherman
2014-07-16 13:02:24 +04:00
Ivan Gerasimov
1203c8ea34 6904367: (coll) IdentityHashMap is resized before exceeding the expected maximum size
Reviewed-by: plevart, martin
2014-07-12 04:15:56 +04:00
Daniel Fuchs
7c04b45666 8048913: java/util/logging/LoggingDeadlock2.java times out
Removes the /timeout=15 parameter from the @run command line

Reviewed-by: mchung, dholmes
2014-07-09 17:51:50 +02:00
Daniel Fuchs
44470419c0 8048020: Regression on java.util.logging.FileHandler
In some circumstances j.u.l.FileHandler can leave zombie lock files on the file system. The fix lets FileHandler reuse such zombie lock files when it sees them - as it used to do in version 1.7 of the JDK.

Reviewed-by: alanb
2014-07-07 15:31:07 +02:00
Martin Buchholz
b6e211ab64 8048990: ZipFile.entries() can't handle empty zip entry names
GetEntryBytes should never return null pointer for entry names

Reviewed-by: sherman
2014-07-02 10:21:23 -07:00
Mike Duigou
efbff37c1a 8048207: Collections.checkedQueue.offer() calls add on wrapped queue
Reviewed-by: psandoz
2014-06-27 10:26:39 -07:00
Naoto Sato
72fb4c3adf 8039317: Read currency.data as a resource
Reviewed-by: alanb, chegar
2014-06-26 10:48:43 -07:00
Mike Duigou
6c860a781a 8047795: Collections.checkedList checking bypassed by List.replaceAll
Reviewed-by: psandoz, chegar
2014-06-25 12:36:03 -07:00
Martin Buchholz
a5943eeeae 8004807: java/util/Timer/Args.java failing intermittently in HS testing
Update test to improve reliability

Reviewed-by: rriggs, ewang
2014-06-10 08:07:39 -07:00
Mike Duigou
a76e39b79f 8046085: inserting null key into HashMap treebin fails
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Reviewed-by: dl, mduigou, alanb, chegar
2014-06-06 14:23:08 -07:00
Ivan Gerasimov
a9f575446d 8037866: Replace the Fun class in tests with lambdas
Reviewed-by: martin
2014-06-02 19:49:57 +04:00
Joe Wang
91d9371566 8043592: The basic XML parser based on UKit fails to read XML files encoded in UTF-16BE or LE
Reviewed-by: sherman, lancea
2014-05-27 17:26:52 -07:00
Ivan Gerasimov
73995e8591 8043476: java/util/BitSet/BSMethods.java failed with: java.lang.OutOfMemoryError: Java heap space
Reviewed-by: alanb
2014-05-26 19:59:28 +04:00
Alan Bateman
3b959b9adf 8043119: (props) Properties.storeToXML closes output stream
Reviewed-by: lancea
2014-05-14 16:40:53 +01:00
Alan Bateman
51093931dc 8042889: (props) Properties.loadFromXML/storeToXML should consistently use the UKit parser
Reviewed-by: joehw, chegar, mchung
2014-05-13 11:03:25 +01:00
Yuka Kamiya
b597db519c 8042360: Subtag syntax check is incomplete in Locale.LanguageRange
Reviewed-by: naoto, okutsu
2014-05-08 08:22:25 +09:00
Paul Sandoz
b6182243e5 8042355: stream with sorted() causes downstream ops not to be lazy
Reviewed-by: mduigou
2014-05-06 10:29:59 +02:00
Ivan Gerasimov
c1e26ac310 8040806: BitSet.toString() can throw IndexOutOfBoundsException
Reviewed-by: plevart, mduigou
2014-05-06 10:28:48 +04:00