Commit Graph

20136 Commits

Author SHA1 Message Date
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
John R Rose
62ee211c8d 8024761: JSR 292 improve performance of generic invocation
Use a per-MH one element cache for MH.asType to speed up MH.invoke; also cache enough MH constants to cache LMF.metafactory

Reviewed-by: twisti
2013-10-05 05:30:38 -07:00
Sean Coffey
1d4c1c6ee5 8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash
Reviewed-by: mkos, chegar
2013-10-04 16:27:12 +01:00
Bhavesh Patel
c855900623 8025741: Fix jdk/make/docs/Makefile to point to correct docs URL for JDK 8
Reviewed-by: tbell
2013-10-04 15:25:18 -07:00
Robert Field
f718e1fa54 8021186: jdk/lambda/vm/DefaultMethodsTest.java fails
Remove DefaultMethodsTest from jdk/test/problemList.txt

Reviewed-by: mduigou
2013-10-04 09:54:43 -07:00
Stephen Colebourne
ea9e3930af 8024834: Better return type for TemporalField resolve
Allow resolve method to return more than just ChronoLocalDate

Reviewed-by: sherman
2013-09-14 22:54:38 +01:00
Stephen Colebourne
2040c66b16 8024807: Add getChronlogy() to CLDT/CZDT
Alternative to method is clunky and hard to find

Reviewed-by: sherman
2013-09-14 22:50:40 +01:00
Roger Riggs
d18aae693d 8024999: Instant.Parse typo in example
Javadoc only fix to correct example to use "." and "Z"

Reviewed-by: sherman
2013-10-04 12:01:29 -04:00
Stephen Colebourne
c492e4ef1f 8024835: Change until() to accept any compatible temporal
Method until(Temporal,TemporalUnit) now uses from() to convert; Enhance from() methods where necessary

Reviewed-by: sherman
2013-09-14 22:46:49 +01:00
Stephen Colebourne
61fc7dfe0c 8023762: Add ChronoPeriod interface and bind period to Chronology
Make Period ISO-only, adding a Chronology-specific period concept

Reviewed-by: sherman
2013-09-04 15:18:54 +01:00
Stephen Colebourne
75fb106fec 8023763: Rename ChronoDateImpl
Rename ChronoDateImpl to ChronoLocalDateImpl

Reviewed-by: sherman
2013-08-30 11:43:57 +01:00
Stephen Colebourne
c762984485 8023764: Optimize Period addition
Optimise plus/minus for common cases

Reviewed-by: sherman
2013-08-29 20:38:46 +01:00
Vinnie Ryan
cbe29b7b72 8008296: keytool utility doesn't support '-importpassword' command
Reviewed-by: weijun
2013-10-04 16:05:55 +01:00
Peter Allwin
f426e35d99 8025829: Add java/lang/instrument/RetransformBigClass.sh to problemlist
Reviewed-by: sla, jbachorik
2013-10-04 15:00:42 +02:00
Roger Riggs
1e581e11ea 8024427: Missing java.time.chrono serialization tests
Add tests and cleanup existing serialization tests

Reviewed-by: sherman
2013-10-03 15:16:14 -04:00
Paul Rank
a4b39faa4f 8024896: Refactor java.time serialization tests into separate subpackage
Move serialization tests to .serial subpackage

Reviewed-by: sherman
2013-08-22 10:01:47 -07:00
Robert Field
1705cfa533 8020849: jdk/lambda/vm/DefaultMethodsTest.java
Bridge generation has been removed from the VM. Fix is to remove tests that no longer make sense.

Reviewed-by: ksrini
2013-10-03 11:26:53 -07:00
Robert Field
551b5e50c6 8010433: Remove lambda metafactory work-around to JDK-8005119
Restore invokespecial to lambda metafactory

Reviewed-by: ksrini
2013-10-03 10:23:48 -07:00
Alexander Zuev
ccbfbe8736 8025738: locale related test fails on langtools mac 10.7 test host
Reviewed-by: ksrini
2013-10-03 17:40:45 +04:00
Dmitry Samersoff
d95f70f9d3 8009213: sun/management/jdp/JdpTest.sh fails with exit code 1
There's no guarantee that the java process has executed far enough to be found by jps when we try to obtain it's pid.

