Code review request: 8021788: JarInputStream doesn't provide certificates for some file under META-INF

2013-08-04 Thread Weijun Wang
Please take a look at http://cr.openjdk.java.net/~weijun/8021788/webrev.00/ The problem is that the method treats no META-INF entry as normal. If we can be sure that MANIFEST.MF and signature-related files are always at the beginning, we can safely treat an entry normal when we have done w

hg: jdk8/tl/jdk: 8021789: jarsigner parses alias as command line option (depending on locale)

2013-08-01 Thread weijun . wang
Changeset: 29f153e11683 Author:weijun Date: 2013-08-02 08:59 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/29f153e11683 8021789: jarsigner parses alias as command line option (depending on locale) Reviewed-by: vinnie ! src/share/classes/sun/security/tools/jarsigner/Main.jav

hg: jdk8/tl/jdk: 8019410: sun/security/krb5/auto/ReplayCacheTestProc.java

2013-07-12 Thread weijun . wang
Changeset: 5f2a8db78aca Author:weijun Date: 2013-07-13 08:47 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5f2a8db78aca 8019410: sun/security/krb5/auto/ReplayCacheTestProc.java Reviewed-by: mullan ! test/sun/security/krb5/auto/ReplayCacheTestProc.java

hg: jdk8/tl/jdk: 8019267: NPE in AbstractSaslImpl when trace level >= FINER in KRB5

2013-07-10 Thread weijun . wang
Changeset: 780a64979c8d Author:weijun Date: 2013-07-10 15:11 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/780a64979c8d 8019267: NPE in AbstractSaslImpl when trace level >= FINER in KRB5 Reviewed-by: mullan ! src/share/classes/com/sun/security/sasl/util/AbstractSaslImpl.jav

Re: test with a 3rd party jar file?

2013-06-25 Thread Weijun Wang
-process interaction. Maybe you don't need it. --Max On 6/26/13 9:33 AM, Weijun Wang wrote: > > > On 6/26/13 9:32 AM, huizhe wang wrote: >> Thanks! I'll give it a try. Do you plan to backport this to jdk7? > > No, but you can smuggle it there inside your test. >

Re: test with a 3rd party jar file?

2013-06-25 Thread Weijun Wang
spath? >>> >>> e.g. >>> Proc pc = Proc.create("Test") >>> .args("-Xbootclasspath/p:"+pathtoXercesImpljar) >>> .start(); >>> is that how 3rd party jar file can be put on the bootclasspath? what else >>> n

hg: jdk8/tl/jdk: 8016051: Possible ClassCastException in KdcComm

2013-06-25 Thread weijun . wang
Changeset: 89631a384ee6 Author:weijun Date: 2013-06-25 21:51 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/89631a384ee6 8016051: Possible ClassCastException in KdcComm Reviewed-by: weijun Contributed-by: Artem Smotrakov ! src/share/classes/sun/security/krb5/KdcComm.java

Re: test with a 3rd party jar file?

2013-06-24 Thread Weijun Wang
On 6/25/13 6:42 AM, Rob McKenna wrote: Some interesting conversations were had lately about shell scripts during Joe Darcy's recent infrastructure tech talk. In particular around the idea of a "jdk.testing" package to provide libraries that would help with the types of operations seen in shell sc

hg: jdk8/tl/jdk: 8017453: ReplayCache tests fail on multiple platforms

2013-06-24 Thread weijun . wang
Changeset: 1bf060029a5d Author:weijun Date: 2013-06-24 16:25 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1bf060029a5d 8017453: ReplayCache tests fail on multiple platforms Reviewed-by: xuelei ! test/sun/security/krb5/auto/ReplayCacheExpunge.java ! test/sun/security/krb5/a

Re: sun/awt/OSInfo.java

2013-06-24 Thread Weijun Wang
some toUppreCase, some might not be complete (no OS X?). It will be nice if we have a safe and consistent way. It could even cover the PropertyPermission needed. --Max On 6/24/13 4:13 PM, Alan Bateman wrote: On 24/06/2013 05:57, Weijun Wang wrote: I thought os.name for Solaris is 'Solaris

sun/awt/OSInfo.java

2013-06-23 Thread Weijun Wang
I thought os.name for Solaris is 'Solaris' but it's actually 'SunOS'. There is a helper class at http://hg.openjdk.java.net/jdk8/tl/jdk/file/fd050ba1cf72/src/share/classes/sun/awt/OSInfo.java This file uses if (osName.contains("Solaris") || osName.contains("SunOS")) Is it real that the val

hg: jdk8/tl/jdk: 8001326: Improve Kerberos caching

2013-06-21 Thread weijun . wang
Changeset: 4503e04141f7 Author:weijun Date: 2013-06-21 18:26 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4503e04141f7 8001326: Improve Kerberos caching Reviewed-by: valeriep ! src/share/classes/sun/security/jgss/krb5/AcceptSecContextToken.java ! src/share/classes/sun/secu

Attributions (was Re: Final RFR 4837946: Faster multiplication and exponentiation of large integers)

