Commit Graph

770 Commits

Author SHA1 Message Date
Amy Lu
6f7645f43c 8058569: Update java/lang/invoke/lambda tests to eliminate dependency on sun.tools.jar.Main
Reviewed-by: dholmes, alanb
2014-09-17 23:27:59 -04:00
Vladimir Ivanov
21e3c51138 8058584: Ignore java/lang/invoke/LFCaching/LFGarbageCollectedTest until 8057020 is fixed
Reviewed-by: darcy, alanb
2014-09-16 23:04:13 +04:00
John Rose
da56d3f6d1 8050052: Small cleanups in java.lang.invoke code
Reviewed-by: vlivanov, psandoz
2014-09-10 19:19:47 +04:00
Vladimir Ivanov
0898161932 8049555: Move varargsArray from sun.invoke.util package to java.lang.invoke
Reviewed-by: psandoz, iignatyev
2014-09-10 19:19:47 +04:00
Claes Redestad
1dc4b5e2f8 8055251: Re-examine Integer.parseInt and Long.parseLong methods
Reviewed-by: alanb
2014-09-10 13:51:17 +01:00
Stefan Karlsson
a85101b24e 8057174: MemoryMXBean tests -- TEST FAILED: chunkSize: 6291456 is less than YOUNG_GEN_SIZE: 8388608
Reviewed-by: jbachorik, jwilhelm, dfuchs
2014-09-04 13:20:27 +02:00
Andrej Golovnin
fe519e6845 5043030: (reflect) unnecessary object creation in reflection
Use valueOf() instead of new for primitive wrappers.

Reviewed-by: jfranck
2014-09-09 12:04:31 +02:00
Joel Borggrén-Franck
febacf5319 8054987: (reflect) Add sharing of annotations between instances of Executable
Reviewed-by: darcy, plevart
2014-09-09 10:48:01 +02:00
Konstantin Shefov
881fa79cfe 8057719: Develop new tests for LambdaForm Reduction and Caching feature
Reviewed-by: iignatyev, vlivanov, psandoz
2014-09-12 22:33:09 +04:00
Konstantin Shefov
9e30841d28 8057707: TEST library enhancement in lib/testlibrary/jsr292/com/oracle/testlibrary/jsr292/Helper.java
Reviewed-by: iignatyev, vlivanov
2014-09-12 22:33:09 +04:00
Jaroslav Bachorik
82dd03274a 8037082: java/lang/instrument/NativeMethodPrefixAgent.java failing
Reviewed-by: sla
2014-08-25 18:17:24 +02:00
Amy Lu
10489a3c6c 8055852: Add test/java/lang/Math/DoubleConsts.java and FloatConsts.java
Reviewed-by: mchung, darcy
2014-08-22 18:54:20 -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
Evgeniya Stepanova
cd181f5b09 8055393: [Testbug] Some tests are being executed and fail under profiles
Reviewed-by: mchung, dholmes
2014-08-21 22:07:14 -07:00
Staffan Larsen
cde8258b65 8055677: java/lang/instrument/RedefineBigClass.sh RetransformBigClass.sh start failing after JDK-8055012
Write dcmd output to separate files so it does not confuse the output.

Reviewed-by: ctornqvi, mgronlun
2014-08-21 13:09:28 +02:00
Stefan Karlsson
73e818fea9 8035939: java/lang/management/MemoryMXBean/MemoryManagement.java timed out on Linux-amd64
Reviewed-by: sla, brutisso, mgerdin
2014-08-19 12:18:09 +02:00
Christian Tornqvist
482e4a8859 8055012: [TESTBUG] NMTHelper fails to parse NMT output
Fixed the regular expression to parse the slightly changed output format of the new NMT implementation

Reviewed-by: olagneau, sla
2014-08-19 06:56:59 -07:00
Joel Borggrén-Franck
27bdc99451 8044629: (reflect) Constructor.getAnnotatedReceiverType() returns wrong value
Update javadoc and align implementation with new spec

Reviewed-by: psandoz
2014-08-12 10:16:58 +02:00
Claes Redestad
ea2632f91d 8054828: TEST_BUG: Typos in java/lang/Long/ParsingTest
Reviewed-by: alanb
2014-08-12 14:57:36 +01:00
Weijun Wang
bbaf4bdb09 6997010: Consolidate java.security files into one file with modifications
Reviewed-by: mullan, erikj
2014-08-11 11:11:55 +08:00
Ivan Gerasimov
6b6a37ee50 8051382: Optimize java.lang.reflect.Modifier.toString()
Reviewed-by: martin
2014-08-06 02:11:17 +04:00
Rob McKenna
063b7f5dc9 8030166: java/lang/ProcessBuilder/Basic.java fails intermittently: waitFor took too long
Reviewed-by: rriggs
2014-08-01 15:34:55 +01:00
Claes Redestad
59d0a64c19 8041972: Additional parse methods for Long/Integer
Reviewed-by: mduigou, psandoz
2014-07-12 01:36:25 +02:00
Xueming Shen
9f7993fe13 8042589: String.toLowerCase do not work for some concatenated strings
To include surrogate check in loop

Reviewed-by: mchung
2014-07-17 11:08:50 -07:00
Miroslav Kos
dc6a51546f 8041633: [TESTBUG] java/lang/SecurityManager/CheckPackageAccess.java fails with "In j.s file, but not in golden set: com.sun.activation.registries."
Adding newly restricted package to golden set in the test

Reviewed-by: asmotrak, coffeys, mullan
2014-05-20 16:02:57 +02:00
Alejandro Murillo
52c1d16db3 Merge 2014-07-11 17:04:52 -07:00
Joe Darcy
831451c5ba 8050051: Remove unneeded/obsolete -source/-target options in shell tests
Reviewed-by: alanb
2014-07-11 14:06:42 -07:00
Alejandro Murillo
747989869c Merge 2014-07-11 13:02:40 -07:00
Valerie Peng
efa54ce543 8043406: Change default policy for JCE providers to run with as few privileges as possible
Provide default permissions for crypto providers

Reviewed-by: mullan, vinnie
2014-07-10 22:44:58 +00:00
Serguei Spitsyn
ddccb62752 8048185: [TESTBUG] need a JTREG test for the fix of JDK-8042796 (OLD and/or OBSOLETE method(s) found)
Need to integrate the jtreg unit test for the fixed bug JDK-8042796

Reviewed-by: dcubed, coleenp
2014-06-26 03:26:20 -07:00
Erik Gahlin
723bfa2b58 8047368: Remove oracle.jrockit.jfr from open package.access list
Reviewed-by: sla, mullan
2014-07-07 15:06:00 +02:00
Jaroslav Bachorik
7b43631edc 8038794: java/lang/management/ThreadMXBean/SynchronizationStatistics.java fails intermittently
Reviewed-by: sla
2014-07-01 11:47:36 +02:00
Vladimir Ivanov
a58e574ffc 8046903: VM anonymous class members can't be statically invocable
Reviewed-by: jrose
2014-06-17 13:06:05 +04:00
Joel Borggrén-Franck
6445980a62 8029674: (reflect) getMethods returns default methods that are not members of the class
Filter out methods that have a more specific default method from result

Reviewed-by: darcy, dlsmith
2014-06-10 14:40:20 +02:00
Vladimir Ivanov
b2e8017412 8032400: JSR292: invokeSpecial: InternalError attempting to lookup a method
Reviewed-by: psandoz, jrose
2014-06-09 15:40:40 +04:00
Joel Borggrén-Franck
a1ae0af017 8039916: AnnotatedType.getType() of a Executable parameters may return wrong type
Reviewed-by: psandoz
2014-06-04 14:42:48 +02:00
Ivan Gerasimov
a9f575446d 8037866: Replace the Fun class in tests with lambdas
Reviewed-by: martin
2014-06-02 19:49:57 +04:00
Vladimir Ivanov
0c8a572009 8035186: j2se_jdk/jdk/test/java/lang/invoke/lambda/LogGeneratedClassesTest.java - assertion error
Reviewed-by: psandoz
2014-05-29 13:27:36 +04:00
Roger Riggs
20e26966e1 8003488: (process) Provide Process.getPid()
Add Process.getPid

