Re: RFR(S+M) / 8022701 Accessibility checking: InvocationTargetException is thrown instead of IllegalAccessError

2013-09-26 Thread John Rose
On Sep 19, 2013, at 9:57 AM, David Chase wrote: > Recommended changes made: > > http://cr.openjdk.java.net/~drchase/8022701/webrev.04/ Good; reviewed. Consider adding this tweak, which would close the loop on alternation between the fooError and fooException versions: +static private voi

Re: RFR (S) 8001108: an attempt to use "" as a method name should elicit NoSuchMethodException

2013-09-26 Thread Christian Thalinger
On Sep 19, 2013, at 2:31 PM, John Rose wrote: > > On Sep 18, 2013, at 5:05 PM, Christian Thalinger > wrote: > >> src/share/classes/java/lang/invoke/MethodHandles.java: >> >> + * methods as if they were normal methods, but the JVM verifier rejects >> them. >> >> I think you should say

Re: RFR(S+M) / 8022701 Accessibility checking: InvocationTargetException is thrown instead of IllegalAccessError

2013-09-26 Thread Christian Thalinger
On Sep 19, 2013, at 9:57 AM, David Chase wrote: > Recommended changes made: > > http://cr.openjdk.java.net/~drchase/8022701/webrev.04/ Looks good. Thanks for using ASM. > > Test with jtreg (for pass and for induced failure) on MacOS, > not sure what additional other testing is desired since

hg: jdk8/tl/jdk: 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread christian . thalinger
Changeset: 78b4dc33e6e6 Author:twisti Date: 2013-09-26 18:20 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/78b4dc33e6e6 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName() Reviewed-by: jrose ! src/share/classes/java/lang/invoke/MemberName.java

Re: RFR 8025173 : HashMap.put() replacing an existing key can trigger a resize()

2013-09-26 Thread Jonathan Gibbons
On 09/26/2013 06:00 PM, Martin Buchholz wrote: On Thu, Sep 26, 2013 at 5:45 PM, Jonathan Gibbons mailto:jonathan.gibb...@oracle.com>> wrote: The new diagnostics are generated by the new doclint feature which is available from the javac and javadoc command lines. When invoked fr

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread Christian Thalinger
On Sep 26, 2013, at 5:24 PM, Vitaly Davidovich wrote: > Why not add the required code when/if it's actually needed? It's not like the > pattern is tricky :) > Of course the pattern is not tricky. The fact that expandFromVM calls down into the VM which is filling in fields and name can actual

Re: RFR 8025173 : HashMap.put() replacing an existing key can trigger a resize()

2013-09-26 Thread Jonathan Gibbons
The new diagnostics are generated by the new doclint feature which is available from the javac and javadoc command lines. When invoked from javadoc, it only checks the comments being used for the docs that you are generating. So, if you are generating docs for just your public and protected me

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread John Rose
On Sep 26, 2013, at 2:46 PM, Christian Thalinger wrote: > The problem I have with this is that some people might think the local > variable is the instance field. IDEs help here because they usually > highlight local variables and instance fields in different colors. How about > this: > >

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread Vitaly Davidovich
Why not add the required code when/if it's actually needed? It's not like the pattern is tricky :) your call of course, just looks odd as-is. Sent from my phone On Sep 26, 2013 8:15 PM, "Christian Thalinger" < christian.thalin...@oracle.com> wrote: > > On Sep 26, 2013, at 5:11 PM, Vitaly Davidovi

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread Christian Thalinger
On Sep 26, 2013, at 5:11 PM, Vitaly Davidovich wrote: > Chris, > > Since you touched getName(), maybe get rid of that superfluous null check > after expandFromVM? The code can just fall through. > > Was thinking about removing it and already had it but backed of because I wanted to keep th

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread Vitaly Davidovich
Chris, Since you touched getName(), maybe get rid of that superfluous null check after expandFromVM? The code can just fall through. Vitaly Sent from my phone On Sep 26, 2013 5:47 PM, "Christian Thalinger" < christian.thalin...@oracle.com> wrote: > > On Sep 26, 2013, at 2:28 PM, John Rose wrot

Re: RFR (3rd): 8023524: Mechanism to dump generated lambda classes / log lambda code generation

2013-09-26 Thread Mandy Chung
Hi Henry, On 9/25/2013 12:37 AM, Henry Jen wrote: Hi, Please review the update webrev at http://cr.openjdk.java.net/~henryjen/ccc/8023524/2/webrev/ The doPrivileged block looks okay. It'd be good to limit privileges by calling the doPrivileged method with a specific set of Permissions. In th

Re: RFR (2nd): 8023524: Mechanism to dump generated lambda classes / log lambda code generation

2013-09-26 Thread Mandy Chung
On 9/24/2013 10:56 PM, Peter Levart wrote: Just a thought. How does URLClassLoader do the class name -> path to resource translation? Perhaps there's already some code that does this correctly and in a platform-specific way (haven't looked)... sun.misc.ParseUtil.encodePath Mandy