Reviewed-by: sla
2013-10-03 16:54:55 +04:00
Paul Sandoz
1604846c44 8025567: Mark relevant public stream tests as serialization hostile
Reviewed-by: alanb
2013-10-03 10:59:51 +02:00
Paul Sandoz
10a6fcc8a0 8025534: Unsafe typecast in java.util.stream.Streams.Nodes
8025538: Unsafe typecast in java.util.stream.SpinedBuffer
8025533: Unsafe typecast in java.util.stream.Streams.RangeIntSpliterator.splitPoint()
8025525: Unsafe typecast in java.util.stream.Node.OfPrimitive.asArray()

Reviewed-by: chegar
2013-10-02 16:34:12 +02: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
Bradford Wetmore
47f46da3fa 8025694: Rename getStrongSecureRandom based on feedback
8014838: getStrongSecureRandom() should require at least one implementation

Reviewed-by: mullan, darcy
2013-10-02 09:38:57 -07:00
Erik Gahlin
65580cea43 6696975: JTop plugin fails if connected readonly to target JVM
Reviewed-by: mchung, jbachorik, sla, sjiang
2013-10-01 17:48:01 +02:00
Paul Sandoz
7ee60c366e 8025535: Unsafe typecast in java.util.stream.SortedOps
Reviewed-by: mduigou, chegar
2013-10-01 18:20:03 +02:00
Masayoshi Okutsu
f640e20e65 8022666: java.util.Calendar.set(int,int,int,int,int,int) documentation typo
Reviewed-by: peytoia
2013-10-02 17:57:04 +09:00
Sean Coffey
8d0e77641f 8024952: ClassCastException in PlainSocketImpl.accept() when using custom socketImpl
Reviewed-by: chegar
2013-10-02 09:21:02 +01:00
Masayoshi Okutsu
824b25cc94 6902861: (cal) GregorianCalendar roll WEEK_OF_YEAR is broken for January 1 2010
Reviewed-by: peytoia
2013-10-02 15:31:35 +09:00
Artem Smotrakov
54ebd8d42e 8025123: SNI support in Kerberos cipher suites
Reviewed-by: weijun, xuelei
2013-10-01 20:25:44 -07: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
Kumar Srinivasan
de7eca4a39 8025342: NLS: unsupported translation format in jar/pack/DriverResource.java
Reviewed-by: naoto, mfang
2013-10-01 15:40:34 -07: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
Vladimir Ivanov
8e924e70a6 8024616: JSR292: lazily initialize core NamedFunctions used for bootstrapping
Reviewed-by: jrose
2013-09-18 20:12:05 +04:00
Vladimir Ivanov
b91ee23895 8001107: @Stable annotation for constant folding of lazily evaluated variables
Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: twisti, kvn, rbackman
2013-09-23 19:51:40 +04:00
Mike Duigou
2a3c1e97b2 8025686: Update jdk repo netbeans projects to support NetBeans 7.4 for Java 8 support
Reviewed-by: lancea, chegar
2013-10-01 10:37:05 -07:00
Mike Duigou
bf70514208 8025067: Unconditionally throw NPE if null op provided to Arrays.parallelPrefix
Reviewed-by: henryjen, chegar, psandoz
2013-10-01 10:23:00 -07:00
Stephen Colebourne
8fd60ce581 7057785: Add note about optional support of recursive methods for self-referential Collection/Map
Reviewed-by: scolebourne, darcy, mduigou
2013-09-30 15:50:06 -07:00
Aleksei Efimov
2a5d8d6d8c 8024707: TransformerException : item() return null with node list of length != 1
Reviewed-by: joehw, lancea
2013-10-01 17:15:43 +04:00
Paul Sandoz
223c6bf379 8024408: Specifications for Collection/List/Set/SortedSet.spliterator() need to document if all the (subclass) instances are required to return SIZED spliterators
Reviewed-by: alanb
2013-10-01 12:19:20 +02:00
Naoto Sato
3debf156b1 8016110: Japanese char (MS932) 0x5C cannot be used as an argument when quoted
Reviewed-by: ksrini, akhil
2013-09-30 16:15:49 -07:00
Anthony Scarpino
e9806ae426 8009438: sun/security/pkcs11/Secmod tests failing on Ubuntu 12.04
Reviewed-by: vinnie
2013-09-02 09:52:08 -07:00
Anthony Scarpino
cf7cbcdce8 8004283: test/sun/security/pkcs11/KeyStore/SecretKeysBasic.sh failing intermittently
Reviewed-by: vinnie
2013-09-18 14:57:29 -07:00