Reviewed-by: alanb, martin, igerasim
2014-05-27 16:05:04 -04:00
Vladimir Ivanov
b47c2517ad 8037210: Get rid of char-based descriptions 'J' of basic types
Reviewed-by: jrose, psandoz, twisti
2014-02-24 18:11:55 +04:00
Katja Kantserova
c3d3305c76 8043520: Serviceability tests using @library failing with java.lang.NoClassDefFoundError
Reviewed-by: sla, egahlin
2014-05-22 11:05:36 +02:00
Joel Borggrén-Franck
abd503efeb 8038994: AnnotatedType.getType() of a TypeVariable boundary without annotations return null
Reviewed-by: psandoz
2014-05-12 14:47:55 +02:00
Naoto Sato
d0dadf23c5 8041791: String.toLowerCase regression - violates Unicode standard
Reviewed-by: peytoia
2014-05-14 10:52:51 -07:00
Peter Levart
f7d1a7975b 8000975: (process) Merge UNIXProcess.java.bsd & UNIXProcess.java.linux (& .solaris & .aix)
Reviewed-by: alanb, rriggs, martin
2014-05-12 17:34:29 +02:00
Katja Kantserova
0c78d5f9e3 8034960: Serviceability tests using @library failing with java.lang.NoClassDefFoundError
Reviewed-by: sla, alanb
2014-05-09 15:24:57 +02:00
Mandy Chung
da3781e49b 8035807: Convert use of sun.misc.BASE64Encoder/Decoder with java.util.Base64
Reviewed-by: alanb, vinnie, sherman, msheppar
2014-04-22 15:16:37 -07:00
Alexandre Iline
092e29980a 8039438: Some tests depend on internal API sun.misc.IOUtils
Remove dependency on sun.misc.IOUtils.readFully(InputStream, int, boolean)

Reviewed-by: alanb, mchung, chegar
2014-04-21 13:12:22 -07:00
Ivan Gerasimov
0688bf058d 8038982: java/lang/ref/EarlyTimeout.java failed again
Reviewed-by: mchung
2014-04-18 18:46:50 +04:00
Mattias Tobiasson
1121030e24 8030628: Update java/lang/management/MemoryMXBean tests to ignore GC setting by jtreg
Reviewed-by: mchung, jbachorik
2014-04-16 12:40:19 -07:00
Mattias Tobiasson
5b046a555f 8038822: java/lang/management/MemoryMXBean/LowMemoryTest2.sh still fails with OutOfMemoryError: Metaspace
Force a GC when usage above threshold. Add more logging.

Reviewed-by: dfuchs
2014-04-04 13:01:26 +02:00
Ivan Gerasimov
65a18434e7 8038333: TEST_BUG: java/lang/ref/EarlyTimeout.java fails with a non-adequate message
Reviewed-by: mchung
2014-04-02 12:17:25 +04:00
Igor Ignatyev
4fdcaf04d8 8038186: [TESTBUG] improvements of test j.l.i.MethodHandles
Reviewed-by: iveresov, twisti, vlivanov
2014-03-29 12:29:21 +04:00
Ivan Gerasimov
be3c17a489 6943190: TEST_BUG: some tests in java/lang/Runtime/exec have hard-coded path to shell commands
Reviewed-by: martin, rriggs, alanb
2014-03-24 14:14:03 +04:00
Volker Simonis
02186906ef 8037013: [TESTBUG] Fix test/java/lang/ClassLoader/Assert.sh on AIX
Reviewed-by: mchung, alanb
2014-03-18 11:10:53 +01:00
Ivan Gerasimov
d3271335ad 8034262: Test java/lang/ProcessBuilder/CloseRace.java fails
Reviewed-by: martin, dholmes
2014-03-12 21:45:20 +04:00
Vladimir Ivanov
9d59eb2da1 8036117: MethodHandles.catchException doesn't handle VarargsCollector right (8034120 failed)
Reviewed-by: jrose, twisti
2014-03-11 19:54:33 +04:00
Jaroslav Bachorik
c174f6339a 8034168: ThreadMXBean/Locks.java failed, blocked on wrong object
Reviewed-by: martin, dholmes
2014-03-11 14:18:46 +01:00
Mattias Tobiasson
8a385b110f 8031065: java/lang/management/MemoryMXBean/LowMemoryTest2.sh fails: OutOfMemoryError: Metaspace
Load classes until getUsageThresholdCount() > 0 instead of isUsageThresholdExceeded().

Reviewed-by: dfuchs, sjiang, sla
2014-03-04 09:35:54 +01:00
Robert Field
2e148fb065 8035776: Consistent Lambda construction
Reviewed-by: ahgross, briangoetz, dlsmith
2014-03-04 15:33:30 -08:00
Mattias Tobiasson
c96fd46a4c 6625574: java/lang/management/MemoryMXBean/Pending.java fails: "pending finalization = 0 but expected > 0"
Move local objs variable to a static public so the the optimizer will not remove it unexpectedly.

Reviewed-by: sla
2014-02-28 13:38:51 +01:00
Vladimir Ivanov
856f5c5823 8027827: Improve performance of catchException combinator
8034120: MethodHandles.catchException doesn't handle VarargsCollector right

Reviewed-by: lagergren, psandoz, jrose
2014-03-01 02:05:53 +04:00
Brent Christian
c92ff7d5e7 6835233: Fedora 9 jdk regression test failed: java/lang/instrument/ParallelTransformerLoader.sh
Remove @ignore from ParallelTransformerLoader.sh

Reviewed-by: alanb, sla, smarks
2014-02-28 10:27:54 -08:00
Ivan Gerasimov
e66ea0fddc 6853696: (ref) ReferenceQueue.remove(timeout) may return null even if timeout has not expired
Reviewed-by: mchung, mduigou, rriggs
2014-02-27 02:44:04 +04:00
Vladimir Ivanov
56bce7519d 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
8033278: Missed access checks for Lookup.unreflect* after 8032585

Reviewed-by: jrose, twisti
2014-02-21 17:12:23 +04: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
Rob McKenna
77bcb60eee 7152892: some jtreg tests fail with permission denied
Reviewed-by: coffeys
2014-02-10 14:35:42 +00:00
Xueming Shen
8cdace2575 8032012: String.toLowerCase/toUpperCase performance improvement
Updated the implementation to improve the performance

Reviewed-by: psandoz, forax
2014-02-07 09:04:17 -08:00
Joe Darcy
1c57114347 8033416: Remove sun.misc.FpUtils
Reviewed-by: alanb, bpb, psandoz
2014-02-03 09:52:36 -08:00
Ivan Gerasimov
592907e7f2 8027348: (process) Enhancement of handling async close of ProcessInputStream
Reviewed-by: martin
2014-01-30 00:02:46 +04:00
Jaroslav Bachorik
9e782fae6d 8031701: java/lang/management/ThreadMXBean/Locks.java: Thread WaitingThread is expected to wait on Object but got null Thread.State = RUNNABLE
Reviewed-by: mchung, dsamersoff
2014-01-29 17:37:40 +01:00
Sunny Chan
9d9bc9f86d 7142035: assert in j.l.instrument agents during shutdown when daemon thread is running
Reviewed-by: sla
2014-01-28 09:33:39 -05:00
Daniel Smith
aa81fd4ead 8032697: Issues with Lambda
Reviewed-by: ahgross, briangoetz, dlsmith, rfield
2014-01-28 17:22:07 -08:00
Vladimir Kozlov
1981dde213 Merge 2014-01-28 14:58:15 -08:00
Vladimir Kozlov
57b7b831ae Merge 2014-01-28 14:57:41 -08:00
Robert Field
1b02cd3f12 8032711: Issue with Lambda in handling
8032704: Issues with lib perm in Lambda

