67 Commits

Author SHA1 Message Date
Otavio Goncalves de Santana
8f0e6e3060 8044461: Cleanup new Boolean and single character strings
Reviewed-by: rriggs, alanb, lancea
2014-05-30 15:46:12 -04:00
Paul Sandoz
51efd87812 8032779: Update code in java.lang to use newer language features
Reviewed-by: darcy, alanb
2014-01-27 14:29:37 +01:00
Joel Borggrén-Franck
6c53570dc7 8029117: (reflect) clarify javadoc for getMethod(...) and getMethods()
Reviewed-by: darcy
2013-12-04 11:04:05 +01: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
Roger Riggs
93dcac6266 8026982: javadoc errors in core libs
Cleanup of javadoc -Xlint errors

Reviewed-by: lancea, mduigou, darcy, mullan, mchung
2013-10-22 17:02:08 -04: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
Chris Hegarty
766e77499d Merge 2013-10-15 09:27:32 +01:00
Chris Hegarty
6088b141e2 Merge 2013-10-03 19:06:43 +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
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
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
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
Chris Hegarty
533cdad97a Merge 2013-08-09 14:43:19 +01:00
Chris Hegarty
1bdfa7bf9f Merge 2013-07-25 19:03:29 +01:00
Joe Darcy
5cae1dc78f 8020810: Typo in javadoc for Class.toGenericString()
Reviewed-by: dholmes
2013-07-18 23:16:52 -07:00
Joel Borggrén-Franck
79bda234fe 8014349: (cl) Class.getDeclaredClass problematic in some class loader configurations
Reviewed-by: mchung, ahgross, darcy
2013-07-15 14:44:50 +02:00
Peter Levart
b0d167645f 7122142: (ann) Race condition between isAnnotationPresent and getAnnotations
Reviewed-by: dholmes, jfranck
2013-07-15 10:55:53 +02: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
Joe Darcy
e751cc77ad 8017550: Fix doclint issues in java.lang and subpackages
Reviewed-by: alanb, chegar
2013-06-24 23:40:31 -07:00
Chris Hegarty
9735594f15 Merge 2013-06-18 09:39:25 +01:00
Aleksey Shipilev
9821ebcba7 8016236: Class.getGenericInterfaces performance improvement
Cache more reflective data and lookup results.

Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: alanb, plevart, psandoz, dl
2013-06-17 16:28:22 +04:00
Eric McCorkle
47556dfb0d 8016019: Remove setProtectionDomain0 and JVM_SetProtectionDomain in JDK
SetProtectionDomain0 and JVM_SetProtectionDomain are unused since at least 1.5.  This is the JDK side of a changeset to remove it.

Reviewed-by: alanb
2013-06-06 09:51:17 -04:00
Joel Borggrén-Franck
a638aed2e1 8011139: (reflect) Revise checking in getEnclosingClass
Reviewed-by: darcy, mchung, ahgross
2013-05-07 13:23:08 +02:00
Chris Hegarty
22126efe5a Merge 2013-06-10 10:38:33 +01:00
Mandy Chung
3a6de961eb 8011557: Improve reflection utility classes
Reviewed-by: ahgross, alanb
2013-04-17 15:04:59 -07:00
Joel Borggrén-Franck
a005174625 8007812: (reflect) Class.getEnclosingMethod problematic for some classes
Better checking in getEnclosing(Method|Constructor|Class)

Reviewed-by: darcy, ahgross, mchung
2013-04-19 14:40:31 +01:00
Mandy Chung
176ed8d94c 8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
Reviewed-by: jrose, alanb, twisti
2013-04-16 21:39:52 -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
Lana Steuck
31330fc47a Merge 2013-03-12 19:04:49 -07:00
Joe Darcy
bc576240bc 8009267: Restore isAnnotationPresent methods in public AnnotatedElement implementations
Reviewed-by: jjg
2013-03-04 19:42:56 -08:00
Edvard Wendelin
cbfc80d987 Merge 2013-02-19 21:48:01 +01: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
Joe Darcy
7c644b0a4b 8014836: Have GenericDeclaration extend AnnotatedElement
Reviewed-by: abuckley, jfranck
2013-05-22 20:03:45 -07:00
Edvard Wendelin
11036fb4d5 Merge 2013-02-05 15:35:35 +01:00
Joe Darcy
920d11993c 8007113: Upgrade AnnotatedElement.isAnnotionPresent to be a default method
Reviewed-by: chegar, jfranck
2013-02-04 17:56:29 -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
Peter Levart
e912773451 8005232: (JEP-149) Class Instance size reduction
Moved the fields for cached reflection objects into a seperate ReflectionData object to reduce dynamic footprint.

Reviewed-by: dholmes, mchung, shade
2013-01-13 19:57:06 -05:00
Joe Darcy
059b2b67b3 8005097: Tie isSynthetic javadoc to the JLS
Reviewed-by: mduigou
2012-12-19 11:53:52 -08:00
Edvard Wendelin
f92370665e Merge 2013-02-03 23:25:38 +01: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
Mandy Chung
d3ccd20d1f 7197546: (proxy) Reflect about creating reflective proxies
Reviewed-by: alanb, jdn, jrose
2012-11-02 16:50:23 -07:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
Alan Bateman
9b8e06e699 8000269: Cleanup javadoc warnings
Reviewed-by: lancea, darcy, ulfzibis, iris, naoto, dholmes
2012-10-01 15:36:57 +01:00
Mandy Chung
9108824515 7193339: Prepare system classes be defined by a non-null module loader
Reviewed-by: alanb, dholmes, dsamersoff, sspitsyn, psandoz
2012-08-24 22:55:49 -07:00
John R Rose
cec41c4c9d 7030453: JSR 292 ClassValue.get method is too slow
Implement ClassValue cooperatively with Class like ThreadLocal with Thread.

Reviewed-by: twisti, mduigou
2012-01-18 17:34:32 -08:00
Omair Majid
d312aad0c1 7117612: Miscellaneous warnings in java.lang
Reviewed-by: smarks, dholmes, alanb, darcy
2011-12-08 13:48:54 -05:00