hg: jdk8/tl/jdk: 8008279: Remove InvalidContainerAnnotationError.java

2013-02-26 Thread joe . darcy
Changeset: d623f520557b
Author:darcy
Date:  2013-02-26 17:38 -0800
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d623f520557b

8008279: Remove InvalidContainerAnnotationError.java
Reviewed-by: jfranck

- src/share/classes/java/lang/annotation/InvalidContainerAnnotationError.java
! src/share/classes/java/lang/reflect/AnnotatedElement.java
! src/share/classes/sun/reflect/annotation/AnnotationSupport.java



hg: jdk8/tl/jdk: 8009102: Several docs warnings in Project Lambda APIs

2013-02-26 Thread joe . darcy
Changeset: 543be9488e50
Author:darcy
Date:  2013-02-26 17:01 -0800
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/543be9488e50

8009102: Several docs warnings in Project Lambda APIs
Reviewed-by: mduigou

! src/share/classes/java/lang/invoke/LambdaMetafactory.java
! src/share/classes/java/util/function/BinaryOperator.java
! src/share/classes/java/util/function/ToDoubleBiFunction.java



hg: jdk8/tl/jdk: 8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes

2013-02-26 Thread alan . bateman
Changeset: ecd33c6ab12f
Author:alanb
Date:  2013-02-26 22:39 +
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ecd33c6ab12f

8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
Reviewed-by: mduigou

! makefiles/CreateJars.gmk



hg: jdk8/tl/jdk: 8008770: SerializedLambda incorrect class loader for lambda deserializing class

2013-02-26 Thread robert . field
Changeset: 5ebc62421717
Author:rfield
Date:  2013-02-26 10:38 -0800
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5ebc62421717

8008770: SerializedLambda incorrect class loader for lambda deserializing class
Summary: 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

! src/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java
! src/share/classes/java/lang/invoke/SerializedLambda.java
+ test/java/lang/invoke/lambda/LambdaClassLoaderSerialization.java
! test/java/lang/invoke/lambda/LambdaSerialization.java



Re: RFR: Re-enable support for non-Principal implementations of PrincipalComparator

2013-02-26 Thread Neil Richards
Hi Sean,
Thanks for your quick response.

I admit, I hadn't spotted the description of the policy file syntax to
which you point.