Reviewed-by: jrose, ahgross, briangoetz
2014-01-28 12:53:56 -08:00
Mandy Chung
1e80ad98e4 6760902: inconsistent behavior in system class loader for classes and resources
Reviewed-by: psandoz, ksrini
2014-01-27 16:22:08 -08:00
Shanliang Jiang
7d09fd8b12 6980984: java/lang/management/MemoryMXBean/MemoryManagement is not robust when getMax() returns -1
Reviewed-by: jbachorik, dfuchs
2014-01-23 15:17:36 +01:00
Jaroslav Bachorik
f0a718ceb0 6309226: TEST: java/lang/management/ThreadMXBean/SynchronizationStatistics.java didn't check Thread.sleep
Reviewed-by: dholmes, mchung
2014-01-23 10:06:52 +01:00
Vladimir Kozlov
9c83896027 Merge 2014-01-22 14:17:32 -08:00
Jaroslav Bachorik
ea1c41f454 8032377: test/java/lang/management/ThreadMXBean/ThreadBlockedCount.java still fails intermittently
Reviewed-by: dholmes
2014-01-21 13:04:55 +01:00
Volker Simonis
70041ae4e4 8028537: PPC64: Updated the JDK regression tests to run on AIX
Co-authored-by: Jonathan Lu <luchsh@linux.vnet.ibm.com>
Co-authored-by: Steve Poole <spoole@linux.vnet.ibm.com>
Reviewed-by: alanb
2014-01-17 21:54:30 +01:00
Erik Joelsson
30bc289192 8030781: System.setProperties(null) drops all system properties (RELEASE not set)
Reviewed-by: alanb
2014-01-08 14:04:35 +01:00
Abhijit Saha
7e9ef6dd1f Merge 2014-01-16 21:44:18 -08:00
Abhijit Saha
a9a038efa7 Merge 2014-01-15 10:09:00 -08:00
Joe Darcy
48ce9464b0 8031651: Remove unneeded -source and -target flags in jdk repo regression tests
Reviewed-by: dfuchs, mullan
2014-01-14 10:08:24 -08:00
Jaroslav Bachorik
a635170108 8030847: java/lang/management/ThreadMXBean/ThreadBlockedCount.java fails intermittently again
Reviewed-by: dholmes, sla, mchung
2014-01-14 13:09:34 +01:00
Chris Hegarty
be247dff24 Merge 2014-01-10 15:04:46 +00:00
Vladimir Kozlov
71ac207668 Merge 2013-12-12 11:04:11 -08:00
Roger Riggs
fa4d687935 8031961: (process) java/lang/ProcessBuilder/Basic.java uses "cp -p" which is inefficient
Replace invocation of /bin/cp with NIO Files.copy

Reviewed-by: martin, alanb
2014-01-16 10:33:07 -05:00
Vladimir Ivanov
3621fb4643 8031502: JSR292: IncompatibleClassChangeError in LambdaForm for CharSequence.toString() method handle type converter
Reviewed-by: sundar, lagergren, drchase
2014-01-15 20:48:44 +04:00
Dmitry Nadezhin
a4bef039d5 8030814: Long.parseUnsignedLong should throw exception on too large input
Change test for overflow of unsigned long

Reviewed-by: darcy, psandoz
2014-01-15 10:40:22 -08:00
Tristan Yan
167190a3d0 8029346: LowMemoryTestConcMarkSweepGC.sh fails intermittently with timeout
Reviewed-by: mchung
2013-12-19 13:43:30 -08:00
Jaroslav Bachorik
f574d5ef40 8029890: java/lang/management/ThreadMXBean/ThreadBlockedCount.java fails: Blocked thread has 4 blocked counts. Expected 3
Reviewed-by: sla
2013-12-18 10:58:50 +01:00
Alan Bateman
0cf258eec2 8029886: Change SecurityManager check{TopLevelWindow, SystemClipboardAccessAwtEventQueueAccess} to check AllPermission
Reviewed-by: mchung, prr, art, mullan
2013-12-18 08:41:46 +00:00
Vladimir Kozlov
75284b677e Merge 2013-12-05 15:10:36 -08:00
Martin Buchholz
3bca43355b 8029629: java/lang/ProcessBuilder/Basic.java fails intermittently
Improved test for Thread.interrupt

Reviewed-by: martin, rriggs
2013-12-05 15:49:53 -05:00
Roger Riggs
efe46c73dd 8029525: java/lang/ProcessBuilder/Basic.java fails intermittently
Reviewed-by: alanb, chegar
2013-12-05 16:19:06 +00:00
Yiming Wang
4c594ee9bc 7067973: test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java hanging intermittently
Reviewed-by: mchung
2013-12-04 09:26:47 -08:00
Jaroslav Bachorik
b77ba98513 6987597: ManagementFactory.getGarbageCollectorMXBeans() returns empty list with CMS
Reviewed-by: mchung
2013-11-28 09:10:18 +01:00
Jonathan Lu
780a13433f 8024854: PPC64: Basic changes and files to build the class library on AIX
Co-authored-by: Steve Poole <spoole@linux.vnet.ibm.com>
Co-authored-by: Thomas Stuefe <thomas.stuefe@sap.com>
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art
2013-11-26 16:40:31 +01:00
Lana Steuck
33cd414e58 Merge 2013-11-25 09:40:25 -08:00
Joel Borggrén-Franck
8296f65abb 8023278: Reflection API methods do not throw AnnotationFormatError in case of malformed Runtime[In]VisibleTypeAnnotations attribute
Reviewed-by: darcy
2013-11-22 11:34:26 +01:00
Lana Steuck
1a633e63a9 Merge 2013-11-15 07:14:23 -08:00
Martin Buchholz
6c4294c2d9 6703075: (process) java/lang/ProcessBuilder/Basic.java fails with fastdebug
Reviewed-by: alanb
2013-11-21 16:06:05 +00:00
Rob McKenna
49efd68082 8022206: Intermittent test failures in java/lang/ProcessBuilder/Basic.java
Reviewed-by: chegar, alanb
2013-11-19 15:36:59 +00:00
Balchandra Vaidya
5cdc23a99c 8028094: TEST_BUG: java/lang/ProcessBuilder/Basic.java leaves "sleep 6666" processes behind
Reviewed-by: chegar
2013-11-19 15:31:33 +00:00
Joel Borggrén-Franck
4163fbdc49 8028055: (reflect) invoking Method/Constructor in anonymous classes breaks with -Dsun.reflect.noInflation=true
Reviewed-by: briangoetz
2013-11-14 12:17:37 +01:00
Mattias Tobiasson
c5cf3786f7 8023138: [TEST_BUG] java/lang/instrument/PremainClass/NoPremainAgent.sh fails intermittently
Port tests for java/lang/instrument/PremainClass from script to java

Reviewed-by: sla
2013-11-14 12:35:34 +01:00
Xueming Shen
dc1dba10e7 8028321: Fix for String.split() empty input sequence/JDK-6559590 triggers regression
To undo the change for 6559590

Reviewed-by: darcy
2013-11-13 22:22:28 -08:00
Eric McCorkle
fadfc31bec 8026884: test for fix of JDK-8021398 does not have @bug tag
8028021: @since 1.8 missing for certain methods in java.lang.reflect.Method in generated api docs

Two documentation fixes

Reviewed-by: darcy
2013-11-13 15:48:21 -05:00
Xueming Shen
4208726b35 8027645: Pattern.split() with positive lookahead
6559590: Pattern.compile(".*").split("") returns incorrect result

Updated spec/impl for these two corner cases

