Commit Graph

192 Commits

Author SHA1 Message Date
John R Rose
1f3aab409b 7054590: (JSR-292) MethodHandleProxies.asInterfaceInstance() accepts private/protected nested interfaces
Fix non-compliant logic in MethodHandleProxies, fix invalid private classes in MethodHandlesTest

Reviewed-by: twisti, never
2011-06-14 22:47:12 -07:00
John R Rose
9acf4f0284 7052202: JSR 292: Crash in sun.invoke.util.ValueConversions.fillArray
Fix corner cases involving MethodHandles.permuteArguments with long or double argument lists.

Reviewed-by: twisti, never
2011-06-14 22:47:09 -07:00
John R Rose
ad33af1a1c 7051206: JSR 292 method name SwitchPoint.isValid is misleading to unwary users; should be hasBeenInvalidated
Reviewed-by: kvn, never, ysr
2011-06-03 11:20:20 -07:00
John R Rose
c0d9c39aa2 7049122: java/lang/invoke/RicochetTest.java with MAX_ARITY=255 in -Xcomp mode overflows code cache
Reduce the scope of the unit test (mark high water mark of testing with @ignore tags)

Reviewed-by: never
2011-06-01 23:56:51 -07:00
John R Rose
f32795386e 7050328: (jsr-292) findConstructor throws ExceptionInInitializerError if run under SecurityManager
Wrap system property and reflection accesses under doPrivileged.  Ensure constant pool linkage bypasses the SM as specified.

Reviewed-by: kvn, never
2011-06-01 23:56:47 -07:00
John Coomes
93196c8b51 Merge 2011-05-27 19:03:03 -07:00
John R Rose
025d0aead8 7032323: code changes for JSR 292 EG adjustments to API, through Public Review
API code changes and javadoc changes following JSR 292 Public Review comments, through PFD

Reviewed-by: never
2011-05-26 17:37:36 -07:00
David Katleman
170844d307 7044486: open jdk repos have files with incorrect copyright headers, which can end up in src bundles
Reviewed-by: ohair, trims
2011-05-25 13:32:36 -07:00
Erik Trimble
0840b597d1 Merge 2011-05-20 05:24:32 -07:00
John R Rose
8bb387d77e 7044892: JSR 292: API entry points sometimes throw the wrong exceptions or doesn't throw the expected one
Point-fixes for 7038847, 7038860, 7042656, 7042829, 7041853, and several other reports

Reviewed-by: never, kvn
2011-05-17 19:48:19 -07:00
John R Rose
4b011923e2 7032850: MethodHandle.invokeGeneric throws unspecified RuntimeException if parameterized method is called
Implement invocation corner cases, including correct type conversions and interface type enforcement.

Reviewed-by: never
2011-05-17 19:48:14 -07:00
Erik Trimble
282881dd84 Merge 2011-05-17 14:29:59 -07:00
John R Rose
9a58e303d7 6939861: JVM should handle more conversion operations
Integrate JDK code with JVM-supplied ricochet frames.

Reviewed-by: never, twisti
2011-05-12 19:27:49 -07:00
John R Rose
eb9632506b 7034977: JSR 292 MethodHandle.invokeGeneric should be renamed MethodHandle.invoke
Rename invokeGeneric to invoke

Reviewed-by: never, twisti
2011-05-12 19:27:33 -07:00
Xueming Shen
4463efaf61 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
Updated j.l.c.lsLowerCase/isUpperCase

Reviewed-by: okutsu
2011-04-28 20:18:57 -07:00
Joe Darcy
30bdc40c81 7039369: Limit range of strictfp in FloatingDecimal
Additional reviews by sergey.kuksenko@oracle.com