2013-06-19 Thread Weijun Wang
On 6/19/2013 8:58 PM, Alan Bateman wrote: One question on the attribution (so that we have it right). In the Contributed-by line then you have Alan Eliasen listed but the @author tags have been extended to list Tim Buktu in addition to Alan. Is the patch from both Alan and Tim? I ask because I

hg: jdk8/tl/jdk: 2 new changesets

2013-06-12 Thread weijun . wang
Changeset: 021fdd093cd9 Author:weijun Date: 2013-06-13 09:59 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/021fdd093cd9 8014310: JAAS/Krb5LoginModule using des encytypes failure with NPE after JDK-8012679 Reviewed-by: valeriep ! src/share/classes/sun/security/krb5/Config.j

Is there a better way to throw this exception?

2013-06-06 Thread Weijun Wang
Hi All I have a method that could throw two kinds of checked exceptions and possibly other unchecked ones: void once() throws One, Two Now I have a wrapper method that calls once() for multiple times, and want to throw the first exception if *all* fails. Now it looks like void multip

Re: Code review request, JDK-8010814, More buffers are stored or returned without cloning

2013-05-20 Thread Weijun Wang
On 5/16/13 5:52 PM, Xuelei Fan wrote: On 5/16/2013 5:22 PM, Weijun Wang wrote: Hi Xuelei I'm busy on something else, so probably have no time (or cannot concentrate) to read in details. Not urgent fix, so please review these request only when you available. In my opinion, ther

hg: jdk8/tl/jdk: 8012261: update policytool to support java.net.HttpURLPermission

2013-05-17 Thread weijun . wang
Changeset: 0f7aaabed25f Author:weijun Date: 2013-05-18 10:15 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0f7aaabed25f 8012261: update policytool to support java.net.HttpURLPermission Reviewed-by: mullan ! src/share/classes/sun/security/tools/policytool/PolicyTool.java ! s

Re: Code review request, JDK-8010814, More buffers are stored or returned without cloning

2013-05-16 Thread Weijun Wang
Hi Xuelei I'm busy on something else, so probably have no time (or cannot concentrate) to read in details. In my opinion, there are several cases as to whether to clone or not: 1. MUST NOT clone, because the value must be shared so that change at one side appears on the other side. 2. MUST