Reviewed-by: alanb, psandoz
2013-11-13 11:26:01 -08:00
Sergey Bylokhov
9ab430a0d2 8027696: Incorrect copyright header in the tests
Reviewed-by: alanb, malenkov, mullan
2013-11-12 20:24:25 +04:00
Vladimir Ivanov
ee23c1f412 8027823: catchException combinator fails with 9 argument target
Reviewed-by: jrose
2013-11-09 04:21:28 +04:00
Jaroslav Bachorik
db68e03030 6523160: RuntimeMXBean.getUptime() returns negative values
RuntimeMXBean.getUptime() should be based on HR timers rather than on the OS time

Reviewed-by: dholmes, sla
2013-11-10 20:05:03 +01:00
Lana Steuck
84da58d996 Merge 2013-11-08 17:36:14 -08:00
Mandy Chung
4e0a88f82a 8027351: (ref) Private finalize method invoked in preference to protected superclass method
Reviewed-by: alanb, dholmes, mr, plevart, psandoz
2013-11-08 07:53:57 -08:00
John Rose
8d462795cb 8027232: Update j.l.invoke code generating class files to use ASM enhancements for invocation of non-abstract methods on ifaces
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Reviewed-by: ksrini, rfield
2013-11-06 11:31:49 -08:00
Mandy Chung
1b7f902c51 8022208: Intermittent test failures in java/lang/Thread/ThreadStateTest.java
6944188: ThreadMXBean/ThreadStateTest.java fails intermittently

Reviewed-by: dholmes, chegar
2013-11-05 17:33:26 -08:00
Andreas Lundblad
79b1f94594 8016725: TEST_BUG: java/lang/reflect/Method/DefaultMethodModeling.java failing intermittently
Moved DefaultMethodModeling.java to its own directory to avoid conflicts with Equals.java.

Reviewed-by: darcy
2013-11-04 15:21:47 +01:00
Robert Field
ee1006e3bd 7194897: JSR 292: Cannot create more than 16 instances of an anonymous class
8027681: Lambda serialization fails once reflection proxy generation kicks in

Co-authored-by: Joel Borggren-Franck <joel.franck@oracle.com>
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: ksrini, briangoetz, jfranck
2013-11-04 10:12:18 -08:00
Lana Steuck
ac6386468f Merge 2013-10-31 16:44:18 -07:00
Jaroslav Bachorik
21a239f4c5 7144200: java/lang/management/ClassLoadingMXBean/LoadCounts.java failed with JFR enabled
Make the test less stringent by not requiring the number of loaded classes to increase by a specific number

Reviewed-by: sla
2013-10-31 11:59:09 +01:00
Joe Darcy
5f3b001859 8005294: Consider default methods for additions to AnnotatedElement
Reviewed-by: jfranck, plevart, mchung, abuckley, sogoel
2013-10-30 17:27:25 -07:00
Jaroslav Bachorik
292c14d972 8020467: Inconsistency between usage.getUsed() and isUsageThresholdExceeded() with CMS Old Gen pool
Reviewed-by: mchung, brutisso
2013-10-30 17:54:48 +01:00
Lana Steuck
836ba025a1 Merge 2013-10-24 21:52:24 -07:00
Joel Borggrén-Franck
be2d6e6535 8023651: j.l.r.Constructor.getAnnotatedReceiverType() and j.l.r.Constructor.getAnnotatedReturnType() for inner classes return incorrect result
Reviewed-by: darcy
2013-10-24 19:04:27 +02:00
Andreas Lundblad
5db9cc7bed 8027170: Annotations declared on super-super-class should be overridden by super-class
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: jfranck
2013-10-24 18:52:13 +02:00
Abhijit Saha
15d051e851 Merge 2013-12-07 16:15:08 -08:00
Ivan Gerasimov
f14e06950e 8024521: (process) Async close issues with Process InputStream
Reviewed-by: psandoz, martin, alanb, robm
2013-10-23 15:37:40 +04:00
Chris Hegarty
506667087b Merge 2013-10-22 12:33:33 +01:00
Alan Bateman
36e36d288c 8021257: com.sun.corba.se.** should be on restricted package list
Co-authored-by: Mark Sheppard <mark.sheppard@oracle.com>
Reviewed-by: chegar, coffeys, smarks, mullan
2013-10-22 11:43:04 +01:00
Andreas Lundblad
24b64e8c23 8004912: Repeating annotations - getAnnotationsByType(Class<T>) is not working as expected for few inheritance scenarios
8019420: Repeatable non-inheritable annotation types are mishandled by Core Reflection

Reviewed-by: jfranck
2013-10-22 12:35:27 +02:00
Joel Borggrén-Franck
415ea4460a 8009411: (reflect) Class.getMethods should not include static methods from interfaces
Update getMethods() and getMethod() to filter out interface statics

Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: darcy
2013-10-22 10:34:12 +02:00
Staffan Larsen
50a598d507 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed with SIGSEGV
Redefined class in stack trace may not be found by method_idnum so handle null.