Reviewed-by: alanb
2011-04-26 10:35:06 -07:00
Lana Steuck
b550ca992e Merge 2011-04-25 15:44:20 -07:00
Joe Darcy
896553f439 6998871: Support making the Throwable.stackTrace field immutable
Reviewed-by: dholmes, mchung, forax
2011-04-21 15:55:59 -07:00
Lana Steuck
b92cf6375e Merge 2011-04-21 11:11:20 -07:00
Michael McMahon
1b62e08853 7034570: java.lang.Runtime.exec(String[] cmd, String[] env) can not work properly if SystemRoot not inherited
Reviewed-by: dholmes, alanb
2011-04-20 12:03:30 +01:00
Erik Trimble
0927ad6bb3 Merge 2011-04-19 18:14:51 -07:00
Mike Duigou
d845140f33 7035160: Disable broken test cases for test/java/lang/reflect/Generics/Probe.java
Reviewed-by: alanb
2011-04-18 11:31:38 -07:00
Joe Darcy
04d347dde1 7021568: Double.parseDouble() returns architecture dependent results
Reviewed-by: alanb
2011-04-17 22:52:26 -07:00
Lana Steuck
b99716e22a Merge 2011-04-17 16:19:29 -07:00
Joe Darcy
b4d4e3bed4 6430675: Math.round has surprising behavior for 0x1.fffffffffffffp-2
Reviewed-by: alanb
2011-04-14 21:27:10 -07:00
Kelly O'Hair
7c8e01891a Merge 2011-04-13 16:56:16 -07:00
Erik Trimble
5c3b84ba2d Merge 2011-04-12 16:37:16 -07:00
Xueming Shen
e27e4cb99b 7033561: Missing Unicode Script aliases
Added 6.0 aliases

Reviewed-by: okutsu, peytoia, alanb
2011-04-10 23:33:14 -07:00
John R Rose
06a8e9b35e 7019529: JSR292: java/dyn/ClassValueTest.java depends on sub-test execution order
Test should not use static variables, because they may contain stale values.

Reviewed-by: twisti
2011-04-09 21:38:40 -07:00
John R Rose
e60c5b1af0 6817525: turn on method handle functionality by default for JSR 292
JVM bug 6817525 requires changes to some JDK unit tests; update test invocation flags and "Indify" snapshot

Reviewed-by: kvn, twisti
2011-04-07 22:07:06 -07:00
Kelly O'Hair
d2b1e20c7d 7033660: Update copyright year to 2011 on any files changed in 2011
Reviewed-by: dholmes
2011-04-06 22:06:11 -07:00
Lana Steuck
1c712d2e72 Merge 2011-04-04 17:28:28 -07:00
Lana Steuck
1e260ac520 Merge 2011-04-01 14:47:59 -07:00
Lana Steuck
24ab596494 Merge 2011-03-31 22:07:32 -07:00
Joe Darcy
92c64a56ae 7005628: Clarify NPE behavior of Throwable.addSuppressed(null)
Reviewed-by: dholmes, mchung, jjb
2011-03-31 19:09:02 -07:00
Mandy Chung
793f1078b6 7024172: Move BufferPoolMXBean and PlatformLoggingMXBean java.lang.management
Reviewed-by: alanb
2011-03-29 15:50:55 -07:00
Sergey Malenkov
4eb4d46567 6825739: jdk regression test failing on linux: java/lang/reflect/Method/InheritedMethods.java
Reviewed-by: rupashka
2011-03-24 21:45:46 +03:00
Jim Holmlund
1273c8e233 7029823: (ann) test/java/lang/annotation/package-info.java no longer compiles
Use @Deprecated instead of @java.lang.annotation.Documented

Reviewed-by: jjg, smarks
2011-03-24 11:40:13 -07:00
John R Rose
3718824e69 7012648: move JSR 292 to package java.lang.invoke and adjust names
Package and class renaming only; delete unused methods and classes; add @since tags; no code changes

Reviewed-by: twisti
2011-03-23 23:02:31 -07:00
Chris Hegarty
23ff61a1ff 6721694: java/lang/Thread/StartOOMTest.java fails with timeout or with crash
The test is not suitable to be run automatically