hg: jdk8/tl/langtools: 8011738: Write test to check for bootstrap attributes for lambda expressions in class file

2013-09-26 Thread sonali . goel
Changeset: 17653c4c22ec Author:sogoel Date: 2013-09-26 15:04 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/17653c4c22ec 8011738: Write test to check for bootstrap attributes for lambda expressions in class file Reviewed-by: mcimadamore + test/tools/javac/lambda/ByteC

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread Christian Thalinger
On Sep 26, 2013, at 2:28 PM, John Rose wrote: > On Sep 26, 2013, at 1:13 PM, Christian Thalinger > wrote: > >> On Sep 26, 2013, at 11:50 AM, Christian Thalinger >> wrote: >> >>> >>> On Sep 26, 2013, at 1:22 AM, Peter Levart wrote: >>> On 09/26/2013 01:27 AM, Christian Thalinger wro

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread John Rose
On Sep 26, 2013, at 1:13 PM, Christian Thalinger wrote: > On Sep 26, 2013, at 11:50 AM, Christian Thalinger > wrote: > >> >> On Sep 26, 2013, at 1:22 AM, Peter Levart wrote: >> >>> On 09/26/2013 01:27 AM, Christian Thalinger wrote: http://cr.openjdk.java.net/~twisti/8019192/webrev/ >>

hg: jdk8/tl/jdk: 8025173: HashMap.put() replacing an existing key can trigger a resize()

2013-09-26 Thread mike . duigou
Changeset: 8f27030686a6 Author:bchristi Date: 2013-09-26 11:13 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8f27030686a6 8025173: HashMap.put() replacing an existing key can trigger a resize() Summary: Ensure that HashMap is not resized if we're just replacing a value Revie

Re: RFR: 8013839: Enhance Logger API for handling of resource bundles

2013-09-26 Thread Mandy Chung
Hi Daniel, This is a good solution for Logger subclasses or existing apps that rely on the previous stack walk search to lookup a resource bundle.I have some comments on the specification: Logger.setResourceBundle(ResourceBundle rb) Should this method simply throw NPE if rb == null since w

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread Christian Thalinger
On Sep 26, 2013, at 11:50 AM, Christian Thalinger wrote: > > On Sep 26, 2013, at 1:22 AM, Peter Levart wrote: > >> On 09/26/2013 01:27 AM, Christian Thalinger wrote: >>> http://cr.openjdk.java.net/~twisti/8019192/webrev/ >>> >>> 8019192: StringIndexOutOfBoundsException: in Class.getSimpleNa

Re: RFR: Caching MethodType's descriptor string improves lambda linkage performance

2013-09-26 Thread Christian Thalinger
On Sep 26, 2013, at 9:22 AM, Sergey Kuksenko wrote: > Hi All, > > I updated fix. > You may find it here > http://cr.openjdk.java.net/~skuksenko/jsr335/8024635/webrev.01/ The change looks good. Since we use Objects.requireNonNull now we can remove the null check comment: +Objects.req

Re: RFR (M): 8024635: Caching MethodType's descriptor string improves lambda linkage performance

2013-09-26 Thread John Rose
(Quick note on format: I have changed the subject line to include the conventional bug number and size estimate. The bug number makes it easier to track in mailers.) On Sep 26, 2013, at 9:22 AM, Sergey Kuksenko wrote: > Hi All, > > I updated fix. > You may find it here > http://cr.openjdk.j

Re: RFR 8024707: TRANSFORMEREXCEPTION : ITEM() RETURNS NULL WITH NODE LIST OF LENGTH =1 IN JAXP

2013-09-26 Thread huizhe wang
Hi Aleksej, From your tests, it appears that the getLength() method was implemented correctly, and that the bug is not in the call to m_iter.next(), but it should not be called again once the count is > index. So that fix would be to move the conditions around such that: public Node item

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread Christian Thalinger
On Sep 26, 2013, at 1:22 AM, Peter Levart wrote: > On 09/26/2013 01:27 AM, Christian Thalinger wrote: >> http://cr.openjdk.java.net/~twisti/8019192/webrev/ >> >> 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName() >> Reviewed-by: >> >> This is a race in MemberName's name and typ

hg: jdk8/tl/langtools: 8025139: javac patch for using bootstrap compiler for debugging is not working properly

2013-09-26 Thread vicente . romero
Changeset: 13eba2e322e6 Author:vromero Date: 2013-09-26 19:06 +0100 URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/13eba2e322e6 8025139: javac patch for using bootstrap compiler for debugging is not working properly Reviewed-by: jjg ! make/netbeans/langtools/build.xml ! mak

hg: jdk8/tl/langtools: 8025491: Javac regression test tools/javac/T8003967/DetectMutableStaticFields.java failing