Reviewed-by: coleenp, dcubed, sspitsyn
2013-10-21 23:32:36 -04:00
Yuka Kamiya
fa9bbd8594 8020037: String.toLowerCase incorrectly increases length, if string contains \u0130 char
Reviewed-by: naoto
2013-10-22 06:13:01 +09:00
Chris Hegarty
388f28f83b Merge 2013-10-21 15:00:56 +01:00
Jaroslav Bachorik
d491a49652 7197919: java/lang/management/ThreadMXBean/ThreadBlockedCount.java has concurency issues
Reviewed-by: sla, mchung
2013-10-21 10:40:03 +02:00
Pavel Punegov
fd2c7a3743 8024660: TEST_BUG: java/lang/ProcessBuilder/*IOHandle.java leaving hotspot.log open in fastdebug builds
Reviewed-by: alanb
2013-10-18 16:28:35 +01:00
Sean Mullan
2ef954a0ff Merge 2013-10-17 10:37:27 -04:00
Sean Mullan
70492e8a66 8026346: test/java/lang/SecurityManager/CheckPackageAccess.java failing
Reviewed-by: vinnie
2013-10-17 10:18:44 -04:00
David Chase
c668ed8f33 8022718: Runtime accessibility checking: protected class, if extended, should be accessible from another package
Modify accessibility check; it was muddled about Java vs JVM protection terminology.

Reviewed-by: jrose
2013-10-16 17:55:49 -04:00
Robert Field
80ce6f3ec5 8025868: Several lang/LMBD JCK tests fail with java.lang.BootstrapMethodError
Wildcard marker interfaces can cause duplicate implemented interfaces in generated lambda class

Reviewed-by: briangoetz
2013-10-23 15:16:35 -07:00
Staffan Larsen
7108f683fc 8026789: Update test/java/lang/instrument/Re(transform|define)BigClass.sh test to use NMT for memory leak detection
Reviewed-by: dcubed
2013-10-23 15:55:31 +02:00
Jaroslav Bachorik
92bd2a8b2d 7112404: 2 tests in java/lang/management/ManagementFactory fails with G1 because expect non-zero pools
Reviewed-by: mchung, sjiang
2013-10-23 15:03:49 +02:00
Chris Hegarty
3486abb2c7 Merge 2013-10-15 13:54:01 +01:00
Chris Hegarty
766e77499d Merge 2013-10-15 09:27:32 +01:00
Henry Jen
ca8301dc7d 8026362: java/lang/invoke/lambda/LogGeneratedClassesTest.java failed on windows, jtreg report Fail to org.testng.SkipException
Reviewed-by: chegar
2013-10-14 17:27:20 -07:00
Stefan Karlsson
ba1c14b527 7196801: NPG: Fix java/lang/management/MemoryMXBean/LowMemoryTest2
Co-authored-by: Coleen Phillimore <coleen.phillimore@oracle.com>
Reviewed-by: coleenp, sla
2013-10-14 14:28:50 +02:00
Lana Steuck
ccd23da6c7 Merge 2013-10-12 14:14:24 -07:00
Karen Kinnear
1e73553e8c 8026213: Reflection support for private interface methods
Reviewed-by: forax, psandoz, dholmes, jfranck
2013-10-11 15:21:23 -07:00
Morris Meyer
532ecca465 7195597: ThreadStateTest gets different results with -Xcomp
Reviewed-by: kvn
2013-10-11 12:40:14 -07:00
Sean Mullan
0a60664cf1 Merge 2013-10-11 09:17:18 -04:00
Sean Mullan
2f923e8804 8007292: Add JavaFX internal packages to package.access
Build hooks to allow closed restricted packages to be added to java.security file

Reviewed-by: erikj, dholmes, tbell
2013-10-11 08:43:07 -04:00
Joel Borggrén-Franck
db556bacff 7044282: (reflect) Class.forName and Array.newInstance are inconsistent regarding multidimensional arrays
Reviewed-by: darcy, psandoz
2013-10-10 18:11:53 +02:00
Henry Jen
1f02e9968e 8023524: Mechanism to dump generated lambda classes / log lambda code generation
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: plevart, mchung, forax, jjb
2013-10-09 09:41:40 -07:00
John R Rose
be5df968ee 8024438: JSR 292 API specification maintenance for JDK 8
Add wildcard to unreflectConstructor, various clarifications and minor edits

Reviewed-by: mchung, darcy, twisti
2013-10-05 05:30:40 -07:00
John R Rose
c5b5f0d6c7 8025112: JSR 292 spec updates for security manager and caller sensitivity
Align CONSTANT_MethodHandle and Lookup.find* API calls, clarify security manager & @CallerSensitive interactions

Reviewed-by: mchung, twisti
2013-10-05 05:30:39 -07:00
John R Rose
32e77eaae1 8001110: method handles should have a collectArguments transform, generalizing asCollector
Promote an existing private method; make unit tests on all argument positions to arity 10 with mixed types

Reviewed-by: twisti, vlivanov
2013-10-05 05:30:39 -07:00
John R Rose
4ea5f818b5 8024599: JSR 292 direct method handles need to respect initialization rules for static members
Align MH semantic with bytecode behavior of constructor and static member accesses, regarding <clinit> invocation.

Reviewed-by: twisti, darcy, abuckley, vlivanov
2013-10-05 05:30:39 -07:00
John R Rose
154969a2bc 8001108: an attempt to use "<init>" as a method name should elicit NoSuchMethodException
Add an explicit check for leading "<", upgrade the unit tests

Reviewed-by: twisti, darcy
2013-10-05 05:30:39 -07:00
John R Rose
e4df9dc1ee 8001109: arity mismatch on a call to spreader method handle should elicit IllegalArgumentException
Document error conditions that may occur when calling a "spreader" method handle.  Use IAE in all cases.

Reviewed-by: twisti, vlivanov
2013-10-05 05:30:39 -07:00
John R Rose
77dc59f6ca 8019417: JSR 292 javadoc should clarify method handle arity limits
Clarification of erroneous reading of spec. that led to 7194534

Reviewed-by: twisti, darcy
2013-10-05 05:30:39 -07:00
John R Rose
622186edcb 8001105: findVirtual of Object[].clone produces internal error
Replicate JVM logic for access control that makes Object.clone appear public when applied to an array type.

Reviewed-by: twisti
2013-10-05 05:30:38 -07:00
Chris Hegarty
54db1788f4 Merge 2013-10-03 19:07:42 +01:00
Chris Hegarty
6088b141e2 Merge 2013-10-03 19:06:43 +01:00
Eric McCorkle
367fa5ac0e 8020981: Update methods of java.lang.reflect.Parameter to throw correct exceptions
Fix behavior of parameter reflection API for malformed class files.

Reviewed-by: darcy
2013-10-02 19:13:42 -04:00
David Chase
fdf6a159f5 8022701: Accessibility checking: InvocationTargetException is thrown instead of IllegalAccessError
Inserted code to convert specific exceptions, case-by-case, plus a test.

Reviewed-by: jrose, twisti
2013-09-27 13:32:32 -04:00
Eric McCorkle
e92da66e0b 8021398: j.l.r.Parameter.getAnnotatedType().getType() for not annotated use of type returns null
Fixed issue with type annotation reflection framework that would cause getType of AnnotatedTypes to be null if no annotations were present.

Reviewed-by: darcy, jfranck
2013-10-01 17:35:32 -04:00
Chris Hegarty
aed9248e0b Merge 2013-09-06 13:36:33 +01:00
Chris Hegarty
18f0e54e81 Merge 2013-09-06 09:41:21 +01:00
Joel Borggrén-Franck
279576cf17 8007072: Update Core Reflection for Type Annotations to match latest spec
8022324: j.l.Class.getAnnotatedInterfaces() for array type returns wrong value
8024915: j.l.r.Executable.getAnnotatedReceiverType() should return null for static methods

Update javadoc and implementation of reflection for type annotations to match latest spec

Reviewed-by: darcy
2013-09-30 11:18:18 +02:00
Dmitry Nadezhin
28d455529e 8010430: Math.round has surprising behavior for odd values of ulp 1
If the effective floating point exponent is zero return the significand including the implicit 1-bit.

Reviewed-by: bpb, darcy, gls
2013-09-11 17:07:35 -07:00
Joel Borggrén-Franck
9a30d420c4 4987375: (reflect) Class.get{Declared}Method{s} does not return clone() for array types
Update spec to match long standing behavior

Reviewed-by: darcy, mchung
2013-09-11 09:45:52 +02:00
Joel Borggrén-Franck
8007590d3b 5047859: (reflect) Class.getField can't find String[].length
Reviewed-by: darcy, mchung
2013-09-06 14:20:12 +02:00
Jaroslav Bachorik
61000f0c4b 6815130: Intermittent ThreadMXBean/Locks.java test failure
Preventing stale reads from ThreadExecutionSynchronizer.waiting flag

Reviewed-by: dholmes, mchung, dfuchs
2013-09-06 10:03:16 +02:00
Jaroslav Bachorik
ea3200b784 8004179: Few of test/java/lang/management/ThreadMXBean/* tests don't clean up the created threads
Just run those tests in "othervm" mode.

Reviewed-by: alanb, dfuchs, sjiang
2013-09-05 14:34:22 +02:00
Paul Sandoz
0fb014c2b3 8023463: Improvements to HashMap/LinkedHashMap use of bins/buckets and trees (red/black)
8012913: LinkedHashMap key/value/entry spliterators should report ORDERED

Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: mduigou, forax, bchristi, alanb
2013-09-04 09:34:25 +02:00
Chris Hegarty
5df790a009 Merge 2013-08-30 09:38:23 +01:00
Chris Hegarty
369c079b32 Merge 2013-08-30 09:37:29 +01:00
Ivan Gerasimov
06571ae862 8023130: (process) ProcessBuilder#inheritIO does not work on Windows
Reviewed-by: alanb, martin
2013-09-23 04:05:42 +01:00
Paul Sandoz
3a559a7ea0 8025002: "".codePoints().sorted().iterator().hasNext() causes NegativeArraySizeException
Reviewed-by: henryjen, alanb
2013-09-18 10:49:34 -07:00
Peter Levart
c7759dc643 8011940: java.lang.Class.getAnnotations() always enters synchronized method
Reviewed-by: jfranck, chegar, psandoz, shade
2013-09-19 16:14:13 +02:00
Sean Mullan
cff35761aa Merge 2013-08-27 12:27:31 -04:00
Sean Mullan
4520fbf983 8019830: Add com.sun.media.sound to the list of restricted package
Reviewed-by: vinnie
2013-08-27 12:04:32 -04:00
Joel Borggrén-Franck
d4b28471ff 8022343: j.l.Class.getAnnotatedSuperclass() doesn't return null in some cases
Reviewed-by: darcy, vromero, psandoz
2013-08-26 13:38:14 +02:00
Peter Levart
75a8f58cd1 8022721: AnnotationTypeDeadlockTest.java throws java.lang.IllegalStateException: unexpected condition
Reviewed-by: alanb, jfranck
2013-08-20 14:13:59 +02:00
Staffan Larsen
138561d596 8023101: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java fails
Reviewed-by: ysr
2013-08-22 08:28:53 +02:00
Weijun Wang
d42579b647 8022945: Enhance JNDI implementation classes
Reviewed-by: xuelei, ahgross, skoivu
2013-08-16 17:57:27 +08:00
Chris Hegarty
60e31c0960 Merge 2013-08-15 21:44:35 +01:00
Christian Thalinger
53b5f75095 8022066: Evaluation of method reference to signature polymorphic method crashes VM
Reviewed-by: jrose
2013-08-12 13:47:21 -07:00
Brian Burkhalter
10673cfe8c 8022109: Evaluate adding incrementExact, decrementExact, negateExact to java.lang.Math
Add the methods for parameter types int and long.

Reviewed-by: mduigou
2013-08-12 10:35:44 -07:00
Rob McKenna
c6247493d0 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
Reviewed-by: alanb, dholmes, martin, erikj, coffeys
2013-08-13 19:10:54 +01:00
Mani Sarkar
4f76f09719 8022749: Convert junit tests to testng in test/java/lang/invoke
Reviewed-by: mduigou, alanb
2013-08-12 12:11:04 -07:00
Vicente Romero
d0479145f3 8015780: java/lang/reflect/Method/GenericStringTest.java failing
Reviewed-by: darcy, jfranck
2013-08-12 17:40:14 +01:00
John Rose
59440ee0be 8008688: Make MethodHandleInfo public
A major overhaul to MethodHandleInfo and method handles in general.

Reviewed-by: vlivanov, twisti
2013-09-03 21:42:56 -07:00
Alexey Utkin
ae9638f154 7147084: (process) appA hangs when read output stream of appB which starts appC that runs forever
Reviewed-by: alanb, robm, martin
2013-08-08 09:16:16 +04:00
Jaroslav Bachorik
76c5530392 8020875: java/lang/management/ThreadMXBean/ResetPeakThreadCount.java fails intermittently
Reviewed-by: dfuchs, chegar
2013-07-26 10:12:14 +02:00
Ivan Gerasimov
5db8580b26 8016838: improvement of RedefineBigClass and RetransformBigClass tests
Reviewed-by: dcubed
2013-07-23 18:57:57 +04:00
Sean Coffey
6a6f5006d3 8017566: Backout 8000450 - Cannot access to com.sun.corba.se.impl.orb.ORBImpl
Reviewed-by: mchung
2013-07-15 13:42:35 +01:00
Peter Levart
b0d167645f 7122142: (ann) Race condition between isAnnotationPresent and getAnnotations
Reviewed-by: dholmes, jfranck
2013-07-15 10:55:53 +02:00
Thomas Schatzl
b2aec6eda3 8014890: (ref) Reference queues may return more entries than expected
When enqueuing references check whether the j.l.r.Reference has already been enqeued or removed in the lock. Do not enqueue them again. This occurs because multiple threads may try to enqueue the same j.l.r.Reference at the same time.

Reviewed-by: mchung, dholmes, plevart, shade
2013-07-08 14:05:59 +02:00
David Holmes
ddb13a825c 8016341: java/lang/ref/OOMEInReferenceHandler.java failing intermittently
Ensure WeakRef object can't be prematurely gc'd

Reviewed-by: chegar, plevart
2013-07-09 22:01:57 -04:00
Sean Coffey
411683f3a7 8019979: Replace CheckPackageAccess test with better one from closed repo
Reviewed-by: mullan
2013-07-09 16:00:41 +01:00
Erik Helin
6085f712f8 8010734: NPG: The test MemoryTest.java needs to be updated to support metaspace
Reviewed-by: alanb
2013-07-08 11:30:44 +02:00
Lana Steuck
23a17dfafa Merge 2013-07-05 13:28:17 -07:00
Lana Steuck
0c0bcad83c Merge 2013-07-03 19:09:20 -07:00
Eric McCorkle
a58f094d40 8016285: Add java.lang.reflect.Parameter.isNamePresent()
Add isNamePresent method to parameter reflection library, which indicates whether or real parameter data is available

Reviewed-by: darcy
2013-07-03 19:47:15 -04:00
Christian Thalinger
22d32e76ce 8019184: MethodHandles.catchException() fails when methods have 8 args + varargs
Reviewed-by: jrose
2013-07-03 11:35:06 -07:00
Mandy Chung
5a360a7579 8007035: deprecate public void SecurityManager.checkMemberAccess(Class<?> clazz, int which)
Reviewed-by: jrose, alanb, dfuchs
2013-07-02 15:58:09 -07:00
Daniel Fuchs
7addcb118b 8014045: test/java/lang/management/PlatformLoggingMXBean/LoggingMXBeanTest.java failing intermittently
This test was failing because it didn't take into account the fact that Loggers could be garbage collected.

Reviewed-by: mchung
2013-07-01 11:13:56 +02:00
Lana Steuck
c4c235dc4a Merge 2013-06-28 19:46:18 -07:00
David Katleman
78425fd8da 8019347: JDK8 b96 source with GPL header errors
Reviewed-by: iris, alanb, lancea
2013-06-28 16:26:36 -07:00
Amy Lu
0f4a06a92a 7184826: (reflect) Add support for Project Lambda concepts in core reflection
Reviewed-by: darcy, jfranck
2013-08-06 18:54:02 +02:00
Brent Christian
b661fb4e1a 8011194: Apps launched via double-clicked .jars have file.encoding value of US-ASCII on Mac OS X
On Mac, default to UTF-8 if no environmental hints are available

Reviewed-by: naoto, ddehaven
2013-08-02 15:30:11 -07:00
David Katleman
a744eb3dcb 8016684: JDK8 b94 source with GPL header errors
Reviewed-by: tbell, darcy
2013-06-26 11:26:18 -07:00
Chris Hegarty
c7a4e7e7fa Merge 2013-06-18 16:08:46 +01:00
Alexey Utkin
857e168f7a 8016046: (process) Strict validation of input should be security manager case only [win]
Reviewed-by: alanb, ahgross
2013-06-18 17:19:49 +04:00
Chris Hegarty
5864e2de68 Merge 2013-06-17 11:26:16 +01:00
Ivan Gerasimov
b595458607 7181748: java/lang/ThreadGroup/Suspend.java test fails intermittently
Reviewed-by: chegar, dholmes
2013-06-13 15:15:03 +04:00
Alan Bateman
d233c11556 8016369: java/lang/instrument/RetransformBigClass.sh failing again
Reviewed-by: sla, sergei
2013-06-12 09:44:34 +01:00
Robert Field
9151d67365 8016761: Lambda metafactory - incorrect type conversion of constructor method handle
Reviewed-by: jrose
2013-06-26 07:50:04 -07:00
Dmitry Nadezhin
f52ad64ccc 7192954: Fix Float.parseFloat to round correctly and preserve monotonicity
4396272: Parsing doubles fails to follow IEEE for largest decimal that should yield 0
7039391: Use Math.ulp in FloatingDecimal

Correct rounding and monotonicity problems in floats and doubles

Co-authored-by: Louis Wasserman <lowasser@google.com>
Reviewed-by: bpb, martin
2013-06-21 11:12:18 -07:00
Alan Bateman
096a439d06 7059085: Retire Thread.stop(Throwable) so that it throws UOE
Reviewed-by: dholmes, chegar, forax, darcy, mduigou
2013-06-11 11:22:28 +01:00
Coleen Phillimore
20641e00ab 7124706: enable RetransformBigClass.sh test when fix for 8013063 is promoted
The code for this test is fixed now and integrated to TL repo and it passes now.

Reviewed-by: alanb
2013-06-07 22:15:27 -04:00
Sean Coffey
a3d61f5a75 8000450: Restrict access to com/sun/corba/se/impl package
Reviewed-by: alanb, chegar, lancea
2013-06-06 14:10:44 +01:00
Frederic Parain
f405277c72 7150256: Add back Diagnostic Command JMX API
Reviewed-by: mchung, jbachorik
2013-06-05 08:41:02 -07:00
Chris Hegarty
0431243910 8014737: java/lang/invoke/7196190/MHProxyTest.java fails after 8009424
Reviewed-by: twisti
2013-05-22 13:57:59 +01:00
Mike Duigou
9bb27cedcb 8007398: Peformance improvements to Integer and Long string formatting
Co-authored-by: Steven Schlansker <stevenschlansker@gmail.com>
Reviewed-by: mduigou, martin, darcy, briangoetz
2013-02-12 17:04:09 -08:00
Staffan Larsen
762cff81b7 8015440: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java fails with RuntimeException
Make sure serial gc compacts heap every time

Reviewed-by: mchung, brutisso, nloodin
2013-05-29 09:42:39 +02:00
Peter Levart
c6e58fdb1d 7038914: VM could throw uncaught OOME in ReferenceHandler thread
Catch OutOfMemoryError in reference handler thread if caused by allocation of an InterruptedException

Reviewed-by: dholmes, alanb
2013-05-27 09:41:44 +02:00
David Holmes
4ef977fec3 8014814: (str) StringBuffer "null" is not appended
Reviewed-by: alanb
2013-05-22 20:21:13 -04:00
Lana Steuck
9bb98bc521 Merge 2013-05-22 09:57:48 -07:00
Lana Steuck
8f6d37ee8e Merge 2013-05-17 10:11:35 -07:00
Peter Levart
2548b20c9e 8014477: (str) Race condition in String.contentEquals when comparing with StringBuffer
Reviewed-by: alanb, mduigou, dholmes
2013-05-17 14:41:39 +02:00
Mandy Chung
a4a210dc69 4487672: (proxy) Proxy constructor should check for null argument
Reviewed-by: alanb, lancea
2013-05-16 15:08:24 -07:00
Eric Wang
9b4403735d 8004177: test/java/lang/Thread/GenerifyStackTraces.java doesn't clean-up
Reviewed-by: alanb, dholmes, chegar
2013-05-16 10:59:06 +01:00
David Holmes
4e4591b4da 8013395: StringBuffer.toString performance regression impacting embedded benchmarks
Cache a copy of the char[] to use with toString() and clear it when ever the sb content is modified

Reviewed-by: alanb, plevart, mduigou, forax
2013-05-15 00:36:03 -04:00
Alexey Utkin
41b7094a94 8012453: (process) Runtime.exec(String) fails if command contains spaces [win]
Reviewed-by: alanb
2013-05-14 20:16:21 +04:00
Roger Riggs
d5da33beea 8014296: DivModTests should not compare pointers
Reviewed-by: darcy
2013-05-10 09:06:21 -07:00
Joel Borggrén-Franck
5d83fde0d1 8007073: Implement Core Reflection for Type Annotations on parameters
Reviewed-by: darcy, abuckley
2013-05-10 10:20:13 +02:00
David Katleman
1b186bfddd 8014289: JDK8 b89 source with GPL header errors
Reviewed-by: mchung, mduigou, tbell, dsamersoff
2013-05-09 15:04:56 -07:00
Staffan Larsen
90294d0d6a 6980985: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage is not robust when getMax() returns -1
7181907: TEST_BUG: j/l/management/MemoryMXBean/ResetPeakMemoryUsage fails with NegativeArraySizeException
7148492: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java failing since update to hs23-b15 or b16

Reviewed-by: mchung, brutisso
2013-05-07 19:57:55 +02:00
Stuart Marks
73e9aec3c4 8012665: add CharSequence.chars, CharSequence.codePoints
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Reviewed-by: martin, alanb, ulfzibis, mduigou
2013-05-01 08:35:09 -07:00
Lana Steuck
9286dd7a1b Merge 2013-04-30 17:51:31 -07:00
David Katleman
05f3d6ab4b 8012643: JDK8 b86 source with GPL header errors
Reviewed-by: dholmes, alanb
2013-04-23 18:25:52 -07:00
Lana Steuck
8afbe69644 Merge 2013-04-17 21:48:04 -07:00
David Katleman
24ec30a8e7 Merge 2013-04-16 15:00:19 -07:00
Coleen Phillimore
4b1fc01e88 Merge 2013-04-17 15:06:17 -04:00
Mandy Chung
fa54d97a10 8004260: dynamic proxy class should have the same Java language access as the proxy interfaces
Reviewed-by: alanb, jrose, jdn
2013-04-17 12:04:15 -07:00
Coleen Phillimore
bdcf6abb46 8009531: Crash when redefining class with annotated method
Add code to annotated methods and command line flags to the tests to verify bug above

Reviewed-by: acorn, sspitsyn, dcubed, dholmes, alanb
2013-04-17 12:50:45 -04:00
David Katleman
930dcf7d28 8012048: JDK8 b85 source with GPL header errors
Reviewed-by: iris, mduigou, jjg
2013-04-12 15:22:33 -07:00
Robert Field
60fae99960 8012028: Metafactory-generated lambda classes should be final
8008941: isSynthetic() returns false for lambda instances

Reviewed-by: mduigou
2013-04-12 20:23:13 -07:00
Joe Darcy
2c7f3d292f 6298888: Add toGenericString to j.l.Class and getTypeName to j.l.reflect.Type
6992705: Include modifiers in Class.toGenericString()

Class.toGenericString and supporting changes; additional reviews by Peter Levart

Reviewed-by: alanb
2013-04-08 17:06:20 -07:00
Jim Gish
4b5d81c510 8006036: (process) cleanup code in java/lang/Runtime/exec/WinCommand.java
Reviewed-by: lancea
2013-04-08 15:29:24 -04:00
Joe Darcy
76a59cf150 8011590: More tests for core reflection modeling of default methods
Reviewed-by: mduigou
2013-04-05 18:20:12 -07:00
Joe Darcy
fa0b9daa08 8004979: java.lang.reflect.Modifier.toString should include "default"
Reviewed-by: mduigou
2013-04-02 16:26:54 -07:00
Jim Gish
4c7d3a9bd1 5015163: (str) String merge/join that is the inverse of String.split()
7172553: A utility class that forms the basis of a String.join() operation

Integrate StringJoiner changes from lambda

Reviewed-by: alanb, mduigou
2013-04-02 18:41:04 -04:00
Joe Darcy
edbd8cf91c 8012044: Give more information about self-suppression from Throwable.addSuppressed
Reviewed-by: alanb, dholmes
2013-04-25 09:37:03 -07:00
Martin Buchholz
edcaf23233 8010316: Improve handling of char sequences containing surrogates
Fix and optimize codePointAt, codePointBefore and similar methods

Reviewed-by: sherman, okutsu, ulfzibis, kizune
2013-03-26 13:36:51 -07:00
Vladimir Ivanov
9aba745d56 8009222: java.lang.IllegalArgumentException: not invocable, no method type when attempting to get getter method handle for a static field
Reviewed-by: jrose, twisti
2013-03-06 16:59:42 +04:00
Alan Bateman
9849742625 8006000: TEST_BUG: java/lang/invoke/lambda/LambdaAccessControlTest.java fails intermittently
Reviewed-by: chegar
2013-03-08 12:03:26 +00:00
Joe Darcy
bc576240bc 8009267: Restore isAnnotationPresent methods in public AnnotatedElement implementations
Reviewed-by: jjg
2013-03-04 19:42:56 -08:00
Alan Bateman
f99a5d722e 8008793: SecurityManager.checkXXX behavior not specified for methods that check AWTPermission and AWT not present
Reviewed-by: hawtin, mullan, dsamersoff, mchung
2013-02-27 14:24:45 +00:00
Robert Field
b0dc9de25e 8008770: SerializedLambda incorrect class loader for lambda deserializing class
Current thread's context ClassLoader was used to load class by name, pass class not name in serialization (Thank you Peter Levart for test and prototype. Thank you Sundar and Peter for unofficial reviews)

Reviewed-by: forax
2013-02-26 10:38:58 -08:00
Chris Hegarty
4e9403c378 Merge 2013-02-26 11:06:49 +00:00
Krystal Mo
f5666f9a69 7087570: java.lang.invoke.MemberName information wrong for method handles created with findConstructor
REF_invokeSpecial DMHs (which are unusual) get marked explicitly; tweak the MHI to use this bit

Reviewed-by: jrose, twisti
2013-02-26 11:05:26 +00:00
Lana Steuck
835c35dc91 Merge 2013-02-21 17:43:57 -08:00
Robert Field
56baa11720 8008356: Test LambdaSerialization.java failing
Run in /othervm mode

Reviewed-by: ksrini
2013-02-21 15:46:37 -08:00
Daniel D. Daugherty
5eb01d191d 8008352: java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh fails on MKS
Use more portable pattern counting constructs in test driver.

Reviewed-by: sspitsyn, sla, coleenp
2013-02-20 13:23:56 -08:00
David Holmes
390cc1d7a1 Merge 2013-02-17 16:44:19 -05:00
Daniel D. Daugherty
ba9cf66b48 8007935: java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh should use $COMPILEJAVA for javac
Reviewed-by: sspitsyn, alanb
2013-02-13 13:22:31 -08:00
Joel Borggrén-Franck
e0eba88c1b 8007278: Rename j.l.r.AnnotatedElement.getAnnotations(Class) to getAnnotationsByType(Class)
Reviewed-by: darcy, abuckley
2013-02-13 10:36:36 +01:00
Mike Duigou
71666c4c5a 8004561: Additional functional interfaces, extension methods and name changes
Adds additional functional interfaces for primitives and "Bi" (two operand). Adds utility extension methods. Includes some name changes for existing functional interfaces per EG decisions.

Reviewed-by: briangoetz, darcy, chegar, dholmes
2013-02-19 11:56:49 -08:00
Eric McCorkle
78fe727c6d 8008312: Re-enable MethodParameter tests in JDK
Reviewed-by: darcy
2013-02-19 17:09:25 +00:00
Robert Field
381aecb7c2 8004970: Implement serialization in the lambda metafactory
Reviewed-by: forax
2013-02-16 12:36:54 -08:00
Daniel D. Daugherty
249b55b573 8007420: add test for 6805864 to com/sun/jdi, add test for 7182152 to java/lang/instrument
Reviewed-by: coleenp, sspitsyn
2013-02-11 10:07:01 -08:00
David Holmes
eb1726c151 Merge 2013-02-04 18:08:50 -05:00
Joe Darcy
757d9cdeb9 8007115: Refactor regression tests for java.lang.reflect.Parameter
Reviewed-by: emc
2013-01-31 12:23:04 -08:00
Joel Borggrén-Franck
34e1726860 8005712: Simplify support for repeating annotations in j.l.r.AnnotatedElement
8004919: AnnotationSupport uses possibly half-constructed AnnotationType instances

Implements the simplified semantics for repeating annotations and removes the incorrect obtaining of an AnnotationType

Reviewed-by: darcy, abuckley
2013-01-31 10:10:34 +01:00
Joel Borggrén-Franck
b29b479461 8004698: Implement Core Reflection for Type Annotations
Reviewed-by: darcy
2013-01-29 10:32:49 +01:00
Akhil Arora
5dc4c11b2b 8004201: Add static utility methods to primitives to be used for redution operations
Reviewed-by: darcy, mduigou, briangoetz, dholmes
2013-01-25 16:13:39 -08:00
Rob McKenna
6c5679d418 8004729: Add java.lang.reflect.Parameter and related changes for parameter reflection
Reviewed-by: darcy, forax, psandoz, dholmes, tbell
2013-01-23 17:54:34 +00:00
Stefan Karlsson
15d98b74e9 7140852: Add test for 7022100
Reviewed-by: sspitsyn, coleenp
2013-01-22 15:25:37 +01:00
Stefan Karlsson
fe173efccd 8006506: Add test for redefining methods in backtraces to java/lang/instrument tests
Reviewed-by: sspitsyn, coleenp
2013-01-22 13:53:53 +01:00
Alan Bateman
a23a1a942b 8004502: Compact Profiles contents
Reviewed-by: dholmes, mchung
2013-01-21 23:35:36 -05:00
Rob McKenna
bdca3e8f8c 8005618: TEST_BUG: java/lang/ProcessBuilder/Basic.java failing intermittently
Reviewed-by: alanb, martin, dholmes
2013-01-15 19:58:22 +00:00
Alan Bateman
c12b624078 8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
Reviewed-by: chegar
2013-01-11 20:19:55 +00:00
Joe Darcy
3dfc6b7512 8006062: Add @Repeatable to repeating annotations regression tests in JDK repo
Reviewed-by: jjg
2013-01-10 21:12:27 -08:00
Jim Gish
5c5820e950 8005582: java/lang/Runtime/exec/WinCommand.java intermittent test failures
Remove file-deletion code at cleanup which conflicts with jtreg cleanup

Reviewed-by: chegar
2013-01-10 15:09:45 -05:00
Brent Christian
f7eb6cd556 8005962: TEST_BUG: java/util/Properties/MacJNUEncoding can fail in certain environments
Test script now sets LC_ALL, other small changes, relocate test

Reviewed-by: naoto, alanb
2013-01-10 10:21:44 -08:00
Lana Steuck
b7af263526 Merge 2012-12-28 18:36:41 -08:00
David Katleman
306cab1006 8004982: JDK8 source with GPL header errors
Reviewed-by: ohair
2012-12-20 16:24:50 -08:00
Joe Darcy
407aefdc02 8005042: Add Method.isDefault to core reflection
Reviewed-by: alanb, forax, mduigou, jgish, mchung
2012-12-18 14:44:13 -08:00
Alexey Utkin
c5c34df7bf 8004928: TEST_BUG: Reduce dependence of CoreLib tests from the AWT subsystem
The tests were refactored to drop AWT dependence where it was possible.

Reviewed-by: alanb, mchung
2012-12-17 14:34:37 +04:00
Mark Sheppard
c9063f559f 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
2012-12-13 14:47:35 +00:00
Mike Duigou
20d79bf440 8004905: Correct license of test to remove classpath exception
Reviewed-by: akhil
2012-12-11 20:49:44 -08:00
Akhil Arora
ee1832fd74 8003246: Add InitialValue Supplier to ThreadLocal
Reviewed-by: mduigou, forax, dl, chegar, briangoetz
2012-12-11 15:33:16 -08:00
Robert Field
846f0f2ded 8003881: Prevent lambda implementing inner classes from allowing the creation of new instances
Lambda implementing inner classes now has private constructor (thanks Kumar)

Reviewed-by: ksrini
2012-12-06 21:55:55 -08:00
Krystal Mo
e6ab16c283 8004066: TEST_BUG: test/java/lang/Math/DivModTests.java assumes ArithmeticException message
Reviewed-by: twisti, alanb, dholmes
2012-12-04 15:10:03 +00:00
Joel Borggrén-Franck
36464f41e2 7154390: Add support for repeating annotations in j.l.r.AnnotatedElement
Reviewed-by: darcy
2012-11-28 09:21:37 -08:00