Reviewed-by: alanb
2011-03-03 16:48:53 +00:00
Michael McMahon
340701d021 7018606: (process) test/java/lang/ProcessBuilder/Basic.java failing intermittently (win)
Reviewed-by: alanb
2011-03-03 15:34:09 +00:00
Stuart Marks
dd0e38d73a 7021209: convert lang, math, util to use try-with-resources
Reviewed-by: alanb, darcy, naoto
2011-02-22 15:34:17 -08:00
Alan Bateman
4c2006a780 7021327: Changes for 7020888 included changes to other files in error
Reviewed-by: chegar
2011-02-22 14:28:13 +00:00
Alan Bateman
17cace4c58 7020888: (file) Miscellaneous and trivial clean-ups (typos and opportunities to use suppressed exceptions)
Reviewed-by: mduigou, chegar
2011-02-22 12:04:48 +00:00
Chris Hegarty
560ab81595 6562203: Thread doesn't terminate immediately if it was stopped before start
Reviewed-by: dholmes, alanb
2011-02-16 12:38:13 +00:00
Dmitry Nadezhin
aa6f495fbe 4421494: infinite loop while parsing double literal
Reviewed-by: darcy, alanb
2011-02-08 19:31:44 +00:00
Michael McMahon
1d6cc8fc42 6751021: TEST_BUG: race condition in the test java/lang/Runtime/exec/Duped.java
Reviewed-by: alanb
2011-02-03 12:57:04 +00:00
Lana Steuck
fb91d40572 Merge 2011-01-04 17:05:38 -08:00
Kelly O'Hair
6b6a611c8e 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:53:50 -08:00
Stuart Marks
6e7cb44eea 6880112: Project Coin: Port JDK core library code to use diamond operator
Reviewed-by: darcy, lancea, alanb, briangoetz, mduigou, mchung
2010-12-20 13:47:04 -08:00
Lana Steuck
a0eaaf3f1e Merge 2010-11-29 10:50:49 -08:00
Yuka Kamiya
4a4fb15178 6959267: Support Unicode 6.0.0
Reviewed-by: okutsu
2010-11-17 01:02:20 +09:00
Joe Darcy
3aae57e052 6991528: Support making Throwable.suppressedExceptions immutable
Reviewed-by: mchung, dholmes
2010-11-14 07:22:39 -08:00
Kelly O'Hair
39a2b6c9ff 6792706: Add JAR file to bootclasspath when using AggressiveOpts
Reviewed-by: alanb, kvn, darcy
2010-11-08 09:29:18 -08:00
Mandy Chung
d0f3de3b59 6992121: StringBuilder.ensureCapacity(int minCap) throws OutOfMemoryError with minCap=Integer.MIN_VALUE
Reviewed-by: dholmes, alanb
2010-10-19 10:02:25 -07:00
Mandy Chung
441155f0d9 6992968: test/java/lang/management/MemoryMXBean/CollectionUsageThresholdConcMarkSweepGC.sh should not hang
Reviewed-by: alanb, dholmes
2010-10-19 09:49:08 -07:00
Mandy Chung
d990871881 6977738: Deadlock between java.lang.ClassLoader and java.util.Properties
Reviewed-by: alanb, sherman, darcy, igor
2010-10-11 20:22:27 -07:00
Alan Bateman
1550d01979 6989903: (process) test/java/lang/ProcessBuilder/Basic.java failing with "Bad file number" (sol)
Reviewed-by: ohair, chegar
2010-10-07 10:35:36 +01:00
Lana Steuck
53e6cf8989 Merge 2010-09-25 12:00:05 -07:00
Martin Buchholz
11cc8fa5e6 6981138: (process) Process.waitFor() may hang if subprocess has live descendants (lnx)
Do exit status handling before trying to close streams

