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
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
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
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
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
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
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
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
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
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
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