Re: Review Request: BigInteger patch for efficient multiplication and division (#4837946)

2013-05-09 Thread Weijun Wang
Out of curiosity (my major was math back in university), I take a look at BigInteger.java.phase1: First you have: /** * The threshold value for using 3-way Toom-Cook multiplication. * If the number of ints in both mag arrays are greater than this number, * then Toom-Cook mu

Re: Code review request: 8005598 (reopened) Need to clone array of input/output parameters

2013-05-08 Thread Weijun Wang
Good. They look fine. -Max On 5/9/13 10:31 AM, Xuelei Fan wrote: Oops, here is the webrev: http://cr.openjdk.java.net/~xuelei/8005598/webrev.00/ Xuelei On 5/9/2013 10:30 AM, Xuelei Fan wrote: Hi, It's a correction of previous fix of JDK-8003265: http://hg.openjdk.java.net/jdk8/tl/jdk/r

hg: jdk8/tl/jdk: 8010192: Enable native JGSS provider on Mac

2013-05-06 Thread weijun . wang
Changeset: 814dcc08df52 Author:weijun Date: 2013-05-07 12:30 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/814dcc08df52 8010192: Enable native JGSS provider on Mac Reviewed-by: valeriep ! make/sun/security/Makefile ! makefiles/CompileNativeLibraries.gmk ! src/share/classes/

hg: jdk8/tl/jdk: 8013855: DigestMD5Client has not checked RealmChoiceCallback value

2013-05-02 Thread weijun . wang
Changeset: 81be41c7323f Author:weijun Date: 2013-05-03 10:43 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/81be41c7323f 8013855: DigestMD5Client has not checked RealmChoiceCallback value Reviewed-by: xuelei, mullan ! src/share/classes/com/sun/security/sasl/digest/DigestMD5C

hg: jdk8/tl/jdk: 8012082: SASL: auth-conf negotiated, but unencrypted data is accepted, reset to unencrypt

2013-05-01 Thread weijun . wang
Changeset: ae4a82e69da2 Author:weijun Date: 2013-05-01 21:05 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ae4a82e69da2 8012082: SASL: auth-conf negotiated, but unencrypted data is accepted, reset to unencrypt Reviewed-by: vinnie ! src/share/classes/com/sun/security/sasl/g

Re: new File(parent, child) when child is absolute

2013-04-27 Thread Weijun Wang
On 4/27/13 3:34 PM, Alan Bateman wrote: On 27/04/2013 04:14, Weijun Wang wrote: I thought that in this case parent is just ignored and it's still the child itself. Turns out this is not true, and new File("/tmp", "/etc/passwd") is /tmp/etc/passwd Is this rea

new File(parent, child) when child is absolute

2013-04-26 Thread Weijun Wang
I thought that in this case parent is just ignored and it's still the child itself. Turns out this is not true, and new File("/tmp", "/etc/passwd") is /tmp/etc/passwd Is this really useful in any way? Thanks Max

hg: jdk8/tl/jdk: 8005527: [TEST_BUG] console.sh failed Automatically with exit code 1.

2013-04-21 Thread weijun . wang
Changeset: 22a27dfd0510 Author:weijun Date: 2013-04-22 11:39 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/22a27dfd0510 8005527: [TEST_BUG] console.sh failed Automatically with exit code 1. Reviewed-by: xuelei ! test/sun/security/tools/keytool/console.sh

hg: jdk8/tl/jdk: 8009636: JARSigner including TimeStamp PolicyID (TSAPolicyID) as defined in RFC3161

2013-04-19 Thread weijun . wang
Changeset: 778b16225d85 Author:weijun Date: 2013-04-19 15:41 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/778b16225d85 8009636: JARSigner including TimeStamp PolicyID (TSAPolicyID) as defined in RFC3161 Reviewed-by: mullan ! src/share/classes/com/sun/jarsigner/ContentSign

hg: jdk8/tl/jdk: 8011124: Make KerberosTime immutable

2013-04-16 Thread weijun . wang
Changeset: a3cc4b8e217a Author:weijun Date: 2013-04-17 10:15 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a3cc4b8e217a 8011124: Make KerberosTime immutable Reviewed-by: xuelei ! src/share/classes/sun/security/krb5/KrbApReq.java ! src/share/classes/sun/security/krb5/KrbAppM

hg: jdk8/tl/jdk: 2 new changesets

2013-04-10 Thread weijun . wang
Changeset: 0ab22e58d151 Author:weijun Date: 2013-04-11 11:09 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0ab22e58d151 8011867: Accept unknown PKCS #9 attributes Reviewed-by: vinnie ! src/share/classes/sun/security/pkcs/PKCS9Attribute.java + test/sun/security/pkcs/pkcs9/Un

hg: jdk8/tl/jdk: 8005460: [findbugs] Probably returned array should be cloned

2013-04-10 Thread weijun . wang
Changeset: 6f8e1428f7c3 Author:weijun Date: 2013-04-11 10:58 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6f8e1428f7c3 8005460: [findbugs] Probably returned array should be cloned Reviewed-by: xuelei ! src/share/classes/sun/security/krb5/PrincipalName.java + test/sun/secur

hg: jdk8/tl/jdk: 8010125: keytool -importkeystore could create a pkcs12 keystore with different storepass and keypass

2013-03-28 Thread weijun . wang
Changeset: a87fac00915e Author:weijun Date: 2013-03-28 20:27 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a87fac00915e 8010125: keytool -importkeystore could create a pkcs12 keystore with different storepass and keypass Reviewed-by: vinnie ! src/share/classes/sun/security

hg: jdk8/tl/jdk: 2 new changesets

2013-03-22 Thread weijun . wang
Changeset: 3470101fae58 Author:weijun Date: 2013-03-23 11:49 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3470101fae58 8009970: Several LoginModule classes need extra permission to load AuthResources Reviewed-by: mullan ! src/share/classes/com/sun/security/auth/module/Jndi

hg: jdk8/tl/jdk: 8010531: Add BadKdc* tests to problem list for solaris-sparcv9

2013-03-22 Thread weijun . wang
Changeset: 93cd7052d306 Author:weijun Date: 2013-03-22 19:59 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/93cd7052d306 8010531: Add BadKdc* tests to problem list for solaris-sparcv9 Reviewed-by: alanb ! test/ProblemList.txt

Code review request: 8009977: A test library to launch multiple Java processes (using krb5 as an example)

2013-03-13 Thread Weijun Wang
http://cr.openjdk.java.net/~weijun/8009977/webrev.00 /** * This is a test library that makes writing a Java test that spawns multiple * Java processes easily. * * Usage: * *Proc.create("Clazz") // The class to launch *.args("x")// with args *.env("en

hg: jdk8/tl/jdk: 8009604: old make images failed: JarBASE64Encoder class not found

2013-03-06 Thread weijun . wang
Changeset: cf54f6be3e9e Author:weijun Date: 2013-03-07 11:32 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cf54f6be3e9e 8009604: old make images failed: JarBASE64Encoder class not found Reviewed-by: xuelei, wetmore ! make/common/Release.gmk

Re: Truncate a LinkedList

2013-02-19 Thread Weijun Wang
. Thanks Max On 2/19/13 8:36 PM, Peter Levart wrote: On 02/19/2013 01:24 PM, Peter Levart wrote: On 02/19/2013 11:38 AM, Daniel Fuchs wrote: On 2/19/13 11:27 AM, Weijun Wang wrote: Hi All I'm using LinkedList to maintain a history and the elements are ordered by their timestamps. Every

Truncate a LinkedList

2013-02-19 Thread Weijun Wang
Hi All I'm using LinkedList to maintain a history and the elements are ordered by their timestamps. Every now and then I would "expunge" the list, that is to say, iterating through the list and when an element is old enough all elements after (and including) it will be removed. Currently I'm

How to find out if a file belong to me?

2013-02-05 Thread Weijun Wang
Maybe comparing Files.getAttribute(p, "unix:uid") and UnixSystem().getUid()? Is there a cross-platform way? I noticed Files.getOwner(), but seems UserPrincipal has no method of its own and all its implementation classes are non public. Thanks Max

geteuid(2) in java?

2013-02-03 Thread Weijun Wang
Need an equivalence of the geteuid() function that returns the effective user ID of the calling process. Thanks Max

hg: jdk8/tl/jdk: 8006564: Test sun/security/util/Oid/S11N.sh fails with timeout on Linux 32-bit

2013-01-31 Thread weijun . wang
Changeset: d2495b9984fa Author:weijun Date: 2013-02-01 07:39 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d2495b9984fa 8006564: Test sun/security/util/Oid/S11N.sh fails with timeout on Linux 32-bit Reviewed-by: alanb + test/sun/security/util/Oid/S11N.java - test/sun/securi

Re: 8007142: Add utility classes for writing better multiprocess tests in jtreg

2013-01-30 Thread Weijun Wang
Just take a brief look at the codes. It seems the library can launch a Java process, wait for it to finish, and collect all the output (stdout and stderr). Is that all? I would be glad if it supports manipulating the stdin, i.e. simulating input to a process. For example, I sometimes need to s

Re: OPENJDK env var not playing well with new build

2013-01-23 Thread Weijun Wang
On 01/23/2013 07:54 PM, David Holmes wrote: On 23/01/2013 8:58 PM, Erik Joelsson wrote: On 2013-01-23 11:30, Weijun Wang wrote: I thought building an OpenJDK or Oracle JDK can be fully controlled by using the --enable-openjdk-only configure option, but it seems the OPENJDK env variable still

OPENJDK env var not playing well with new build

2013-01-23 Thread Weijun Wang
I thought building an OpenJDK or Oracle JDK can be fully controlled by using the --enable-openjdk-only configure option, but it seems the OPENJDK env variable still plays a part. If the variable is set to true and --enable-openjdk-only is not provided, the new build process gets confused and fa

hg: jdk8/tl/jdk: 8006092: SecurityPermission: printIdentity doesn't exist

2013-01-20 Thread weijun . wang
Changeset: bb940b2107bd Author:juh Date: 2013-01-21 15:05 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/bb940b2107bd 8006092: SecurityPermission: printIdentity doesn't exist Reviewed-by: weijun ! test/sun/security/tools/policytool/UpdatePermissions.html

Re: --enable-sjavac not enabled in tl repo yet?

2013-01-18 Thread Weijun Wang
On 01/18/2013 02:58 PM, Fredrik Öhrström wrote: 18 jan 2013 kl. 03:07 skrev Weijun Wang: Just tried on a latest jdk8/tl clone and The makefile listed source /space/repos/jdk8/tl/build/linux-x86_64-sjavac/langtools/gensrc/com/sun/tools/doclint/resources/doclint.java was not calculated by

--enable-sjavac not enabled in tl repo yet?

2013-01-17 Thread Weijun Wang
Just tried on a latest jdk8/tl clone and Building Java(TM) for target 'all' in configuration '/space/repos/jdk8/tl/build/linux-x86_64-sjavac' ## Starting langtools Compiling 2 files for BUILD_TOOLS Compiling 26 properties into resource bundles Compiling 720 files for BUILD_BOOTSTRAP_LANGTOOLS

Re: And Decoder (was Re: No newline at the end of Base64.getMimeEncoder())

2013-01-17 Thread Weijun Wang
efer it be acceptable. Thanks Max On 01/17/2013 05:12 PM, Weijun Wang wrote: I noticed that the encoding output of Base64.getMimeEncoder() never ends with a newline char. There is no right or wrong on this but it will be nice to write the current behavior into the spec. Thanks Max

And Decoder (was Re: No newline at the end of Base64.getMimeEncoder())

2013-01-17 Thread Weijun Wang
This time on the decoder side: Base64.getMimeDecoder().decode("AA==\n") throws an exception because the string ends with a newline. I would prefer it be acceptable. Thanks Max On 01/17/2013 05:12 PM, Weijun Wang wrote: I noticed that the encoding output of Base64.getMimeEncod

Re: hg: jdk8/tl/jdk: 8006153: HTTP protocol handler authenication should use Base64 API

2013-01-17 Thread Weijun Wang
NTLM auth still uses it. Codes in src/windows and src/solaris. -Max On 01/14/2013 06:14 AM, chris.hega...@oracle.com wrote: Changeset: 7db04ae3378f Author:chegar Date: 2013-01-13 22:09 + URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7db04ae3378f 8006153: HTTP protocol hand

No newline at the end of Base64.getMimeEncoder()

2013-01-17 Thread Weijun Wang
I noticed that the encoding output of Base64.getMimeEncoder() never ends with a newline char. There is no right or wrong on this but it will be nice to write the current behavior into the spec. Thanks Max

Re: Build Failure in JPRT Job

2013-01-08 Thread Weijun Wang
Ah, it seems com/sun/tools/jdeps needs to be included in IMPORT_TOOLS_PACKAGES in jdk/make/common/internal/Defs-langtools.gmk. -Max On 01/09/2013 11:16 AM, Weijun Wang wrote: I'm not talking about JPRT build. I fetched all tl8 repos and do a full build, the jdeps command runs. Then

Re: Build Failure in JPRT Job

2013-01-08 Thread Weijun Wang
I'm not talking about JPRT build. I fetched all tl8 repos and do a full build, the jdeps command runs. Then I use this build as ALT_JDK_IMPORT_PATH to do a partial images build in jdk/make still shows com/sun/tools/jdeps : no such file or directory What am I missing here? Thanks Max On

Re: RFR: (jaxp) 8005473 : Warnings compiling jaxp

2012-12-26 Thread Weijun Wang
The code changes look fine. Thanks Max On 12/27/2012 07:06 AM, Joe Wang wrote: Hi, This is a patch to clean up compiling warnings in jaxp. Bug: http://bugs.sun.com/view_bug.do?bug_id=8005473 Webrev: http://cr.openjdk.java.net/~joehw/jdk8/8005473/webrev/ Thanks, Joe

hg: jdk8/tl/jdk: 7197159: accept different kvno if there no match

2012-12-16 Thread weijun . wang
Changeset: eaaec81aa974 Author:weijun Date: 2012-12-17 12:18 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/eaaec81aa974 7197159: accept different kvno if there no match Reviewed-by: xuelei ! src/share/classes/sun/security/krb5/EncryptionKey.java ! test/sun/security/krb5/aut

hg: jdk8/tl/jdk: 8004235: Disable native JGSS provider on Mac

2012-12-12 Thread weijun . wang
Changeset: 5a2ab2c3f106 Author:weijun Date: 2012-12-13 08:11 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5a2ab2c3f106 8004235: Disable native JGSS provider on Mac Reviewed-by: erikj, valeriep ! make/sun/security/Makefile ! makefiles/CompileNativeLibraries.gmk ! src/share/

Re: build failure on solaris-i586 in make/sun/cldr

2012-12-12 Thread Weijun Wang
ered the priority and add a comment. Thanks Max [1] https://jbs.oracle.com/bugs/browse/JDK-8004981 Can you please file a bug for this? Naoto On 12/11/12 11:33 PM, Weijun Wang wrote: I haven't build on solaris-i586 for some time and see a failure today in make/sun/cldr. The Makefile [1] has the

hg: jdk8/tl/jdk: 8004904: Makefile for ntlm

2012-12-12 Thread weijun . wang
Changeset: 12fba0974a9d Author:weijun Date: 2012-12-12 18:39 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/12fba0974a9d 8004904: Makefile for ntlm Reviewed-by: erikj, chegar ! make/com/sun/security/Makefile + make/com/sun/security/ntlm/Makefile

build failure on solaris-i586 in make/sun/cldr

2012-12-11 Thread Weijun Wang
I haven't build on solaris-i586 for some time and see a failure today in make/sun/cldr. The Makefile [1] has these lines: 75 for dir in $(GENSRCDIR); do \ 76 if [ -d $$dir ] ; then \ 77 ( $(CD) $$dir; \ 78

hg: jdk8/tl/jdk: 8004488: wrong permissions checked in krb5

2012-12-10 Thread weijun . wang
Changeset: d206e52bf8a6 Author:weijun Date: 2012-12-11 13:14 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d206e52bf8a6 8004488: wrong permissions checked in krb5 Reviewed-by: xuelei ! src/share/classes/com/sun/security/auth/module/Krb5LoginModule.java ! src/share/classes/s

hg: jdk8/tl/jdk: 7198507: [TEST_BUG] sun/security/tools/keytool/console.sh should be rewritten

2012-12-03 Thread weijun . wang
Changeset: a42da685dfca Author:weijun Date: 2012-12-03 17:14 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a42da685dfca 7198507: [TEST_BUG] sun/security/tools/keytool/console.sh should be rewritten Reviewed-by: xuelei ! test/sun/security/tools/keytool/console.sh

Reflection.getCallerClass(n) does not skip reflection calls in constructors

2012-11-25 Thread Weijun Wang
Hi I'm trying to use Reflection.getCallerClass(n) to find out who is calling a method. The method's spec says: Frames associated with java.lang.reflect.Method.invoke() and its implementation are completely ignored and do not count toward the nu

Canonical path for /ssss/../../ ?

2012-11-22 Thread Weijun Wang
I've seen something weird on Linux: new File("//../").getCanonicalFile()' = / new File("//../../").getCanonicalFile()' = /.. new File("//../../../").getCanonicalFile()' = / new File("//../../../../").getCanonicalFile()' = /.. and new File("//../..").getCanonicalFil

hg: jdk8/tl/jdk: 8002344: Krb5LoginModule config class does not return proper KDC list from DNS

2012-11-18 Thread weijun . wang
Changeset: f740a9ac6eb6 Author:weijun Date: 2012-11-19 11:13 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f740a9ac6eb6 8002344: Krb5LoginModule config class does not return proper KDC list from DNS Reviewed-by: weijun Contributed-by: Severin Gehwolf , Wang Weijun ! src/s

hg: jdk8/tl/jdk: 8003263: redundant cast build failure after 8003120

2012-11-15 Thread weijun . wang
Changeset: 51c695958712 Author:weijun Date: 2012-11-16 10:34 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/51c695958712 8003263: redundant cast build failure after 8003120 Reviewed-by: alanb ! src/share/classes/com/sun/naming/internal/ResourceManager.java

Re: Code review request: 8003263: redundant cast build failure after 8003120

2012-11-15 Thread Weijun Wang
Ping again. If there is no more suggestion, I'll push my fix in the first webrev. Here I'm more concerned about the build failure than the behavior of the input streams. Thanks Max On 11/12/2012 06:22 PM, Weijun Wang wrote: In fact, it looks like the resources object here

Re: Code review request: 8003263: redundant cast build failure after 8003120

2012-11-12 Thread Weijun Wang
Max On 11/12/2012 05:42 PM, Alan Bateman wrote: On 12/11/2012 08:43, Weijun Wang wrote: A small webrev: http://cr.openjdk.java.net/~weijun/8003263/webrev.00/ The reason is that 8003120 added a new line InputStream istream = (InputStream)resources.next(); but resources is already of type

Code review request: 8003263: redundant cast build failure after 8003120

2012-11-12 Thread Weijun Wang
A small webrev: http://cr.openjdk.java.net/~weijun/8003263/webrev.00/ The reason is that 8003120 added a new line InputStream istream = (InputStream)resources.next(); but resources is already of type NamingEnumeration. Building now shows ../../../src/share/classes/com/sun/naming/interna

Re: Fake DNS query result inside a test

2012-11-07 Thread Weijun Wang
DI service provider then that would be more effort. On 7 Nov 2012, at 01:05, Weijun Wang wrote: Hi Vinnie I want to write a regression test so that Context ctx = NamingManager.getURLContext("dns", new Hashtable<>(0)); Attributes attrs =((DirContext)ctx).getAttributes(

Cannot build jdk7u-dev

2012-11-07 Thread Weijun Wang
I've just synced with jdk7u-dev and now it does not build. symbol: class TimedWindowEvent location: class SunToolkit ../../../src/share/classes/sun/awt/SunToolkit.java:472: error: cannot find symbol TimedWindowEvent twe = (TimedWindowEvent)nested;

hg: jdk8/tl/jdk: 6355584: Introduce constrained Kerberos delegation

2012-11-06 Thread weijun . wang
Changeset: a1bbb8805e22 Author:weijun Date: 2012-11-07 14:13 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a1bbb8805e22 6355584: Introduce constrained Kerberos delegation Reviewed-by: valeriep + src/share/classes/com/sun/security/jgss/ExtendedGSSCredential.java ! src/share/

Fake DNS query result inside a test

2012-11-06 Thread Weijun Wang
Hi Vinnie I want to write a regression test so that Context ctx = NamingManager.getURLContext("dns", new Hashtable<>(0)); Attributes attrs =((DirContext)ctx).getAttributes( "_kerberos._udp.ASDF.COM.", SRV_RR_ATTR); can return some entries without querying a real exter

hg: jdk8/tl/jdk: 8001208: Fix for KRB5CCNAME not complete

2012-10-22 Thread weijun . wang
Changeset: a1e77f7ed52b Author:weijun Date: 2012-10-23 10:02 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a1e77f7ed52b 8001208: Fix for KRB5CCNAME not complete Reviewed-by: xuelei ! src/share/classes/sun/security/krb5/internal/ccache/FileCredentialsCache.java ! test/sun/se

hg: jdk8/tl/jdk: 8000624: Move MaxRetries.java to ProblemList for the moment

2012-10-22 Thread weijun . wang
Changeset: e19dc885da0d Author:weijun Date: 2012-10-22 17:01 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e19dc885da0d 8000624: Move MaxRetries.java to ProblemList for the moment Reviewed-by: alanb ! test/ProblemList.txt

hg: jdk8/tl/jdk: 8001204: typo: Unable to obtain Princpal Name for authentication

2012-10-21 Thread weijun . wang
Changeset: b39ab9c6f4cb Author:weijun Date: 2012-10-22 09:59 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b39ab9c6f4cb 8001204: typo: Unable to obtain Princpal Name for authentication Reviewed-by: xuelei ! src/share/classes/com/sun/security/auth/module/Krb5LoginModule.java

Re: bug fix for native kerberos libraries

2012-10-18 Thread Weijun Wang
Hi Christos You mean the exception thrown in NativeGSSFactory.java lines 52-60? Vector creds = GSSUtil.searchSubject (name, mech, initiate, GSSCredElement.class); // If Subject is present but no native creds available if (creds != null && creds.isEmpty()) {

Re: Review/comment needed for the new public java.util.Base64 class

2012-10-10 Thread Weijun Wang
On 10/11/2012 11:32 AM, Xueming Shen wrote: On 10/10/12 8:16 PM, Weijun Wang wrote: On 10/11/2012 11:09 AM, Xueming Shen wrote: On 10/10/12 6:51 PM, Weijun Wang wrote: Several questions: 1. In encode0(byte[] src, byte[] dst) 281 if (linepos == linemax && (a

Re: Review/comment needed for the new public java.util.Base64 class

2012-10-10 Thread Weijun Wang
On 10/11/2012 11:09 AM, Xueming Shen wrote: On 10/10/12 6:51 PM, Weijun Wang wrote: Several questions: 1. In encode0(byte[] src, byte[] dst) 281 if (linepos == linemax && (atom != 0 || sp < sl)) { Maybe atom != 0 is not necessary? The logic here is that if we

Re: Review/comment needed for the new public java.util.Base64 class

2012-10-10 Thread Weijun Wang
Several questions: 1. In encode0(byte[] src, byte[] dst) 281 if (linepos == linemax && (atom != 0 || sp < sl)) { Maybe atom != 0 is not necessary? 2. Is it necessary to explicitly mention in the spec that there is no CrLf at the end of a MIME encoded string? 3. The test con

hg: jdk8/tl/jdk: 7201053: Krb5LoginModule shows NPE when both useTicketCache and storeKey are set to true

2012-10-07 Thread weijun . wang
Changeset: 92f3a96f3c78 Author:weijun Date: 2012-10-08 10:42 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/92f3a96f3c78 7201053: Krb5LoginModule shows NPE when both useTicketCache and storeKey are set to true Reviewed-by: mullan ! src/share/classes/com/sun/security/auth/mo

hg: jdk8/tl/jdk: 7200682: TEST_BUG: keytool/autotest.sh still has problems with libsoftokn.so

2012-09-28 Thread weijun . wang
Changeset: 7e3ef09bb348 Author:weijun Date: 2012-09-28 17:15 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7e3ef09bb348 7200682: TEST_BUG: keytool/autotest.sh still has problems with libsoftokn.so Reviewed-by: alanb, smarks ! test/sun/security/tools/keytool/autotest.sh

Code review request: 7200682: TEST_BUG: keytool/autotest.sh still has problems with libsoftokn.so

2012-09-24 Thread Weijun Wang
Hi Stuart Please take a look at http://cr.openjdk.java.net/~weijun/7200682/webrev.00/ So I am now using "java -XshowSettings:properties | grep os.arch" to find out the arch. Not sure if there is a more formal way to do that. I've added core-libs-dev to CC hoping more people have their opi

Re: Code Review Request: 7197662: (prefs) java/util/prefs/AddNodeChangeListener.java fails by timeout or by "couldn't get file lock"

2012-09-22 Thread Weijun Wang
your tests might have to run in othervm mode. Thanks Max On 09/22/2012 05:18 PM, Alan Bateman wrote: On 22/09/2012 00:12, Weijun Wang wrote: I think jtreg would automatically reset any changed system property so othervm is not necessary. Have you tried running it with other tests in agentvm mo

Re: Code Review Request: 7197662: (prefs) java/util/prefs/AddNodeChangeListener.java fails by timeout or by "couldn't get file lock"

2012-09-21 Thread Weijun Wang
I think jtreg would automatically reset any changed system property so othervm is not necessary. Have you tried running it with other tests in agentvm mode? Thanks Max 在 Sep 22, 2012,2:49 AM,Kurchi Hazra 写道: > > > On 21.09.2012 02:03, Chris Hegarty wrote: >> On 21/09/12 01:12, Dan Xu wrote:

hg: jdk8/tl/jdk: 7198871: cleanup security tests in problem lists with no CR attached

2012-09-18 Thread weijun . wang
Changeset: 53ca38f76eaa Author:weijun Date: 2012-09-18 17:38 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/53ca38f76eaa 7198871: cleanup security tests in problem lists with no CR attached Reviewed-by: alanb ! test/ProblemList.txt

hg: jdk8/tl/jdk: 7196855: autotest.sh fails on ubuntu because libsoftokn.so not found

2012-09-17 Thread weijun . wang
Changeset: f56f85040c58 Author:weijun Date: 2012-09-17 18:19 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f56f85040c58 7196855: autotest.sh fails on ubuntu because libsoftokn.so not found Reviewed-by: vinnie ! test/sun/security/tools/keytool/autotest.sh

hg: jdk8/tl/jdk: 7198205: CloseTest fails on mac

2012-09-17 Thread weijun . wang
Changeset: 0c3b0a82c4fc Author:weijun Date: 2012-09-17 17:19 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0c3b0a82c4fc 7198205: CloseTest fails on mac Reviewed-by: alanb, chegar, michaelm ! test/ProblemList.txt ! test/java/net/URLClassLoader/closetest/CloseTest.java

hg: jdk8/tl/jdk: 7196677: diff compares same file to itself in PaddingTest regression test.

2012-09-06 Thread weijun . wang
Changeset: 833f4630f3a1 Author:weijun Date: 2012-09-07 10:24 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/833f4630f3a1 7196677: diff compares same file to itself in PaddingTest regression test. Reviewed-by: xuelei ! test/com/sun/crypto/provider/Cipher/DES/PaddingTest.java

hg: jdk8/tl/jdk: 7184815: [macosx] Need to read Kerberos config in files

2012-08-28 Thread weijun . wang
Changeset: c4c69b4d9ace Author:weijun Date: 2012-08-29 11:03 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c4c69b4d9ace 7184815: [macosx] Need to read Kerberos config in files Reviewed-by: valeriep ! src/share/classes/sun/security/krb5/Config.java

hg: jdk8/tl/jdk: 7194472: FileKeyTab.java test fails on Windows

2012-08-28 Thread weijun . wang
Changeset: fe496675b5e7 Author:weijun Date: 2012-08-28 17:25 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fe496675b5e7 7194472: FileKeyTab.java test fails on Windows Reviewed-by: alanb ! test/sun/security/krb5/auto/FileKeyTab.java

hg: jdk8/tl/jdk: 7152121: Krb5LoginModule no longer handles keyTabNames with "file:" prefix

2012-08-26 Thread weijun . wang
Changeset: 61ddc8ce7f3b Author:weijun Date: 2012-08-27 10:23 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/61ddc8ce7f3b 7152121: Krb5LoginModule no longer handles keyTabNames with "file:" prefix Reviewed-by: mullan ! src/share/classes/com/sun/security/auth/module/Krb5LoginM

hg: jdk8/tl/jdk: 7192202: Make sure keytool prints both unknown and unparseable extensions

2012-08-19 Thread weijun . wang
Changeset: 86c963b1dbf8 Author:weijun Date: 2012-08-20 07:59 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/86c963b1dbf8 7192202: Make sure keytool prints both unknown and unparseable extensions Reviewed-by: mullan + test/sun/security/tools/keytool/UnknownAndUnparseable.java

hg: jdk8/tl/jdk: 7187051: ShortRSAKeynnn.sh tests should do cleanup before start test

2012-07-26 Thread weijun . wang
Changeset: f267302093d4 Author:weijun Date: 2012-07-26 20:38 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f267302093d4 7187051: ShortRSAKeynnn.sh tests should do cleanup before start test Reviewed-by: xuelei ! test/sun/security/mscapi/ShortRSAKey1024.sh

hg: jdk8/tl/jdk: 7179796: GSSExceptionImpl outputs duplicate mech oid

2012-07-23 Thread weijun . wang
Changeset: f7731fc8c98a Author:weijun Date: 2012-07-24 09:20 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f7731fc8c98a 7179796: GSSExceptionImpl outputs duplicate mech oid Reviewed-by: valeriep ! src/share/classes/sun/security/jgss/GSSCredentialImpl.java

hg: jdk8/tl/jdk: 2 new changesets

2012-07-21 Thread weijun . wang
Changeset: 5dc3f32c0d26 Author:weijun Date: 2012-07-21 19:56 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5dc3f32c0d26 7180907: Jarsigner -verify fails if rsa file used sha-256 with authenticated attributes Reviewed-by: xuelei ! src/share/classes/com/sun/crypto/provider/O

hg: jdk8/tl/jdk: 7102106: TEST_BUG: sun/security/util/Oid/S11N.sh should be modified

2012-07-16 Thread weijun . wang
Changeset: 2a39c98c1241 Author:weijun Date: 2012-07-17 11:57 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2a39c98c1241 7102106: TEST_BUG: sun/security/util/Oid/S11N.sh should be modified Reviewed-by: mullan ! test/sun/security/util/Oid/S11N.sh

hg: jdk8/tl/jdk: 7183203: ShortRSAKeynnn.sh tests intermittent failure

2012-07-16 Thread weijun . wang
Changeset: e2d265c9b592 Author:weijun Date: 2012-07-17 11:28 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e2d265c9b592 7183203: ShortRSAKeynnn.sh tests intermittent failure Reviewed-by: xuelei ! test/sun/security/mscapi/ShortRSAKey1024.sh - test/sun/security/mscapi/ShortRS

Time format in jar and jarsigner output (was Re: Code review request: 7163483 JarSigner -verify -verbose does not format date string according to locale)

2012-07-13 Thread Weijun Wang
tiple words in one field. Could you please take a look at the patch? Many thanks & best regards Jonathan On 04/25/2012 07:48 PM, Weijun Wang wrote: Hi Jonathan I'm using English. In your test all the files have a similar modified time so you cannot see the difference. However, in

hg: jdk8/tl/jdk: 6966259: Make PrincipalName and Realm immutable

2012-07-11 Thread weijun . wang
Changeset: 79b63e8eceda Author:weijun Date: 2012-07-11 17:10 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/79b63e8eceda 6966259: Make PrincipalName and Realm immutable Reviewed-by: xuelei ! src/share/classes/javax/security/auth/kerberos/KerberosPrincipal.java ! src/share/cl

Re: Time format in jar and jarsigner output (was Re: Code review request: 7163483 JarSigner -verify -verbose does not format date string according to locale)

2012-07-11 Thread Weijun Wang
tool. -Sherman On 7/10/2012 11:21 PM, Weijun Wang wrote: Mostly fine. 1. "import java.text.FieldPosition;" is not needed anymore. 2. In jar/Main, you can also consider creating a separate SimpleDateFormat object (maybe private final static?). It seems the initialization is quite

Re: Time format in jar and jarsigner output (was Re: Code review request: 7163483 JarSigner -verify -verbose does not format date string according to locale)

2012-07-10 Thread Weijun Wang
means you can do your own push but if you want to make any changes to the bug database, just tell me. Thanks Max On 07/11/2012 02:07 PM, Jonathan Lu wrote: Hello Max, Thanks a lot for review, here's the updated patch, http://cr.openjdk.java.net/~luchsh/7163483_5/ On 07/10/2012 08:54

<    1   2   3   4   5   6   >