2013-09-26 Thread jan . lahoda
Changeset: 9235ae08a449 Author:jlahoda Date: 2013-09-26 20:07 +0200 URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/9235ae08a449 8025491: Javac regression test tools/javac/T8003967/DetectMutableStaticFields.java failing Summary: Making HtmlTree.NONENCODING_CHARS final Reviewe

Re: RFR 8025173 : HashMap.put() replacing an existing key can trigger a resize()

2013-09-26 Thread Brent Christian
On 9/25/13 4:03 PM, Martin Buchholz wrote: Looks good. I would only suggest the stylistic improvement of using proper /** javadoc comments even for private test methods instead of /* The comments were meant as internal documentation and not "real" javadoc. After dabbling with some doclint cle

Re: RFR 8025173 : HashMap.put() replacing an existing key can trigger a resize()

2013-09-26 Thread Brent Christian
On 9/26/13 6:11 AM, Alan Bateman wrote: On 25/09/2013 15:19, Brent Christian wrote: > The fix looks right to me. Thanks. One comment on the test is that testItr is using raw types, is there any reason for thaht? Pure laziness! Here, this one's nicer: http://cr.openjdk.java.net/~bchristi/

Re: RFR: 8025502: Exclude tests due to JDK-8025427

2013-09-26 Thread Kumar Srinivasan
Hi Erik, Looks good!, the bug must be tagged with keyword "noreg-build". Kumar Hi all, I need to exclude some tests due a recent change to jstat that caused to jstat to output the \ufffd for Double.NaN, which confused the tests. I am working on a solution to this, but in the meantime I would

Re: RFR: Caching MethodType's descriptor string improves lambda linkage performance

2013-09-26 Thread Sergey Kuksenko
Hi All, I updated fix. You may find it here http://cr.openjdk.java.net/~skuksenko/jsr335/8024635/webrev.01/ See my comments and new webrev descition below On 09/18/2013 12:59 AM, John Rose wrote: >>> We can tweak that later if necessary. There are probably only a small >>> number of such strin

Re: Update JAX-WS RI integration to 2.2.9-b130918.1732

2013-09-26 Thread Miroslav Kos
Hi Sean, anything new about this? I fixed the copyright/indentation problems (the only change), so the updated jaxws-webrev is located here: http://cr.openjdk.java.net/~mkos/8025054/webrev-jaxws.01/ Since the timestamp (version number) changed too, I updated also the JIRA issue: https://bugs

Re: RFR(L): 8024854: Basic changes and files to build the class library on AIX

2013-09-26 Thread Sean Mullan
On 09/16/2013 12:30 PM, Volker Simonis wrote: src/share/lib/security/java.security-aix - Provide default java.security-aix for AIX. The login.configuration.provider property should be set to: sun.security.provider.ConfigFile See 8016848 for more info. After you make this change, java.se

Re: RFR: 8009411 : getMethods should not inherit static methods from interfaces

2013-09-26 Thread Joel Borggrén-Franck
Hi again, New webrev with more tests contributed by Amy Lu. http://cr.openjdk.java.net/~jfranck/8009411/webrev.02/ No change to non-test code since webrev.01 cheers /Joel On 2013-09-12, Joel Borggrén-Franck wrote: > Hi again, > > New webrev: http://cr.openjdk.java.net/~jfranck/8009411/webrev.

RFR: 8025502: Exclude tests due to JDK-8025427

2013-09-26 Thread Erik Helin
Hi all, I need to exclude some tests due a recent change to jstat that caused to jstat to output the \ufffd for Double.NaN, which confused the tests. I am working on a solution to this, but in the meantime I would like to exclude the tests in order not cause unexpected failures. Webrev: http://cr

hg: jdk8/tl/nashorn: 6 new changesets

2013-09-26 Thread sundararajan . athijegannathan
Changeset: c5475f5d4647 Author:sundar Date: 2013-09-24 20:43 +0530 URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/c5475f5d4647 8025312: parseInt should convert 'radix' argument to ToInt32 even if empty string is parsed Reviewed-by: jlaskey, hannesw ! src/jdk/nashorn/internal/

Re: RFR 8025173 : HashMap.put() replacing an existing key can trigger a resize()

2013-09-26 Thread Alan Bateman
On 25/09/2013 15:19, Brent Christian wrote: Please review this change for 8025173, "HashMap.put() replacing an existing key can trigger a resize()." A description of the problem can be found in the bug report: http://bugs.sun.com/view_bug.do?bug_id=8025173 Thanks to Doug Lea for sending in the

Re: RFR (S): 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName()

2013-09-26 Thread Peter Levart
On 09/26/2013 01:27 AM, Christian Thalinger wrote: http://cr.openjdk.java.net/~twisti/8019192/webrev/ 8019192: StringIndexOutOfBoundsException: in Class.getSimpleName() Reviewed-by: This is a race in MemberName's name and type getters. MemberName's type field is of type Object so it can hold d