(In my defence, it's a lot easier to overlook than the explicit wording
that I found at the top of PrincipalComparator's Javadoc).

Just for info, are there other scenarios where (non-Principal)
PrincipalComparator impls can (still) be used, which matches that class'
Javadoc ?

And do these other scenarios also (already) support the use of
Principal.implies() ?

I think your answer may have obviated my desire for using the suggested
fix. 
I'm asking around nearby to see if evidence of real use breakage can be
found, and will tug on this thread again if/when I have something more
to share on this.

Regards,
Neil

On Thu, 2013-02-21 at 17:38 -0500, Sean Mullan wrote:
> Hi,
> 
> On 02/21/2013 07:13 AM, Neil Richards wrote:
> > Hi,
> > The change made for the RFE 7019834 [1] [2] [3] is built upon the
> > assertion that:
> >  "All PrincipalComparator implementations should already
> >  implement Principal".
> >
> > However, the Javadoc for com.sun.security.auth.PrincipalComparator in
> > the JAAS specification [4] states that:
> >  "Although classes that implement this interface typically also
> >  implement the java.security.Principal interface, it is not
> >  required. In other words, classes may implement the
> >  java.security.Principal interface by itself, the
> >  PrincipalComparator interface by itself, or both at the same
> >  time."
> >
> > Therefore, it is to be expected that there exist user implementations of
> > PrincipalComparator which do not also implement Principal, and which are
> > therefore broken by the change made by 7019834.
> 
> Do you have any evidence that there are user implementations of
> PrincipalComparator which do not also implement Principal? I'm 
> sympathetic to the compatibility issue, but would really like to see 
> some evidence of real use cases.
> 
> > One example of this (prior to its modification by 7019834) was the jtreg
> > test test/sun/security/provider/PolicyFile/Comparator.java, which
> > (legitimately) had several classes implementing only
> > PrincipalComparator.
> 
> Yes, though I would argue that the JavaPolicy implementation actually 
> had a bug in it and was not compliant with the policy syntax [1]. These 
> should be classes that implement the java.security.Principal interface.
> 
> > The changes made by 7019834 effectively both deprecate the use of
> > PrincipalComparator - which is arguably fair enough (though the Javadoc
> > for PrincipalComparator should to modified to reflect this change) - AND
> > remove the support for its function, all in one fell swoop, which I
> > suggest is not legitimate to do (within the same release as the initial
> > deprecation).
> 
> Preserving compatibility is certainly important, so I do think its 
> important that we understand if there are actual scenarios that might 
> break, but I don't think we should add this extra code for something 
> that is not compliant with the documented JavaPolicy syntax.
> 
> > Given this, I have prepared a suggested change [5] to re-enable support
> > for honoring the JAAS spec in this regard for implementations of
> > PrincipalComparator that do not also implement Principal.
> >
> > Trying to conform to the spirit of the 7019834 change, I've implemented
> > this using reflection, so the code is tolerant of situations where
> > PrincipalComparator is not available.
> >
> > For jtreg tests, I've copied the original form of the "Comparator" test,
> > changing only its name (to "CompatibleComparator").
> >
> >
> > Please review this change and let me know what you think.
> >
> > I'd be particularly interested in any suggestions regarding the
> > Class.forName() call to find the PrincipalComparator class in the static
> > initializer block - should it be wrapped in a doPrivileged block, or fed
> > some specific ClassLoader ?
> >
> > Also, could a new bug id be generated for this, please ?
> >
> > Thanks,
> > Neil
> >
> > [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7019834
> > [2] 
> > http://mail.openjdk.java.net/pipermail/security-dev/2012-December/006270.html
> > [3] http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/bf6d0bca5ea7
> > [4] 
> > http://docs.oracle.com/javase/7/docs/jre/api/security/jaas/spec/com/sun/security/auth/PrincipalComparator.html
> > [5] http://cr.openjdk.java.net/~ngmr/comparator/webrev.00/
> >
> 
> Thanks,
> Sean
> 
> [1] 
> http://docs.oracle.com/javase/7/docs/technotes/guides/security/PolicyFiles.html
> 


-- 
Unless stated above:
IBM email: neil_richards at uk.ibm.com
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



Re: 8008793: SecurityManager.checkXXX behavior not specified for methods that check AWTPermission and AWT not present

2013-02-26 Thread Alan Bateman

On 25/02/2013 22:36, Mandy Chung wrote:


:

Right. Bidi is the main issue.  IMO we should deprecate these 3 
methods in JDK 8 to at least clean up the SecurityManager dependency 
as part of JEP 162 [1] and deal with other reflective dependencies 
separately.  Anyway that is for modules and we can file a separate bug 
for it.
You are right, there is a very good case to deprecate these now as it 
would make things easier post JDK 8. I'll create a bug for this now.


-Alan.


hg: jdk8/tl/jdk: 8008977: profiles build broken by Nashorn build changes

2013-02-26 Thread alan . bateman
Changeset: 022cd5adc0fa
Author:alanb
Date:  2013-02-26 14:16 +
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/022cd5adc0fa

8008977: profiles build broken by Nashorn build changes
Reviewed-by: chegar

! makefiles/profile-rtjar-includes.txt



hg: jdk8/tl: 8008978: nashorn-rules.gmk missing

2013-02-26 Thread alan . bateman
Changeset: e065107437b9
Author:alanb
Date:  2013-02-26 14:08 +
URL:   http://hg.openjdk.java.net/jdk8/tl/rev/e065107437b9

8008978: nashorn-rules.gmk missing
Reviewed-by: alanb
Contributed-by: erik.joels...@oracle.com, james.las...@oracle.com

+ make/nashorn-rules.gmk



hg: jdk8/tl/jdk: 3 new changesets

2013-02-26 Thread chris . hegarty
Changeset: bc92e4b044e2
Author:kmo
Date:  2013-02-26 11:05 +
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/bc92e4b044e2

7087570: java.lang.invoke.MemberName information wrong for method handles 
created with findConstructor
Summary: REF_invokeSpecial DMHs (which are unusual) get marked explicitly; 
tweak the MHI to use this bit
Reviewed-by: jrose, twisti

! src/share/classes/java/lang/invoke/DirectMethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleImpl.java
! src/share/classes/java/lang/invoke/MethodHandleInfo.java
! src/share/classes/java/lang/invoke/MethodHandles.java
+ test/java/lang/invoke/7087570/Test7087570.java

Changeset: 5fcecbcefb71
Author:chegar
Date:  2013-02-26 11:06 +
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5fcecbcefb71

Merge


Changeset: 77447981db73
Author:chegar
Date:  2013-02-26 11:18 +
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/77447981db73

Merge