Reviewed-by: alanb, dholmes
2010-09-17 14:35:00 -07:00
Lana Steuck
a682d9348d Merge 2010-09-16 11:19:43 -07:00
Kelly O'Hair
f7e31fc6c2 6982137: Rebranding pass 2 - missed copyright changes
Reviewed-by: mbykov
2010-09-09 16:26:46 -07:00
Mandy Chung
c8f3efcc75 6981005: TEST BUG: java/lang/ClassLoader/TestCrossDelegate.sh timeout on windows
Increase timeout value

Reviewed-by: alanb
2010-08-31 09:15:34 -07:00
Martin Buchholz
aff3ad21b8 6980747: Runtime.exec can fail due to SecurityException (lnx)
Add missing doPrivileged to UNIXProcess.java.linux

Reviewed-by: alanb
2010-08-28 12:15:52 -07:00
Mandy Chung
a33a3ae92b 6921234: TEST_BUG: java/lang/ClassLoader/deadlock/TestCrossDelegate.sh needs to be modified for Cygwin
Add check for CYGWIN

Reviewed-by: ohair
2010-08-16 15:36:13 -07:00
Joe Darcy
7dcb52915b 6963622: Project Coin: Refinements to suppressed exceptions
Reviewed-by: alanb, forax, jjb
2010-07-15 18:02:05 -07:00
Ulf Zibis
9c81e25271 6937112: String.lastIndexOf confused by unpaired trailing surrogate
Rewrite lastIndexOf for performance and correctness

Reviewed-by: sherman
2010-06-30 16:11:32 -07:00
Joshua Bloch
50f960454d 6911258: Project Coin: Add essential API support for Automatic Resource Management (ARM) blocks
6911261: Project Coin: Retrofit Automatic Resource Management (ARM) support onto platform APIs
6962571: Infinite loop in printing out Throwable stack traces with circular references

Reviewed-by: darcy, alanb
2010-06-23 17:03:40 -07:00
Mandy Chung
0a801a25db 6961894: TEST_BUG: jdk_lang tests fail in samevm mode
Fixed jdk_lang tests to run in samevm mode or mark to run in othervm

Reviewed-by: alanb
2010-06-18 09:35:22 -07:00
Lana Steuck
ce4febb72c Merge 2010-06-16 14:07:47 -07:00
Mandy Chung
0f0ac3ef39 6961502: TEST_BUG: test/java/lang/ClassLoader/defineClass/DefineClassByteBuffer.java fails
Fix the test to define TestClass by DummyClassLoader as it intends to do

Reviewed-by: alanb
2010-06-16 12:40:22 -07:00
Mandy Chung
fc99cf1793 6961518: TEST_BUG: add @run main/othervm in tests that call setSecurityManager
Mark tests to run in othervm

Reviewed-by: ohair
2010-06-15 20:29:22 -07:00
Martin Buchholz
45b78120fc 6944584: Improvements to subprocess handling on Unix
Use thread pool for reaper thread; move most I/O operations out of reaper thread

Reviewed-by: michaelm, hiroshi
2010-06-11 18:55:45 -07:00
Lana Steuck
27a539e27c Merge 2010-06-07 17:08:26 -07:00
Lana Steuck
fd45b4188c Merge 2010-05-28 12:10:14 -07:00
Kelly O'Hair
80b67f81af 6956202: Fix a few missed rebranding issues, please contact lines etc
Reviewed-by: jjg, darcy, weijun
2010-05-26 20:28:04 -07:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Xueming Shen
bb2be852aa 6945564: Unicode script support in Character class
6948903: Make Unicode scripts available for use in regular expressions

Added Unicode script suport

Reviewed-by: martin
2010-05-18 15:36:47 -07:00
Martin Buchholz
3927da83d0 6952330: Fix for 6933217 broke contract of StringBuffer.ensureCapacity
Make sure to grow with size => size * 2 + 2

Reviewed-by: dholmes, chegar, ohair
2010-05-13 21:56:13 -07:00
Kelly O'Hair
56131863a7 6943915: Adjust jdk/test/Makefile to deal with .dll and .so libraries needing execute permissions
And adjustments to test problem list.

Reviewed-by: jjg
2010-05-12 21:35:55 -07:00
Xueming Shen
ec70851450 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
To use CreateProcessW on Windowns platform

Reviewed-by: martin
2010-04-03 18:29:11 -07:00
Kelly O'Hair
2e5624299a 6911129: These tests do not work with CYGWIN: java/lang
Reviewed-by: tbell, alanb
2010-01-04 15:49:34 -08:00
Joe Darcy
37a980650b 6908131: Pure Java implementations of StrictMath.floor(double) & StrictMath.ceil(double)
Reviewed-by: alanb
2009-12-15 13:51:44 -08:00
Joe Darcy
c40412f4f4 6907177: Update jdk tests to remove unncessary -source and -target options
Reviewed-by: ohair
2009-12-03 18:19:10 -08:00
Abhijit Saha
7f00e1bf5e Merge 2009-10-16 11:20:38 -07:00
Andrew Haley
793ab85271 4428022: System.out.println(0.001) outputs 0.0010
Reviewed-by: darcy
2009-10-15 18:27:39 -07:00
Abhijit Saha
a4074cd2c5 Merge 2009-10-15 14:41:51 -07:00
Mandy Chung
6f42b7b834 6891701: test/java/lang/management/RuntimeMXBean/GetSystemProperties should restore the system property
Restore the system properties when the test finishes

Reviewed-by: jjg
2009-10-14 20:16:02 -07:00
Abhijit Saha
02d2cc35f6 Merge 2009-10-14 14:21:25 -07:00
Joe Darcy
8b993775d5 6648344: (reflect spec) State default of isAccessible for reflective objects
Reviewed-by: alanb
2009-10-13 14:08:57 -07:00
Abhijit Saha
c6c70af568 Merge 2009-10-06 21:40:55 -07:00
Kevin Bourrillion
beaa8fd82d 6582946: Add suite of compare(T, T) methods for ints, longs etc
Reviewed-by: darcy
2009-09-22 18:30:58 -07:00
Martin Buchholz
4e63c9bc06 4245470: algorithm of java.lang.Byte.hashCode() is not specified
Specify some hashCode methods are equivalent to intValue

Reviewed-by: darcy
2009-09-22 18:30:58 -07:00
Martin Buchholz
f22c848304 6850958: Honor -XX:OnOutOfMemoryError when array size exceeds VM limit
Test hotspot/jvmti fix 6850957 using ProcessBuilder test infrastructure

Reviewed-by: tbell, dholmes, alanb, ysr
2009-09-08 14:33:59 -07:00
Abhijit Saha
5456677e02 Merge 2009-09-05 07:55:05 -07:00
Joe Darcy
f8db2dee43 6873951: test/java/lang/reflect/Generics/Probe.java fails
Reviewed-by: alanb
2009-09-04 13:11:17 -07:00
Valerie Peng
fb19c4e1f9 6874407: Missing regression test for 6636650
Prevent classloader from resurrection

Reviewed-by: hawtin
2009-08-20 17:16:13 -07:00
Xueming Shen
dfa68f9504 6840246: Lightweight implementation of String.split for simple use case
Added a fastpath for simple use case

Reviewed-by: alanb, martin
2009-08-13 10:50:23 -07:00
Martin Buchholz
a5e977cf14 6850720: (process) Use clone(CLONE_VM), not fork, on Linux to avoid swap exhaustion
Use clone(CLONE_VM) on Linux; Reluctantly implement execvpe.

Reviewed-by: michaelm
2009-06-14 14:23:22 -07:00
Tim Bell
54e8ace85c Merge 2009-06-11 21:32:12 -07:00