From bugzilla-daemon at icedtea.classpath.org Wed Jun 1 00:50:28 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 01 Jun 2016 00:50:28 +0000 Subject: [Bug 2982] Eclipse crashed when properties project windows closed In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2982 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID Severity|enhancement |normal --- Comment #1 from Andrew John Hughes --- This is a crash in Eclipse native code, not OpenJDK. I suggest reporting this to the Eclipse bug tracker. Stack: [0x00007f62f9cc6000,0x00007f62f9dc7000], sp=0x00007f62f9dc2be0, free space=1010k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libgobject-2.0.so.0+0x19718] g_object_get_qdata+0x18 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.eclipse.swt.internal.gtk.OS._g_object_get_qdata(JI)J+0 j org.eclipse.swt.internal.gtk.OS.g_object_get_qdata(JI)J+9 j org.eclipse.swt.widgets.Display.removeWidget(J)Lorg/eclipse/swt/widgets/Widget;+19 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at icedtea.classpath.org Wed Jun 1 01:06:45 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:06:45 +0000 Subject: /hg/release/icedtea7-forest-2.6: Added tag icedtea-2.6.6 for cha... Message-ID: changeset 8c0c17064521 in /hg/release/icedtea7-forest-2.6 details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6?cmd=changeset;node=8c0c17064521 author: andrew date: Wed Jun 01 02:06:54 2016 +0100 Added tag icedtea-2.6.6 for changeset 882cfee70fe8 diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8 lines): diff -r 882cfee70fe8 -r 8c0c17064521 .hgtags --- a/.hgtags Mon Apr 18 06:49:18 2016 +0100 +++ b/.hgtags Wed Jun 01 02:06:54 2016 +0100 @@ -653,3 +653,4 @@ 8e728c41fec5b9a945a12aecdd002ae1652d0253 icedtea-2.6.5 b8b43305701a43c34b3be0957bc8d75a76d1b4c7 icedtea-2.6.6pre01 12491db47c7ccffcc3e881df68f4c2f727b44e5d jdk7u101-b00 +882cfee70fe876a273ba8f594d03219aa8192cef icedtea-2.6.6 From andrew at icedtea.classpath.org Wed Jun 1 01:06:50 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:06:50 +0000 Subject: /hg/release/icedtea7-forest-2.6/corba: Added tag icedtea-2.6.6 f... Message-ID: changeset 4e571f4f723b in /hg/release/icedtea7-forest-2.6/corba details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/corba?cmd=changeset;node=4e571f4f723b author: andrew date: Wed Jun 01 02:06:49 2016 +0100 Added tag icedtea-2.6.6 for changeset ca3e3c4c5a61 diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8 lines): diff -r ca3e3c4c5a61 -r 4e571f4f723b .hgtags --- a/.hgtags Mon Apr 18 06:49:20 2016 +0100 +++ b/.hgtags Wed Jun 01 02:06:49 2016 +0100 @@ -655,3 +655,4 @@ 389551542e139a9c84735a778726d1fdbac6105e icedtea-2.6.5 bd2be90026f7655b1c21a67b14d812ca7a495064 icedtea-2.6.6pre01 9c164195bcc97da6c6567e6e6d55ea349f1c583d jdk7u101-b00 +ca3e3c4c5a615deab554708211e21db1b9febcf4 icedtea-2.6.6 From andrew at icedtea.classpath.org Wed Jun 1 01:06:55 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:06:55 +0000 Subject: /hg/release/icedtea7-forest-2.6/jaxp: Added tag icedtea-2.6.6 fo... Message-ID: changeset 81a6bae36120 in /hg/release/icedtea7-forest-2.6/jaxp details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jaxp?cmd=changeset;node=81a6bae36120 author: andrew date: Wed Jun 01 02:06:50 2016 +0100 Added tag icedtea-2.6.6 for changeset 683427778edf diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8 lines): diff -r 683427778edf -r 81a6bae36120 .hgtags --- a/.hgtags Mon Apr 18 06:49:21 2016 +0100 +++ b/.hgtags Wed Jun 01 02:06:50 2016 +0100 @@ -656,3 +656,4 @@ 8a56658cb829a321fba2c80039e6aadc8ff936b1 icedtea-2.6.5 5ab0648fce587283f45235377a07720aec742e7b icedtea-2.6.6pre01 dcdbebfaf4b42da4927d3d0c682205a23cd7cdb8 jdk7u101-b00 +683427778edf23bb16f6685a58e35d937d16f83d icedtea-2.6.6 From andrew at icedtea.classpath.org Wed Jun 1 01:07:00 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:07:00 +0000 Subject: /hg/release/icedtea7-forest-2.6/jaxws: Added tag icedtea-2.6.6 f... Message-ID: changeset bce6252889c7 in /hg/release/icedtea7-forest-2.6/jaxws details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jaxws?cmd=changeset;node=bce6252889c7 author: andrew date: Wed Jun 01 02:06:51 2016 +0100 Added tag icedtea-2.6.6 for changeset 63f7bf7ed2d4 diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8 lines): diff -r 63f7bf7ed2d4 -r bce6252889c7 .hgtags --- a/.hgtags Mon Apr 18 06:49:24 2016 +0100 +++ b/.hgtags Wed Jun 01 02:06:51 2016 +0100 @@ -655,3 +655,4 @@ 9c049d7f5adcffa9347029056e0717c983327561 icedtea-2.6.5 16ce6457a33aac9e72c93cebb4002bed46bf3d32 icedtea-2.6.6pre01 36ee37eedf25da13abde1c0b8974fb3b95c59c7c jdk7u101-b00 +63f7bf7ed2d4172ae55f6073d31dff9cbeb95900 icedtea-2.6.6 From andrew at icedtea.classpath.org Wed Jun 1 01:07:05 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:07:05 +0000 Subject: /hg/release/icedtea7-forest-2.6/langtools: Added tag icedtea-2.6... Message-ID: changeset 35f0d51bf511 in /hg/release/icedtea7-forest-2.6/langtools details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/langtools?cmd=changeset;node=35f0d51bf511 author: andrew date: Wed Jun 01 02:06:54 2016 +0100 Added tag icedtea-2.6.6 for changeset e42dd50480d3 diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8 lines): diff -r e42dd50480d3 -r 35f0d51bf511 .hgtags --- a/.hgtags Mon Apr 18 06:49:33 2016 +0100 +++ b/.hgtags Wed Jun 01 02:06:54 2016 +0100 @@ -655,3 +655,4 @@ f6593c32cc46f60438804b6a5b0d61e532f4a235 icedtea-2.6.5 83f998d6c0afda7f3882ecc03ea873d988174c19 icedtea-2.6.6pre01 5713b8d2db3f1fc0c9802fdaf30ca802cddf8f65 jdk7u101-b00 +e42dd50480d3aab87668202ed79fb87f2dedcb91 icedtea-2.6.6 From andrew at icedtea.classpath.org Wed Jun 1 01:07:11 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:07:11 +0000 Subject: /hg/release/icedtea7-forest-2.6/hotspot: Added tag icedtea-2.6.6... Message-ID: changeset 5f3955f1fa41 in /hg/release/icedtea7-forest-2.6/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/hotspot?cmd=changeset;node=5f3955f1fa41 author: andrew date: Wed Jun 01 02:06:55 2016 +0100 Added tag icedtea-2.6.6 for changeset 3022a3d80efd diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8 lines): diff -r 3022a3d80efd -r 5f3955f1fa41 .hgtags --- a/.hgtags Tue Apr 19 21:44:54 2016 +0100 +++ b/.hgtags Wed Jun 01 02:06:55 2016 +0100 @@ -890,3 +890,4 @@ 04d7046d2d41ae18c762fbdad7e114fdd55e2282 icedtea-2.6.5 825fa447453ad85b3a6f11f87c5147b8b78fb3ab icedtea-2.6.6pre01 6e42747134be8a4a366d337da1fc84a847ad8381 jdk7u101-b00 +3022a3d80efd705e861b90cece4f6fdc73f6de97 icedtea-2.6.6 From andrew at icedtea.classpath.org Wed Jun 1 01:07:17 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:07:17 +0000 Subject: /hg/release/icedtea7-forest-2.6/jdk: 2 new changesets Message-ID: changeset 55c38c1ace75 in /hg/release/icedtea7-forest-2.6/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jdk?cmd=changeset;node=55c38c1ace75 author: andrew date: Fri Apr 22 03:53:51 2016 +0100 Bump to icedtea-2.6.6 changeset 60cce04d1832 in /hg/release/icedtea7-forest-2.6/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jdk?cmd=changeset;node=60cce04d1832 author: andrew date: Wed Jun 01 02:06:52 2016 +0100 Added tag icedtea-2.6.6 for changeset 55c38c1ace75 diffstat: .hgtags | 1 + make/jdk_generic_profile.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diffs (20 lines): diff -r d65c0d488c02 -r 60cce04d1832 .hgtags --- a/.hgtags Tue Apr 19 22:23:23 2016 +0100 +++ b/.hgtags Wed Jun 01 02:06:52 2016 +0100 @@ -642,3 +642,4 @@ e727fe32654c370a9b6dd16761b90a949194fb99 icedtea-2.6.5 a4a37396e04bdf3c402d77050204be96459b9bef icedtea-2.6.6pre01 bdcfc4d9ab9f52fbf37db876c08a1846765627c4 jdk7u101-b00 +55c38c1ace75384dcad2d3a95382e37a4bff94ef icedtea-2.6.6 diff -r d65c0d488c02 -r 60cce04d1832 make/jdk_generic_profile.sh --- a/make/jdk_generic_profile.sh Tue Apr 19 22:23:23 2016 +0100 +++ b/make/jdk_generic_profile.sh Wed Jun 01 02:06:52 2016 +0100 @@ -671,7 +671,7 @@ # IcedTea versioning export ICEDTEA_NAME="IcedTea" -export PACKAGE_VERSION="2.6.6pre01" +export PACKAGE_VERSION="2.6.6" export DERIVATIVE_ID="${ICEDTEA_NAME} ${PACKAGE_VERSION}" echo "Building ${DERIVATIVE_ID}" From bugzilla-daemon at icedtea.classpath.org Wed Jun 1 01:57:34 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:57:34 +0000 Subject: [Bug 2954] ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2954 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |leo at famulari.name --- Comment #5 from Andrew John Hughes --- *** Bug 2990 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 1 01:57:34 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:57:34 +0000 Subject: [Bug 2990] icedtea-1.13.11 fails to build with "... must override a superclass method" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2990 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Andrew John Hughes --- This is fixed by: http://icedtea.classpath.org/hg/icedtea6/rev/60be25a84f2d *** This bug has been marked as a duplicate of bug 2954 *** -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 1 01:57:48 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 01 Jun 2016 01:57:48 +0000 Subject: [Bug 2990] icedtea-1.13.11 fails to build with "... must override a superclass method" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2990 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |normal -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 1 03:01:16 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 01 Jun 2016 03:01:16 +0000 Subject: [Bug 2991] New: [IcedTea8] JVM on PPC64 LE crashes due to an illegal instruction in JITed code Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2991 Bug ID: 2991 Summary: [IcedTea8] JVM on PPC64 LE crashes due to an illegal instruction in JITed code Product: IcedTea Version: 3.0.1 Hardware: ppc64le OS: Linux Status: NEW Severity: normal Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org See http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/2016-May/002534.html -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 1 03:01:59 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 01 Jun 2016 03:01:59 +0000 Subject: [Bug 2991] [IcedTea8] JVM on PPC64 LE crashes due to an illegal instruction in JITed code In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2991 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED URL| |https://bugs.openjdk.java.n | |et/browse/JDK-8158318 Target Milestone|--- |3.1.0 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 1 03:03:04 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 01 Jun 2016 03:03:04 +0000 Subject: [Bug 2992] New: [IcedTea7] JVM on PPC64 LE crashes due to an illegal instruction in JITed code Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2992 Bug ID: 2992 Summary: [IcedTea7] JVM on PPC64 LE crashes due to an illegal instruction in JITed code Product: IcedTea Version: 2.6.6 Hardware: ppc64le OS: Linux Status: NEW Severity: normal Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org Clone of bug 2991 for IcedTea 2.x. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 1 03:03:30 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 01 Jun 2016 03:03:30 +0000 Subject: [Bug 2992] [IcedTea7] JVM on PPC64 LE crashes due to an illegal instruction in JITed code In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2992 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED URL| |https://bugs.openjdk.java.n | |et/browse/JDK-8158318 Target Milestone|--- |2.6.7 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From edward.nevill at gmail.com Wed Jun 1 15:01:19 2016 From: edward.nevill at gmail.com (Edward Nevill) Date: Wed, 01 Jun 2016 16:01:19 +0100 Subject: RFR: Backports to aarch64 jdk7 Message-ID: <1464793279.23672.25.camel@mylittlepony.linaroharston> Hi, Please review the following webrev http://cr.openjdk.java.net/~enevill/jdk7_backports_1605/webrev This backports the changes listed below to jdk7. I have only backported bug fixes as I think it is no longer appropriate to backport optimisations to jdk7. Tested with hotspot and langtools Before: Hotspot: Test results: passed: 297; failed: 12; error: 2 Langtools: Test results: passed: 1,970; failed: 1; error: 2 After: Hotspot: Test results: passed: 297; failed: 12; error: 2 Langtools: Test results: passed: 1,972; failed: 1; error: 1 OK to push? Ed. --- CUT HERE --- changeset: 6405:9a209fde3800 tag: tip user: fyang date: Fri May 27 20:38:38 2016 +0800 files: src/cpu/aarch64/vm/aarch64.ad description: 8157906: aarch64: some more integer rotate instructions are never emitted Summary: fix wrong definition of source operand of left rotate instructions Reviewed-by: aph Contributed-by: teng.lu at linaro.org changeset: 6404:ff7c30cebd52 user: fyang date: Wed Jan 27 12:20:53 2016 +0800 files: src/cpu/aarch64/vm/stubGenerator_aarch64.cpp description: 8148328: aarch64: redundant lsr instructions in stub code. Summary: avoid redundant lsr instructions in jbyte_arraycopy and jbyte_disjoint_arraycopy. Reviewed-by: aph Contributed-by: felix.yang at linaro.org changeset: 6403:fbd4d25cd06f user: enevill date: Wed Feb 03 11:34:12 2016 +0000 files: src/cpu/aarch64/vm/globals_aarch64.hpp src/cpu/aarch64/vm/stubGenerator_aarch64.cpp description: 8148948: aarch64: generate_copy_longs calls align() incorrectly Summary: Fix alignments Reviewed-by: aph changeset: 6402:8a31bb24de0f user: enevill date: Thu Feb 04 16:24:28 2016 +0000 files: src/cpu/aarch64/vm/assembler_aarch64.cpp description: 8148783: aarch64: SEGV running SpecJBB2013 Summary: Fix calculation of offset for adrp Reviewed-by: aph changeset: 6401:42f564f222fb user: aph date: Mon May 23 15:39:13 2016 +0000 files: src/cpu/aarch64/vm/stubGenerator_aarch64.cpp description: 8150045: arraycopy causes segfaults in SATB during garbage collection Reviewed-by: roland changeset: 6400:f904e6fab2a4 user: aph date: Wed Apr 20 11:14:10 2016 +0000 files: src/cpu/aarch64/vm/templateTable_aarch64.cpp description: 8154739: AArch64: TemplateTable::fast_xaccess loads in wrong mode Reviewed-by: roland --- CUT HERE --- From omajid at redhat.com Wed Jun 1 15:08:40 2016 From: omajid at redhat.com (Omair Majid) Date: Wed, 1 Jun 2016 11:08:40 -0400 Subject: Dual zipfs In-Reply-To: <312100127.1035230.1464723212505.JavaMail.zimbra@redhat.com> References: <312100127.1035230.1464723212505.JavaMail.zimbra@redhat.com> Message-ID: <20160601150840.GE18779@redhat.com> * Andrew Hughes [2016-05-31 15:33]: > com.sun.nio.zipfs is a demonstration of using the NIO 2 API and was > adding in OpenJDK 7. I'm surprised it's actually installed in the main > tree and not the demo tree, actually. It's in > jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs in the OpenJDK > source tree. From https://blogs.oracle.com/xuemingshen/entry/the_zip_filesystem_provider_in1: > The more test cases and sample code we wrote the more we are convinced > that it might be a good idea to simply deploy this ZIP file system > provider into the system extensions directory, so the provider can be > used directly (without playing with the -classpath to add the zipfs.jar > into your classpath) to access a ZIP/Jar file via the NIO2 file system > APIs, as an alternative to the existing java.util.zip/jar.ZipFile class. > So since JDK7/b123, the zipfs.jar has been deployed into the lib/ext. > You now can use the ZIP filesystem "out of the box" and access a ZIP/Jar > file just like access a "normal" file system. Thanks, Omair -- PGP Key: 66484681 (http://pgp.mit.edu/) Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681 From bugzilla-daemon at icedtea.classpath.org Thu Jun 2 12:24:12 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 02 Jun 2016 12:24:12 +0000 Subject: [Bug 2037] Thread count view queries all summaries for the last hour, every second. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 Severin Gehwolf changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Thread monitor view fails |Thread count view queries |to cancel a timer? |all summaries for the last | |hour, every second. --- Comment #3 from Severin Gehwolf --- I've looked into this issue again and it's not really an issue with the time-line view. At least not exclusively. One issue here is as follows and pertains to the thread count view. Steps to reproduce: 0. Apply attached patch (sets logging level to FINEST and disables logging in MongoStorage). Build thermostat. 1. $ ./bin/thermostat local 2. Leave it running for a while. > 10 minutes will start to show the issue 3. Watch FINEST logging output for WebCursor/WebStorageEndpoint Logging looks like this: FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (100) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i FINEST - WebCursor: Getting more results for cursorId: 202 FINEST - WebStorageEndPoint: Fetched more results (91) for user 'client-SaU7ixmM' cursorId 202. Statement: QUERY vm-thread-summary WHERE 'vmId' = ?s AND 'agentId' = ?s AND 'timeStamp' >= ?l AND 'timeStamp' <= ?l SORT 'timeStamp' DSC LIMIT ?i getThreadSummary() took: 67ms This is the same cursor ID, thus the same query. Every getMore() incurs network traffic. Perhaps the batch size for WebCursor.getMore() could get tweaked too. But that's not really the point here. The above query has a total return set of 1691 records, slized to 17 getMore() calls. Thus, 17, network roundtrips. That adds up. Adjusting the batch size only buys us so much. It's a trade-off of memory vs. network traffic. The getMore() queries stem from the fact that we gather historical data, the longer you let it running the larger the result set (possibly) gets. Why? Because the query above comes from ThreadCountController.ThreadInformationDataCollector.updateChart(). It fetches data via collector.getThreadSummary(range) where the range is (one-hour-from-now, now). While the query is bounded, it's still way to much data querying - especially network round-trips with getmore - for the use-case at hand. The query runs every second (scheduled via a timer) and fetches results for the last hour. However, the difference in new records is minimal. Since only a second has passed since the last query, empirically, the delta is pretty much one record more by-and-large. That means if that view stays open for longer many records get repeatedly re-queried over time and those records need to travel the network. Not good. Suggested fixes could be: - Query for the result set once for the initial chart drawing. Then only query shorter periods. Results T-1sec won't have changed. - Update the chart less frequently. E.g. once every 10 seconds. - Implement caching of results so as to not query redundant data sets. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Thu Jun 2 12:25:28 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 02 Jun 2016 12:25:28 +0000 Subject: [Bug 2037] Thread count view queries all summaries for the last hour, every second. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 --- Comment #4 from Severin Gehwolf --- Created attachment 1535 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=1535&action=edit Patch showing logging output. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Thu Jun 2 12:28:02 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 02 Jun 2016 12:28:02 +0000 Subject: [Bug 2037] Thread count view queries all summaries for the last hour, every second. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 --- Comment #5 from Severin Gehwolf --- Created attachment 1536 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=1536&action=edit Log output for a single query This is an example result set size of ~2967 records, pulled every second. Not sure what the upper bound for 1 hour worth of data is, but it's certainly too much for per-second re-queries. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Thu Jun 2 12:32:04 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 02 Jun 2016 12:32:04 +0000 Subject: [Bug 2037] Thread count view queries all summaries for the last hour, every second. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 --- Comment #6 from Severin Gehwolf --- Note that time taken in ThreadDao.getThreadSummary(range) is ~5-10ms for little historical data. That grows to ~50-100ms per query as the result set grows. A proper fix would keep this constant as much as possible. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Thu Jun 2 13:11:45 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 02 Jun 2016 13:11:45 +0000 Subject: [Bug 2037] Thread count view queries all summaries for the last hour, every second. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 Jie Kang changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jkang at redhat.com --- Comment #7 from Jie Kang --- Other plugins like vm-gc and vm-cpu, use DAOs that provide a getLatest*(long since, ...) and/or a get*(long since, long to, ...) along with code to track the ranges already acquired to reduce the query count when updating. This kind of solution could be applied here. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Thu Jun 2 13:18:59 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 02 Jun 2016 13:18:59 +0000 Subject: [Bug 2037] Thread count view queries all summaries for the last hour, every second. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 --- Comment #8 from Severin Gehwolf --- (In reply to Jie Kang from comment #7) > Other plugins like vm-gc and vm-cpu, use DAOs that provide a > getLatest*(long since, ...) and/or a get*(long since, long to, ...) along > with code to track the ranges already acquired to reduce the query count > when updating. This kind of solution could be applied here. ThreadDao.getThreadSummary(range) is similar to this. The problem here is that the range is the past hour. Then it repeats this query every second. That is the first query is fine. The second should not query the last hour anymore. See comment 3 with suggested fixes. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 3 12:05:58 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 03 Jun 2016 12:05:58 +0000 Subject: [Bug 2956] GWT modules are failing to compile under 1.6.0_39 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2956 --- Comment #16 from paguayo at indexengines.com --- Agreed, it could be my environment, I'll spend time on this today, and report back. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 3 14:24:42 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 03 Jun 2016 14:24:42 +0000 Subject: [Bug 2956] GWT modules are failing to compile under 1.6.0_39 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2956 --- Comment #17 from paguayo at indexengines.com --- the environment is correct, but I continue to get the same error: [java] ... 40 more [java] Caused by: java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.JarURLConnection [java] at com.google.gwt.dev.javac.JdtCompiler$JreIndex.readPackages(JdtCompiler.java:176) [java] at com.google.gwt.dev.javac.JdtCompiler$JreIndex.(JdtCompiler.java:154) [java] ... 62 more [java] [ERROR] at Tree.java(133): GWT.create(Tree$Resources.class) [java] com.google.gwt.dev.jjs.ast.JMethodCall [java] [ERROR] at Tree.java(133): (Tree$Resources) GWT.create(Tree$Resources.class) [java] com.google.gwt.dev.jjs.ast.JCastOperation [java] [ERROR] at Tree.java(133): final static Tree$Resources DEFAULT_RESOURCES = (Tree$Resources) GWT.create(Tree$Resources.class) [java] com.google.gwt.dev.jjs.ast.JDeclarationStatement [java] [ERROR] at Tree.java(132): { [java] Object.$clinit(); [java] final static Tree$Resources DEFAULT_RESOURCES = (Tree$Resources) GWT.create(Tree$Resources.class); [java] } [java] com.google.gwt.dev.jjs.ast.JBlock [java] [ERROR] at Tree.java(132): { [java] Object.$clinit(); [java] final static Tree$Resources DEFAULT_RESOURCES = (Tree$Resources) GWT.create(Tree$Resources.class); [java] } [java] com.google.gwt.dev.jjs.ast.JMethodBody [java] [ERROR] at Tree.java(132): private static final void $clinit(); [java] [java] com.google.gwt.dev.jjs.ast.JMethod [root at bullhead JSON]# java -version java version "1.6.0_39" OpenJDK Runtime Environment (IcedTea6 1.14.0pre+rcc7089689313) (CentOS build 1.6.0_39-b39) OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode) The same module compules without a problem on java-openjdk-1.6.0_38 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 7 11:20:26 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 07 Jun 2016 11:20:26 +0000 Subject: [Bug 2037] Thread count view queries all summaries for the last hour, every second. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 --- Comment #9 from hg commits --- details: http://icedtea.classpath.org//hg/thermostat?cmd=changeset;node=b4b8236e6f66 author: Mario Torre date: Tue Jun 07 13:22:19 2016 +0200 Fix for PR2037 review-thread: http://icedtea.classpath.org/pipermail/thermostat/2016-June/019198.html reviewed-by: jerboaa PR2037 -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 7 11:23:31 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 07 Jun 2016 11:23:31 +0000 Subject: [Bug 2037] Thread count view queries all summaries for the last hour, every second. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 Mario Torre changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |neugens.limasoftware at gmail. | |com Assignee|unassigned at icedtea.classpat |neugens.limasoftware at gmail. |h.org |com -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From edward.nevill at gmail.com Wed Jun 8 08:20:23 2016 From: edward.nevill at gmail.com (Edward Nevill) Date: Wed, 08 Jun 2016 09:20:23 +0100 Subject: PING: RFR: Backports to aarch64 jdk7 In-Reply-To: <1464793279.23672.25.camel@mylittlepony.linaroharston> References: <1464793279.23672.25.camel@mylittlepony.linaroharston> Message-ID: <1465374023.28716.23.camel@mylittlepony.linaroharston> OK to backport these to jdk7? Ed. On Wed, 2016-06-01 at 16:01 +0100, Edward Nevill wrote: > Hi, > > Please review the following webrev > > http://cr.openjdk.java.net/~enevill/jdk7_backports_1605/webrev > > This backports the changes listed below to jdk7. > > I have only backported bug fixes as I think it is no longer appropriate > to backport optimisations to jdk7. > > Tested with hotspot and langtools > > Before: > > Hotspot: Test results: passed: 297; failed: 12; error: 2 > Langtools: Test results: passed: 1,970; failed: 1; error: 2 > > After: > > Hotspot: Test results: passed: 297; failed: 12; error: 2 > Langtools: Test results: passed: 1,972; failed: 1; error: 1 > > OK to push? > > Ed. > > --- CUT HERE --- > changeset: 6405:9a209fde3800 > tag: tip > user: fyang > date: Fri May 27 20:38:38 2016 +0800 > files: src/cpu/aarch64/vm/aarch64.ad > description: > 8157906: aarch64: some more integer rotate instructions are never > emitted > Summary: fix wrong definition of source operand of left rotate > instructions > Reviewed-by: aph > Contributed-by: teng.lu at linaro.org > > > changeset: 6404:ff7c30cebd52 > user: fyang > date: Wed Jan 27 12:20:53 2016 +0800 > files: src/cpu/aarch64/vm/stubGenerator_aarch64.cpp > description: > 8148328: aarch64: redundant lsr instructions in stub code. > Summary: avoid redundant lsr instructions in jbyte_arraycopy and > jbyte_disjoint_arraycopy. > Reviewed-by: aph > Contributed-by: felix.yang at linaro.org > > > changeset: 6403:fbd4d25cd06f > user: enevill > date: Wed Feb 03 11:34:12 2016 +0000 > files: src/cpu/aarch64/vm/globals_aarch64.hpp > src/cpu/aarch64/vm/stubGenerator_aarch64.cpp > description: > 8148948: aarch64: generate_copy_longs calls align() incorrectly > Summary: Fix alignments > Reviewed-by: aph > > > changeset: 6402:8a31bb24de0f > user: enevill > date: Thu Feb 04 16:24:28 2016 +0000 > files: src/cpu/aarch64/vm/assembler_aarch64.cpp > description: > 8148783: aarch64: SEGV running SpecJBB2013 > Summary: Fix calculation of offset for adrp > Reviewed-by: aph > > > changeset: 6401:42f564f222fb > user: aph > date: Mon May 23 15:39:13 2016 +0000 > files: src/cpu/aarch64/vm/stubGenerator_aarch64.cpp > description: > 8150045: arraycopy causes segfaults in SATB during garbage collection > Reviewed-by: roland > > > changeset: 6400:f904e6fab2a4 > user: aph > date: Wed Apr 20 11:14:10 2016 +0000 > files: src/cpu/aarch64/vm/templateTable_aarch64.cpp > description: > 8154739: AArch64: TemplateTable::fast_xaccess loads in wrong mode > Reviewed-by: roland > --- CUT HERE --- > > From aph at redhat.com Wed Jun 8 08:24:36 2016 From: aph at redhat.com (Andrew Haley) Date: Wed, 8 Jun 2016 09:24:36 +0100 Subject: PING: RFR: Backports to aarch64 jdk7 In-Reply-To: <1465374023.28716.23.camel@mylittlepony.linaroharston> References: <1464793279.23672.25.camel@mylittlepony.linaroharston> <1465374023.28716.23.camel@mylittlepony.linaroharston> Message-ID: <5757D644.9050102@redhat.com> On 08/06/16 09:20, Edward Nevill wrote: > OK to backport these to jdk7? OK, thanks. Andrew. From enevill at icedtea.classpath.org Wed Jun 8 08:29:58 2016 From: enevill at icedtea.classpath.org (enevill at icedtea.classpath.org) Date: Wed, 08 Jun 2016 08:29:58 +0000 Subject: /hg/icedtea7-forest/hotspot: 6 new changesets Message-ID: changeset f904e6fab2a4 in /hg/icedtea7-forest/hotspot details: http://icedtea.classpath.org/hg/icedtea7-forest/hotspot?cmd=changeset;node=f904e6fab2a4 author: aph date: Wed Apr 20 11:14:10 2016 +0000 8154739: AArch64: TemplateTable::fast_xaccess loads in wrong mode Reviewed-by: roland changeset 42f564f222fb in /hg/icedtea7-forest/hotspot details: http://icedtea.classpath.org/hg/icedtea7-forest/hotspot?cmd=changeset;node=42f564f222fb author: aph date: Mon May 23 15:39:13 2016 +0000 8150045: arraycopy causes segfaults in SATB during garbage collection Reviewed-by: roland changeset 8a31bb24de0f in /hg/icedtea7-forest/hotspot details: http://icedtea.classpath.org/hg/icedtea7-forest/hotspot?cmd=changeset;node=8a31bb24de0f author: enevill date: Thu Feb 04 16:24:28 2016 +0000 8148783: aarch64: SEGV running SpecJBB2013 Summary: Fix calculation of offset for adrp Reviewed-by: aph changeset fbd4d25cd06f in /hg/icedtea7-forest/hotspot details: http://icedtea.classpath.org/hg/icedtea7-forest/hotspot?cmd=changeset;node=fbd4d25cd06f author: enevill date: Wed Feb 03 11:34:12 2016 +0000 8148948: aarch64: generate_copy_longs calls align() incorrectly Summary: Fix alignments Reviewed-by: aph changeset ff7c30cebd52 in /hg/icedtea7-forest/hotspot details: http://icedtea.classpath.org/hg/icedtea7-forest/hotspot?cmd=changeset;node=ff7c30cebd52 author: fyang date: Wed Jan 27 12:20:53 2016 +0800 8148328: aarch64: redundant lsr instructions in stub code. Summary: avoid redundant lsr instructions in jbyte_arraycopy and jbyte_disjoint_arraycopy. Reviewed-by: aph Contributed-by: felix.yang at linaro.org changeset 9a209fde3800 in /hg/icedtea7-forest/hotspot details: http://icedtea.classpath.org/hg/icedtea7-forest/hotspot?cmd=changeset;node=9a209fde3800 author: fyang date: Fri May 27 20:38:38 2016 +0800 8157906: aarch64: some more integer rotate instructions are never emitted Summary: fix wrong definition of source operand of left rotate instructions Reviewed-by: aph Contributed-by: teng.lu at linaro.org diffstat: src/cpu/aarch64/vm/aarch64.ad | 14 +++++----- src/cpu/aarch64/vm/assembler_aarch64.cpp | 16 +++++++---- src/cpu/aarch64/vm/globals_aarch64.hpp | 4 -- src/cpu/aarch64/vm/stubGenerator_aarch64.cpp | 39 ++++++++++++++++----------- src/cpu/aarch64/vm/templateTable_aarch64.cpp | 4 +- 5 files changed, 42 insertions(+), 35 deletions(-) diffs (235 lines): diff -r 2d8e12787f80 -r 9a209fde3800 src/cpu/aarch64/vm/aarch64.ad --- a/src/cpu/aarch64/vm/aarch64.ad Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/aarch64.ad Fri May 27 20:38:38 2016 +0800 @@ -9090,21 +9090,21 @@ %} %} -instruct rolI_rReg_Var_C_32(iRegLNoSp dst, iRegL src, iRegI shift, immI_32 c_32, rFlagsReg cr) +instruct rolI_rReg_Var_C_32(iRegINoSp dst, iRegI src, iRegI shift, immI_32 c_32, rFlagsReg cr) %{ match(Set dst (OrI (LShiftI src shift) (URShiftI src (SubI c_32 shift)))); expand %{ - rolL_rReg(dst, src, shift, cr); - %} -%} - -instruct rolI_rReg_Var_C0(iRegLNoSp dst, iRegL src, iRegI shift, immI0 c0, rFlagsReg cr) + rolI_rReg(dst, src, shift, cr); + %} +%} + +instruct rolI_rReg_Var_C0(iRegINoSp dst, iRegI src, iRegI shift, immI0 c0, rFlagsReg cr) %{ match(Set dst (OrI (LShiftI src shift) (URShiftI src (SubI c0 shift)))); expand %{ - rolL_rReg(dst, src, shift, cr); + rolI_rReg(dst, src, shift, cr); %} %} diff -r 2d8e12787f80 -r 9a209fde3800 src/cpu/aarch64/vm/assembler_aarch64.cpp --- a/src/cpu/aarch64/vm/assembler_aarch64.cpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/assembler_aarch64.cpp Fri May 27 20:38:38 2016 +0800 @@ -1632,7 +1632,10 @@ Instruction_aarch64::extract(insn2, 4, 0)) { // movk #imm16<<32 Instruction_aarch64::patch(branch + 4, 20, 5, (uint64_t)target >> 32); - offset &= (1<<20)-1; + long dest = ((long)target & 0xffffffffL) | ((long)branch & 0xffff00000000L); + long pc_page = (long)branch >> 12; + long adr_page = (long)dest >> 12; + offset = adr_page - pc_page; instructions = 2; } } @@ -4920,11 +4923,12 @@ if (offset_high >= -(1<<20) && offset_low < (1<<20)) { _adrp(reg1, dest.target()); } else { - unsigned long pc_page = (unsigned long)pc() >> 12; - long offset = dest_page - pc_page; - offset = (offset & ((1<<20)-1)) << 12; - _adrp(reg1, pc()+offset); - movk(reg1, ((unsigned long)dest.target() >> 32), 32); + unsigned long target = (unsigned long)dest.target(); + unsigned long adrp_target + = (target & 0xffffffffUL) | ((unsigned long)pc() & 0xffff00000000UL); + + _adrp(reg1, (address)adrp_target); + movk(reg1, target >> 32, 32); } byte_offset = (unsigned long)dest.target() & 0xfff; } diff -r 2d8e12787f80 -r 9a209fde3800 src/cpu/aarch64/vm/globals_aarch64.hpp --- a/src/cpu/aarch64/vm/globals_aarch64.hpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/globals_aarch64.hpp Fri May 27 20:38:38 2016 +0800 @@ -48,11 +48,7 @@ // the the vep is aligned at CodeEntryAlignment whereas c2 only aligns // the uep and the vep doesn't get real alignment but just slops on by // only assured that the entry instruction meets the 5 byte size requirement. -#ifdef COMPILER2 define_pd_global(intx, CodeEntryAlignment, 64); -#else -define_pd_global(intx, CodeEntryAlignment, 16); -#endif // COMPILER2 define_pd_global(intx, OptoLoopAlignment, 16); define_pd_global(intx, InlineFrequencyCount, 100); diff -r 2d8e12787f80 -r 9a209fde3800 src/cpu/aarch64/vm/stubGenerator_aarch64.cpp --- a/src/cpu/aarch64/vm/stubGenerator_aarch64.cpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/stubGenerator_aarch64.cpp Fri May 27 20:38:38 2016 +0800 @@ -687,7 +687,7 @@ // count - element count // tmp - scratch register // - // Destroy no registers! + // Destroy no registers except rscratch1 and rscratch2 // void gen_write_ref_array_pre_barrier(Register addr, Register count, bool dest_uninitialized) { BarrierSet* bs = Universe::heap()->barrier_set(); @@ -696,12 +696,13 @@ case BarrierSet::G1SATBCTLogging: // With G1, don't generate the call if we statically know that the target in uninitialized if (!dest_uninitialized) { - __ push(RegSet::range(r0, r29), sp); // integer registers except lr & sp + __ push_call_clobbered_registers(); if (count == c_rarg0) { if (addr == c_rarg1) { // exactly backwards!! - __ stp(c_rarg0, c_rarg1, __ pre(sp, -2 * wordSize)); - __ ldp(c_rarg1, c_rarg0, __ post(sp, -2 * wordSize)); + __ mov(rscratch1, c_rarg0); + __ mov(c_rarg0, c_rarg1); + __ mov(c_rarg1, rscratch1); } else { __ mov(c_rarg1, count); __ mov(c_rarg0, addr); @@ -711,7 +712,7 @@ __ mov(c_rarg1, count); } __ call_VM_leaf(CAST_FROM_FN_PTR(address, BarrierSet::static_write_ref_array_pre), 2); - __ pop(RegSet::range(r0, r29), sp); // integer registers except lr & sp } + __ pop_call_clobbered_registers(); break; case BarrierSet::CardTableModRef: case BarrierSet::CardTableExtension: @@ -742,7 +743,7 @@ case BarrierSet::G1SATBCTLogging: { - __ push(RegSet::range(r0, r29), sp); // integer registers except lr & sp + __ push_call_clobbered_registers(); // must compute element count unless barrier set interface is changed (other platforms supply count) assert_different_registers(start, end, scratch); __ lea(scratch, Address(end, BytesPerHeapOop)); @@ -751,7 +752,7 @@ __ mov(c_rarg0, start); __ mov(c_rarg1, scratch); __ call_VM_leaf(CAST_FROM_FN_PTR(address, BarrierSet::static_write_ref_array_post), 2); - __ pop(RegSet::range(r0, r29), sp); // integer registers except lr & sp } + __ pop_call_clobbered_registers(); } break; case BarrierSet::CardTableModRef: @@ -811,7 +812,7 @@ assert_different_registers(s, d, count, rscratch1); Label again, large, small; - __ align(6); + __ align(CodeEntryAlignment); __ bind(start); __ cmp(count, 8); __ br(Assembler::LO, small); @@ -856,7 +857,7 @@ __ ret(lr); - __ align(6); + __ align(CodeEntryAlignment); __ bind(large); // Fill 8 registers @@ -1007,7 +1008,8 @@ } // rscratch2 is the byte adjustment needed to align s. __ cbz(rscratch2, aligned); - __ lsr(rscratch2, rscratch2, exact_log2(granularity)); + int shift = exact_log2(granularity); + if (shift) __ lsr(rscratch2, rscratch2, shift); __ sub(count, count, rscratch2); #if 0 @@ -1386,10 +1388,10 @@ // no-overlap entry point used by generate_conjoint_long_oop_copy(). // address generate_disjoint_oop_copy(bool aligned, address *entry, - const char *name, bool dest_uninitialized = false) { + const char *name, bool dest_uninitialized) { const bool is_oop = true; const size_t size = UseCompressedOops ? sizeof (jint) : sizeof (jlong); - return generate_disjoint_copy(size, aligned, is_oop, entry, name); + return generate_disjoint_copy(size, aligned, is_oop, entry, name, dest_uninitialized); } // Arguments: @@ -1404,10 +1406,11 @@ // address generate_conjoint_oop_copy(bool aligned, address nooverlap_target, address *entry, - const char *name, bool dest_uninitialized = false) { + const char *name, bool dest_uninitialized) { const bool is_oop = true; const size_t size = UseCompressedOops ? sizeof (jint) : sizeof (jlong); - return generate_conjoint_copy(size, aligned, is_oop, nooverlap_target, entry, name); + return generate_conjoint_copy(size, aligned, is_oop, nooverlap_target, entry, + name, dest_uninitialized); } @@ -1514,6 +1517,8 @@ } #endif //ASSERT + gen_write_ref_array_pre_barrier(to, count, dest_uninitialized); + // save the original count __ mov(count_save, count); @@ -1655,9 +1660,11 @@ bool aligned = !UseCompressedOops; StubRoutines::_arrayof_oop_disjoint_arraycopy - = generate_disjoint_oop_copy(aligned, &entry, "arrayof_oop_disjoint_arraycopy"); + = generate_disjoint_oop_copy(aligned, &entry, "arrayof_oop_disjoint_arraycopy", + /*dest_uninitialized*/false); StubRoutines::_arrayof_oop_arraycopy - = generate_conjoint_oop_copy(aligned, entry, &entry_oop_arraycopy, "arrayof_oop_arraycopy"); + = generate_conjoint_oop_copy(aligned, entry, &entry_oop_arraycopy, "arrayof_oop_arraycopy", + /*dest_uninitialized*/false); // Aligned versions without pre-barriers StubRoutines::_arrayof_oop_disjoint_arraycopy_uninit = generate_disjoint_oop_copy(aligned, &entry, "arrayof_oop_disjoint_arraycopy_uninit", diff -r 2d8e12787f80 -r 9a209fde3800 src/cpu/aarch64/vm/templateTable_aarch64.cpp --- a/src/cpu/aarch64/vm/templateTable_aarch64.cpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/templateTable_aarch64.cpp Fri May 27 20:38:38 2016 +0800 @@ -3032,7 +3032,7 @@ __ null_check(r0); switch (state) { case itos: - __ ldr(r0, Address(r0, r1, Address::lsl(0))); + __ ldrw(r0, Address(r0, r1, Address::lsl(0))); break; case atos: __ load_heap_oop(r0, Address(r0, r1, Address::lsl(0))); @@ -3052,7 +3052,7 @@ __ ldrw(r3, Address(r2, in_bytes(constantPoolCacheOopDesc::base_offset() + ConstantPoolCacheEntry::flags_offset()))); __ tbz(r3, ConstantPoolCacheEntry::is_volatile_shift, notVolatile); - __ membar(MacroAssembler::LoadLoad); + __ membar(MacroAssembler::LoadLoad | MacroAssembler::LoadStore); __ bind(notVolatile); } From bugzilla-daemon at icedtea.classpath.org Thu Jun 9 01:50:24 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 09 Jun 2016 01:50:24 +0000 Subject: [Bug 2882] [IcedTea8] Support builds using GCC 6 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2882 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 07:38:47 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 07:38:47 +0000 Subject: [Bug 2882] [IcedTea8] Support builds using GCC 6 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2882 Fridrich Strba changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridrich.strba at bluewin.ch --- Comment #3 from Fridrich Strba --- Created attachment 1537 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=1537&action=edit This allows to build with the default --std= mode -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 16:53:03 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 16:53:03 +0000 Subject: [Bug 3012] New: [IcedTea7] Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3012 Bug ID: 3012 Summary: [IcedTea7] Product: IcedTea Version: 2.6.6 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 16:53:19 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 16:53:19 +0000 Subject: [Bug 3012] [IcedTea7] Backport "8069181: java.lang.AssertionError when compiling JDK 1.4 code in JDK 8" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3012 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[IcedTea7] |[IcedTea7] Backport | |"8069181: | |java.lang.AssertionError | |when compiling JDK 1.4 code | |in JDK 8" -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 16:53:32 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 16:53:32 +0000 Subject: [Bug 3012] [IcedTea7] Backport "8069181: java.lang.AssertionError when compiling JDK 1.4 code in JDK 8" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3012 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Target Milestone|--- |2.6.7 Severity|enhancement |normal -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 16:57:08 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 16:57:08 +0000 Subject: [Bug 3012] [IcedTea7] Backport "8069181: java.lang.AssertionError when compiling JDK 1.4 code in JDK 8" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3012 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://bugzilla.redhat.com | |/show_bug.cgi?id=1015612 --- Comment #1 from Andrew John Hughes --- Succeeds with IcedTea 1.x/OpenJDK 6 and IcedTea 3.x/OpenJDK 8. Fails with IcedTea 2.x/OpenJDK 7. $ /usr/lib/jvm/icedtea-6/bin/javac -source 1.4 TestEnum.java TestEnum.java:7: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier (use -source 5 or higher to use 'enum' as a keyword) for (Enumeration enum = hTable.keys();;){ ^ TestEnum.java:8: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier (use -source 5 or higher to use 'enum' as a keyword) if(!enum.hasMoreElements()) ^ TestEnum.java:10: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier (use -source 5 or higher to use 'enum' as a keyword) enum.nextElement(); ^ 3 warnings $ /usr/lib/jvm/icedtea-7/bin/javac -source 1.4 TestEnum.java warning: [options] bootstrap class path not set in conjunction with -source 1.4 TestEnum.java:7: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier for (Enumeration enum = hTable.keys();;){ ^ (use -source 5 or higher to use 'enum' as a keyword) TestEnum.java:8: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier if(!enum.hasMoreElements()) ^ (use -source 5 or higher to use 'enum' as a keyword) TestEnum.java:10: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier enum.nextElement(); ^ (use -source 5 or higher to use 'enum' as a keyword) An exception has occurred in the compiler (1.7.0_101). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. java.lang.AssertionError at com.sun.tools.javac.util.Assert.error(Assert.java:126) at com.sun.tools.javac.util.Assert.check(Assert.java:45) at com.sun.tools.javac.comp.Attr.attribIdentAsEnumType(Attr.java:678) at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:629) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:725) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:401) at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:855) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:725) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:480) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:496) at com.sun.tools.javac.comp.Attr.visitForLoop(Attr.java:939) at com.sun.tools.javac.tree.JCTree$JCForLoop.accept(JCTree.java:872) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:480) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:496) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:918) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:781) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:480) at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:836) at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:669) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:480) at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:3250) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:3173) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:3109) at com.sun.tools.javac.comp.Attr.attrib(Attr.java:3083) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1184) at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:870) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:829) at com.sun.tools.javac.main.Main.compile(Main.java:439) at com.sun.tools.javac.main.Main.compile(Main.java:353) at com.sun.tools.javac.main.Main.compile(Main.java:342) at com.sun.tools.javac.main.Main.compile(Main.java:333) at com.sun.tools.javac.Main.compile(Main.java:76) at com.sun.tools.javac.Main.main(Main.java:61) $ /usr/lib/jvm/icedtea-8/bin/javac -source 1.4 TestEnum.java warning: [options] bootstrap class path not set in conjunction with -source 1.4 warning: [options] source value 1.4 is obsolete and will be removed in a future release warning: [options] target value 1.4 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. TestEnum.java:7: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier for (Enumeration enum = hTable.keys();;){ ^ (use -source 5 or higher to use 'enum' as a keyword) TestEnum.java:8: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier if(!enum.hasMoreElements()) ^ (use -source 5 or higher to use 'enum' as a keyword) TestEnum.java:10: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier enum.nextElement(); ^ (use -source 5 or higher to use 'enum' as a keyword) 7 warnings -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:20:10 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:20:10 +0000 Subject: [Bug 3013] New: [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3013 Bug ID: 3013 Summary: [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" Product: IcedTea Version: 2.6.6 Hardware: all OS: All Status: NEW Severity: enhancement Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org Error message in OpenJDK 8 / IcedTea 3.x is more helpful and specific. $ /usr/lib/jvm/icedtea-7/bin/javac ForeachBadInitialization.java ForeachBadInitialization.java:29: error: not a statement for (a : s) {} ^ ForeachBadInitialization.java:29: error: ';' expected for (a : s) {} ^ ForeachBadInitialization.java:29: error: illegal start of expression for (a : s) {} ^ ForeachBadInitialization.java:29: error: ';' expected for (a : s) {} ^ 4 errors $ /usr/lib/jvm/icedtea-8/bin/javac ForeachBadInitialization.java ForeachBadInitialization.java:29: error: bad initializer for for-loop for (a : s) {} ^ 1 error -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:20:31 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:20:31 +0000 Subject: [Bug 3013] [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3013 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Target Milestone|--- |2.6.7 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:20:44 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:20:44 +0000 Subject: [Bug 3013] [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3013 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |3012 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:20:44 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:20:44 +0000 Subject: [Bug 3012] [IcedTea7] Backport "8069181: java.lang.AssertionError when compiling JDK 1.4 code in JDK 8" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3012 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |3013 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:22:06 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:22:06 +0000 Subject: [Bug 3014] New: [IcedTea6] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3014 Bug ID: 3014 Summary: [IcedTea6] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" Product: IcedTea Version: 6-1.13.11 Hardware: all OS: All Status: NEW Severity: enhancement Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org Error message in OpenJDK 8 / IcedTea 3.x is more helpful and specific. $ /usr/lib/jvm/icedtea-6/bin/javac ForeachBadInitialization.java ForeachBadInitialization.java:29: not a statement for (a : s) {} ^ ForeachBadInitialization.java:29: ';' expected for (a : s) {} ^ ForeachBadInitialization.java:29: illegal start of expression for (a : s) {} ^ ForeachBadInitialization.java:29: ';' expected for (a : s) {} ^ 4 errors $ /usr/lib/jvm/icedtea-8/bin/javac ForeachBadInitialization.java ForeachBadInitialization.java:29: error: bad initializer for for-loop for (a : s) {} ^ 1 error -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:22:23 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:22:23 +0000 Subject: [Bug 3014] [IcedTea6] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3014 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Target Milestone|--- |6-1.13.12 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:22:46 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:22:46 +0000 Subject: [Bug 3014] [IcedTea6] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3014 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://bugs.openjdk.java.n | |et/browse/JDK-7159445 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:22:56 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:22:56 +0000 Subject: [Bug 3013] [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3013 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://bugs.openjdk.java.n | |et/browse/JDK-7159445 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Fri Jun 10 17:24:33 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 10 Jun 2016 17:24:33 +0000 Subject: [Bug 3012] [IcedTea7] Backport "8069181: java.lang.AssertionError when compiling JDK 1.4 code in JDK 8" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3012 --- Comment #2 from Andrew John Hughes --- Created attachment 1538 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=1538&action=edit Test case from the OpenJDK bug which demonstrates the error when compiled with -source 1.4 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Mon Jun 13 14:54:39 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 13 Jun 2016 14:54:39 +0000 Subject: [Bug 2956] GWT modules are failing to compile under 1.6.0_39 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2956 --- Comment #18 from Andrew John Hughes --- Ok, can you log this as a separate bug as the original issue is fixed? Thanks. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Mon Jun 13 15:11:02 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 13 Jun 2016 15:11:02 +0000 Subject: [Bug 2956] GWT modules are failing to compile under 1.6.0_39 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2956 --- Comment #19 from paguayo at indexengines.com --- Can you compile the GWT modules, specifically the JSON sample module? I see its resulting in a failure to cast, but why doesn't this problem exhibit it self in 1.6.0_38? I can open a separate bug, but the original problem is still the same, GWT modules are still failing to compile on 1.6.0_39. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Mon Jun 13 16:38:25 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 13 Jun 2016 16:38:25 +0000 Subject: [Bug 2956] GWT modules are failing to compile under 1.6.0_39 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2956 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://bugzilla.redhat.com | |/show_bug.cgi?id=1334465 --- Comment #20 from Andrew John Hughes --- The original crash was a NullPointerException for which we have a patch and additional bug reports in other databases. So I'd like to use this bug to fix that problem and handle any further issues separately. There were many changes between b38 and b39, and it seems very likely that this would be a completely different issue. It compiles for me without even the first fix, which is what makes this difficult. Did you start with a fresh GWT unzip before trying again? Are you sure the JDK you built works fine? -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at icedtea.classpath.org Tue Jun 14 12:17:26 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Tue, 14 Jun 2016 12:17:26 +0000 Subject: /hg/release/icedtea6-1.13: 5 new changesets Message-ID: changeset 24ce0141709b in /hg/release/icedtea6-1.13 details: http://icedtea.classpath.org/hg/release/icedtea6-1.13?cmd=changeset;node=24ce0141709b author: Andrew John Hughes date: Tue Jun 14 07:56:05 2016 +0100 PR2954: ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java 2016-05-13 Andrew John Hughes PR2954: ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java * NEWS: Updated. * patches/ecj/override.patch: Add cases in RMIJRMPServerImpl and others which show up when source/target 5 is used in the rt-class-files pre-build. * patches/openjdk/8014205-blank_swing_dialogs_windows.patch: Remove addition of @Override. changeset c1f3d7105545 in /hg/release/icedtea6-1.13 details: http://icedtea.classpath.org/hg/release/icedtea6-1.13?cmd=changeset;node=c1f3d7105545 author: Andrew John Hughes date: Tue Jun 14 08:01:03 2016 +0100 S7050826, PR2956, RH1334465: Hebrew characters are not rendered on OEL 5.6 2016-05-16 Andrew John Hughes S7050826, PR2956, RH1334465: Hebrew characters are not rendered on OEL 5.6 * Makefile.am: (ICEDTEA_PATCHES): Add new patch. * NEWS: Updated. * patches/openjdk/7050826-pr2956-allow_type1_fonts.patch: Backport to allow Type 1 fonts to be used with font configurations auto-generated by fontconfig. changeset 2f2e32378389 in /hg/release/icedtea6-1.13 details: http://icedtea.classpath.org/hg/release/icedtea6-1.13?cmd=changeset;node=2f2e32378389 author: Andrew John Hughes date: Tue Jun 14 08:05:43 2016 +0100 PR2961: Latest security update broke bundled LCMS2 build 2016-05-17 Andrew John Hughes PR2961: Latest security update broke bundled LCMS2 build * NEWS: Updated. * patches/openjdk/lcms2/bundled/6523398-writing_tags.patch: Regenerated. changeset 30cfcde89678 in /hg/release/icedtea6-1.13 details: http://icedtea.classpath.org/hg/release/icedtea6-1.13?cmd=changeset;node=30cfcde89678 author: Andrew John Hughes date: Wed May 18 19:05:31 2016 +0100 PR2962: System default check doesn't match all GNU/Linux systems 2016-05-17 Andrew John Hughes PR2962: System default check doesn't match all GNU/Linux systems * NEWS: Updated. * acinclude.m4: (IT_CHECK_FOR_LCMS): Use a similar case statement as in IT_SET_OS_DIRS to determine default based on OS. (IT_CHECK_FOR_JPEG): Likewise. (IT_CHECK_FOR_PNG): Likewise. (IT_CHECK_FOR_GIF): Likewise. changeset dcf569e8e778 in /hg/release/icedtea6-1.13 details: http://icedtea.classpath.org/hg/release/icedtea6-1.13?cmd=changeset;node=dcf569e8e778 author: Andrew John Hughes date: Tue May 24 17:57:12 2016 +0100 PR2969: ENABLE_SYSTEM_LCMS is not defined if ENABLE_LCMS2 is not set 2016-05-24 Andrew John Hughes PR2969: ENABLE_SYSTEM_LCMS is not defined if ENABLE_LCMS2 is not set * NEWS: Updated. * acinclude.m4: (IT_CHECK_FOR_LCMS): Set ENABLE_SYSTEM_LCMS to no if ENABLE_LCMS2 is not set. diffstat: ChangeLog | 53 +++ Makefile.am | 3 +- NEWS | 8 + acinclude.m4 | 65 ++- patches/ecj/override.patch | 237 ++++++++++++++ patches/openjdk/7050826-pr2956-allow_type1_fonts.patch | 31 + patches/openjdk/8014205-blank_swing_dialogs_windows.patch | 3 +- patches/openjdk/lcms2/bundled/6523398-writing_tags.patch | 143 ++++---- 8 files changed, 446 insertions(+), 97 deletions(-) diffs (truncated from 951 to 500 lines): diff -r e54ba13945f0 -r dcf569e8e778 ChangeLog --- a/ChangeLog Sun May 08 21:22:46 2016 +0100 +++ b/ChangeLog Tue May 24 17:57:12 2016 +0100 @@ -1,3 +1,56 @@ +2016-05-24 Andrew John Hughes + + PR2969: ENABLE_SYSTEM_LCMS is not defined + if ENABLE_LCMS2 is not set + * NEWS: Updated. + * acinclude.m4: + (IT_CHECK_FOR_LCMS): Set ENABLE_SYSTEM_LCMS + to no if ENABLE_LCMS2 is not set. + +2016-05-17 Andrew John Hughes + + PR2962: System default check doesn't match all + GNU/Linux systems + * NEWS: Updated. + * acinclude.m4: + (IT_CHECK_FOR_LCMS): Use a similar case statement + as in IT_SET_OS_DIRS to determine default based on OS. + (IT_CHECK_FOR_JPEG): Likewise. + (IT_CHECK_FOR_PNG): Likewise. + (IT_CHECK_FOR_GIF): Likewise. + +2016-05-17 Andrew John Hughes + + PR2961: Latest security update broke bundled + LCMS2 build + * NEWS: + Updated. + * patches/openjdk/lcms2/bundled/6523398-writing_tags.patch: + Regenerated. + +2016-05-16 Andrew John Hughes + + S7050826, PR2956, RH1334465: Hebrew characters + are not rendered on OEL 5.6 + * Makefile.am: + (ICEDTEA_PATCHES): Add new patch. + * NEWS: Updated. + * patches/openjdk/7050826-pr2956-allow_type1_fonts.patch: + Backport to allow Type 1 fonts to be used with + font configurations auto-generated by fontconfig. + +2016-05-13 Andrew John Hughes + + PR2954: ecj/override.patch is missing new + @Overrides in RMIJRMPServerImpl.java + * NEWS: Updated. + * patches/ecj/override.patch: + Add cases in RMIJRMPServerImpl and others + which show up when source/target 5 is + used in the rt-class-files pre-build. + * patches/openjdk/8014205-blank_swing_dialogs_windows.patch: + Remove addition of @Override. + 2016-05-08 Andrew John Hughes * NEWS: Add 1.13.12 section. diff -r e54ba13945f0 -r dcf569e8e778 Makefile.am --- a/Makefile.am Sun May 08 21:22:46 2016 +0100 +++ b/Makefile.am Tue May 24 17:57:12 2016 +0100 @@ -626,7 +626,8 @@ patches/openjdk/8071705-pr2820-menu_misbehaviour.patch \ patches/openjdk/8150954-pr2868-composite_desktop.patch \ patches/pr2890-system_cacerts.patch \ - patches/openjdk/6863746-pr2951-no_ct.sym_in_javap.patch + patches/openjdk/6863746-pr2951-no_ct.sym_in_javap.patch \ + patches/openjdk/7050826-pr2956-allow_type1_fonts.patch if WITH_RHINO ICEDTEA_PATCHES += \ diff -r e54ba13945f0 -r dcf569e8e778 NEWS --- a/NEWS Sun May 08 21:22:46 2016 +0100 +++ b/NEWS Tue May 24 17:57:12 2016 +0100 @@ -14,6 +14,14 @@ New in release 1.13.12 (2016-07-XX): +* Backports + - S7050826, PR2956, RH1334465: Hebrew characters are not rendered on OEL 5.6 +* Bug fixes + - PR2954: ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java + - PR2961: Latest security update broke bundled LCMS2 build + - PR2962: System default check doesn't match all GNU/Linux systems + - PR2969: ENABLE_SYSTEM_LCMS is not defined if ENABLE_LCMS2 is not set + New in release 1.13.11 (2016-05-05): * Security fixes diff -r e54ba13945f0 -r dcf569e8e778 acinclude.m4 --- a/acinclude.m4 Sun May 08 21:22:46 2016 +0100 +++ b/acinclude.m4 Tue May 24 17:57:12 2016 +0100 @@ -1566,10 +1566,17 @@ ENABLE_SYSTEM_LCMS="${enableval}" ], [ - if test x"${ENABLE_LCMS2}" = "xyes" -a x"${target_os}" = "xlinux-gnu" ; then - ENABLE_SYSTEM_LCMS="yes" ; + if test x"${ENABLE_LCMS2}" = "xyes" ; then + case "${target_os}" in + *linux*) + ENABLE_SYSTEM_LCMS="yes" + ;; + *) + ENABLE_SYSTEM_LCMS="no" ; + ;; + esac else - ENABLE_SYSTEM_LCMS="no" ; + ENABLE_SYSTEM_LCMS="no" fi; ]) AC_MSG_RESULT(${ENABLE_SYSTEM_LCMS}) @@ -1596,11 +1603,14 @@ ENABLE_SYSTEM_ZLIB="${enableval}" ], [ - if test x"${target_os}" = "xlinux-gnu"; then - ENABLE_SYSTEM_ZLIB="yes" ; - else - ENABLE_SYSTEM_ZLIB="no" ; - fi + case "${target_os}" in + *linux*) + ENABLE_SYSTEM_ZLIB="yes" + ;; + *) + ENABLE_SYSTEM_ZLIB="no" ; + ;; + esac ]) AC_MSG_RESULT(${ENABLE_SYSTEM_ZLIB}) if test x"${ENABLE_SYSTEM_ZLIB}" = "xyes"; then @@ -1627,11 +1637,14 @@ ENABLE_SYSTEM_JPEG="${enableval}" ], [ - if test x"${target_os}" = "xlinux-gnu"; then - ENABLE_SYSTEM_JPEG="yes" ; - else - ENABLE_SYSTEM_JPEG="no" ; - fi + case "${target_os}" in + *linux*) + ENABLE_SYSTEM_JPEG="yes" + ;; + *) + ENABLE_SYSTEM_JPEG="no" ; + ;; + esac ]) AC_MSG_RESULT(${ENABLE_SYSTEM_JPEG}) if test x"${ENABLE_SYSTEM_JPEG}" = "xyes"; then @@ -1656,11 +1669,14 @@ ENABLE_SYSTEM_PNG="${enableval}" ], [ - if test x"${target_os}" = "xlinux-gnu"; then - ENABLE_SYSTEM_PNG="yes" ; - else - ENABLE_SYSTEM_PNG="no" ; - fi + case "${target_os}" in + *linux*) + ENABLE_SYSTEM_PNG="yes" + ;; + *) + ENABLE_SYSTEM_PNG="no" ; + ;; + esac ]) AC_MSG_RESULT(${ENABLE_SYSTEM_PNG}) if test x"${ENABLE_SYSTEM_PNG}" = "xyes"; then @@ -1686,11 +1702,14 @@ ENABLE_SYSTEM_GIF="${enableval}" ], [ - if test x"${target_os}" = "xlinux-gnu"; then - ENABLE_SYSTEM_GIF="yes" ; - else - ENABLE_SYSTEM_GIF="no" ; - fi + case "${target_os}" in + *linux*) + ENABLE_SYSTEM_GIF="yes" + ;; + *) + ENABLE_SYSTEM_GIF="no" ; + ;; + esac ]) AC_MSG_RESULT(${ENABLE_SYSTEM_GIF}) if test x"${ENABLE_SYSTEM_GIF}" = "xyes"; then diff -r e54ba13945f0 -r dcf569e8e778 patches/ecj/override.patch --- a/patches/ecj/override.patch Sun May 08 21:22:46 2016 +0100 +++ b/patches/ecj/override.patch Tue May 24 17:57:12 2016 +0100 @@ -362,3 +362,240 @@ public Class run() { try { ReflectUtil.checkPackageAccess(className); +diff -r 545db1dd8c2a src/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java +--- openjdk-ecj/jdk/src/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java Thu May 12 01:30:54 2016 +0100 +@@ -1870,7 +1870,6 @@ + + private ModifiableClassLoaderRepository getInstantiatorCLR() { + return AccessController.doPrivileged(new PrivilegedAction() { +- @Override + public ModifiableClassLoaderRepository run() { + return instantiator != null ? instantiator.getClassLoaderRepository() : null; + } +diff -r 545db1dd8c2a src/share/classes/com/sun/media/sound/Platform.java +--- openjdk-ecj/jdk/src/share/classes/com/sun/media/sound/Platform.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/com/sun/media/sound/Platform.java Thu May 12 01:30:54 2016 +0100 +@@ -160,7 +160,6 @@ + try { + // load the main library + AccessController.doPrivileged(new PrivilegedAction() { +- @Override + public Void run() { + System.loadLibrary(libNameMain); + return null; +@@ -182,7 +181,6 @@ + final String lib = st.nextToken(); + try { + AccessController.doPrivileged(new PrivilegedAction() { +- @Override + public Void run() { + System.loadLibrary(lib); + return null; +diff -r 545db1dd8c2a src/share/classes/java/awt/EventQueue.java +--- openjdk-ecj/jdk/src/share/classes/java/awt/EventQueue.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/java/awt/EventQueue.java Thu May 12 01:30:54 2016 +0100 +@@ -190,7 +190,6 @@ + EventQueue.invokeAndWait(source, r); + } + +- @Override + public long getMostRecentEventTime(EventQueue eventQueue) { + return eventQueue.getMostRecentEventTimeImpl(); + } +diff -r 545db1dd8c2a src/share/classes/java/io/ObjectInputStream.java +--- openjdk-ecj/jdk/src/share/classes/java/io/ObjectInputStream.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/java/io/ObjectInputStream.java Thu May 12 01:30:54 2016 +0100 +@@ -3571,7 +3571,6 @@ + } + static { + SharedSecrets.setJavaObjectInputStreamAccess(new JavaObjectInputStreamAccess() { +- @Override + public void setValidator(ObjectInputStream ois, ObjectStreamClassValidator validator) { + ObjectInputStream.setValidator(ois, validator); + } +diff -r 545db1dd8c2a src/share/classes/java/rmi/server/RemoteObjectInvocationHandler.java +--- openjdk-ecj/jdk/src/share/classes/java/rmi/server/RemoteObjectInvocationHandler.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/java/rmi/server/RemoteObjectInvocationHandler.java Thu May 12 01:30:54 2016 +0100 +@@ -64,7 +64,6 @@ + final String propName = "sun.rmi.server.invocationhandler.allowFinalizeInvocation"; + String allowProp = java.security.AccessController.doPrivileged( + new PrivilegedAction() { +- @Override + public String run() { + return System.getProperty(propName); + } +diff -r 545db1dd8c2a src/share/classes/sun/awt/image/SunVolatileImage.java +--- openjdk-ecj/jdk/src/share/classes/sun/awt/image/SunVolatileImage.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/sun/awt/image/SunVolatileImage.java Thu May 12 01:30:54 2016 +0100 +@@ -262,7 +262,6 @@ + * + * @see sun.java2d.DestSurfaceProvider#getDestSurface + */ +- @Override + public Surface getDestSurface() { + return volSurfaceManager.getPrimarySurfaceData(); + } +diff -r 545db1dd8c2a src/share/classes/sun/java2d/SunGraphics2D.java +--- openjdk-ecj/jdk/src/share/classes/sun/java2d/SunGraphics2D.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/sun/java2d/SunGraphics2D.java Thu May 12 01:30:54 2016 +0100 +@@ -3294,7 +3294,6 @@ + * + * @see sun.java2d.DestSurfaceProvider#getDestSurface + */ +- @Override + public Surface getDestSurface() { + return surfaceData; + } +diff -r 545db1dd8c2a src/share/classes/sun/rmi/server/UnicastServerRef.java +--- openjdk-ecj/jdk/src/share/classes/sun/rmi/server/UnicastServerRef.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/sun/rmi/server/UnicastServerRef.java Thu May 12 01:30:54 2016 +0100 +@@ -630,12 +630,10 @@ + this.callID = callID; + } + +- @Override + public void validateDescriptor(ObjectStreamClass descriptor) { + descriptorCheck.check(method, descriptor, parameterIndex, callID); + } + +- @Override + public void checkProxyInterfaceNames(String[] ifaces) { + descriptorCheck.checkProxyClass(method, ifaces, parameterIndex, callID); + } +diff -r 545db1dd8c2a src/share/classes/sun/rmi/transport/Transport.java +--- openjdk-ecj/jdk/src/share/classes/sun/rmi/transport/Transport.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/sun/rmi/transport/Transport.java Thu May 12 01:30:54 2016 +0100 +@@ -133,7 +133,6 @@ + */ + private static void setContextClassLoader(final ClassLoader ccl) { + AccessController.doPrivileged(new PrivilegedAction () { +- @Override + public Void run() { + Thread.currentThread().setContextClassLoader(ccl); + return null; +diff -r 545db1dd8c2a src/share/classes/sun/rmi/transport/tcp/TCPTransport.java +--- openjdk-ecj/jdk/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java Thu May 12 01:30:54 2016 +0100 +@@ -676,7 +676,6 @@ + connectionCount.incrementAndGet() + + ")-" + remoteHost); + AccessController.doPrivileged(new PrivilegedAction() { +- @Override + public Void run() { + run0(); + return null; +diff -r 545db1dd8c2a src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java +--- openjdk-ecj/jdk/src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/solaris/classes/sun/java2d/opengl/GLXGraphicsConfig.java Thu May 12 01:30:54 2016 +0100 +@@ -92,7 +92,6 @@ + return this; + } + +- @Override + public SurfaceData createManagedSurface(int w, int h, int transparency) { + return GLXSurfaceData.createData(this, w, h, + getColorModel(transparency), +@@ -165,12 +164,10 @@ + * Returns true if the provided capability bit is present for this config. + * See OGLContext.java for a list of supported capabilities. + */ +- @Override + public final boolean isCapPresent(int cap) { + return ((oglCaps.getCaps() & cap) != 0); + } + +- @Override + public final long getNativeConfigInfo() { + return pConfigInfo; + } +@@ -180,7 +177,6 @@ + * + * @see sun.java2d.pipe.hw.BufferedContextProvider#getContext + */ +- @Override + public final OGLContext getContext() { + return context; + } +@@ -394,7 +390,6 @@ + * + * @see sun.java2d.pipe.hw.AccelGraphicsConfig#createCompatibleVolatileImage + */ +- @Override + public VolatileImage + createCompatibleVolatileImage(int width, int height, + int transparency, int type) +@@ -434,17 +429,14 @@ + * + * @see sun.java2d.pipe.hw.AccelGraphicsConfig#getContextCapabilities + */ +- @Override + public ContextCapabilities getContextCapabilities() { + return oglCaps; + } + +- @Override + public void addDeviceEventListener(AccelDeviceEventListener l) { + AccelDeviceEventNotifier.addListener(l, screen.getScreen()); + } + +- @Override + public void removeDeviceEventListener(AccelDeviceEventListener l) { + AccelDeviceEventNotifier.removeListener(l); + } +diff -r 545db1dd8c2a src/share/classes/com/sun/jmx/mbeanserver/JmxMBeanServer.java +--- openjdk-ecj/jdk/src/share/classes/com/sun/jmx/mbeanserver/JmxMBeanServer.java Wed May 04 23:23:55 2016 +0100 ++++ openjdk-ecj/jdk/src/share/classes/com/sun/jmx/mbeanserver/JmxMBeanServer.java Thu May 12 01:51:42 2016 +0100 +@@ -236,7 +236,6 @@ + final MBeanInstantiator fInstantiator = instantiator; + this.secureClr = new + SecureClassLoaderRepository(AccessController.doPrivileged(new PrivilegedAction() { +- @Override + public ClassLoaderRepository run() { + return fInstantiator.getClassLoaderRepository(); + } +@@ -1257,7 +1256,6 @@ + ClassLoader myLoader = outerShell.getClass().getClassLoader(); + final ModifiableClassLoaderRepository loaders = AccessController.doPrivileged(new PrivilegedAction() { + +- @Override + public ModifiableClassLoaderRepository run() { + return instantiator.getClassLoaderRepository(); + } +diff -r b72e7b89dda9 src/share/classes/javax/management/remote/rmi/RMIJRMPServerImpl.java +--- openjdk-ecj/jdk/src/share/classes/javax/management/remote/rmi/RMIJRMPServerImpl.java Thu Sep 08 11:00:33 2011 -0700 ++++ openjdk-ecj/jdk/src/share/classes/javax/management/remote/rmi/RMIJRMPServerImpl.java Thu May 12 16:39:37 2016 +0100 +@@ -227,17 +227,14 @@ + allowedTypes = credentialsTypes; + } + +- @Override + public String getVersion() throws RemoteException { + return impl.getVersion(); + } + +- @Override + public RMIConnection newClient(Object credentials) throws IOException { + return impl.newClient(credentials); + } + +- @Override + public void check(Method method, ObjectStreamClass descriptor, + int paramIndex, int callID) { + +@@ -247,7 +244,6 @@ + } + } + +- @Override + public void checkProxyClass(Method method, String[] ifaces, + int paramIndex, int callID) { + if (ifaces != null && ifaces.length > 0) { +@@ -259,7 +255,6 @@ + } + } + +- @Override + public void end(int callID) { + /* Do nothing */ + } diff -r e54ba13945f0 -r dcf569e8e778 patches/openjdk/7050826-pr2956-allow_type1_fonts.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/openjdk/7050826-pr2956-allow_type1_fonts.patch Tue May 24 17:57:12 2016 +0100 @@ -0,0 +1,31 @@ +# HG changeset patch +# User prr +# Date 1315504833 25200 +# Thu Sep 08 11:00:33 2011 -0700 +# Node ID b72e7b89dda933e52d7cfd01baa7559c70be181a +# Parent 545db1dd8c2a70c4cdb633b2e47457c4be051192 +7050826: Hebrew characters are not rendered on OEL 5.6 +Reviewed-by: bae, jgodinez + +diff -r 545db1dd8c2a -r b72e7b89dda9 src/solaris/native/sun/awt/fontpath.c +--- openjdk/jdk/src/solaris/native/sun/awt/fontpath.c Wed May 04 23:23:55 2016 +0100 ++++ openjdk/jdk/src/solaris/native/sun/awt/fontpath.c Thu Sep 08 11:00:33 2011 -0700 +@@ -1259,8 +1259,16 @@ + + fontformat = NULL; + (*FcPatternGetString)(fontPattern, FC_FONTFORMAT, 0, &fontformat); +- if (fontformat != NULL && strcmp((char*)fontformat, "TrueType") +- != 0) { ++ /* We only want TrueType fonts but some Linuxes still depend ++ * on Type 1 fonts for some Locale support, so we'll allow ++ * them there. ++ */ ++ if (fontformat != NULL ++ && (strcmp((char*)fontformat, "TrueType") != 0) ++#ifdef __linux__ ++ && (strcmp((char*)fontformat, "Type 1") != 0) ++#endif ++ ) { + continue; + } + result = (*FcPatternGetCharSet)(fontPattern, diff -r e54ba13945f0 -r dcf569e8e778 patches/openjdk/8014205-blank_swing_dialogs_windows.patch --- a/patches/openjdk/8014205-blank_swing_dialogs_windows.patch Sun May 08 21:22:46 2016 +0100 +++ b/patches/openjdk/8014205-blank_swing_dialogs_windows.patch Tue May 24 17:57:12 2016 +0100 @@ -116,7 +116,7 @@ { if (numBands == 3 && !ccm.hasAlpha()) { imageType = TYPE_3BYTE_BGR; -@@ -804,6 +801,27 @@ +@@ -804,6 +801,26 @@ } // else if ((raster instanceof ByteComponentRaster) && } @@ -129,7 +129,6 @@ + new PrivilegedAction() + { + -+ @Override + public Boolean run() { + final ClassLoader std = System.class.getClassLoader(); + diff -r e54ba13945f0 -r dcf569e8e778 patches/openjdk/lcms2/bundled/6523398-writing_tags.patch --- a/patches/openjdk/lcms2/bundled/6523398-writing_tags.patch Sun May 08 21:22:46 2016 +0100 +++ b/patches/openjdk/lcms2/bundled/6523398-writing_tags.patch Tue May 24 17:57:12 2016 +0100 @@ -1,6 +1,6 @@ diff -Nru openjdk.orig/jdk/src/share/native/sun/java2d/cmm/lcms/cmscam02.c openjdk/jdk/src/share/native/sun/java2d/cmm/lcms/cmscam02.c ---- openjdk.orig/jdk/src/share/native/sun/java2d/cmm/lcms/cmscam02.c 2013-12-06 00:20:25.000000000 +0000 From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 12:17:32 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 12:17:32 +0000 Subject: [Bug 2954] ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2954 --- Comment #6 from hg commits --- details: http://icedtea.classpath.org//hg/release/icedtea6-1.13?cmd=changeset;node=24ce0141709b author: Andrew John Hughes date: Tue Jun 14 07:56:05 2016 +0100 PR2954: ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java 2016-05-13 Andrew John Hughes PR2954: ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java * NEWS: Updated. * patches/ecj/override.patch: Add cases in RMIJRMPServerImpl and others which show up when source/target 5 is used in the rt-class-files pre-build. * patches/openjdk/8014205-blank_swing_dialogs_windows.patch: Remove addition of @Override. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 12:17:38 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 12:17:38 +0000 Subject: [Bug 2956] GWT modules are failing to compile under 1.6.0_39 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2956 --- Comment #21 from hg commits --- details: http://icedtea.classpath.org//hg/release/icedtea6-1.13?cmd=changeset;node=c1f3d7105545 author: Andrew John Hughes date: Tue Jun 14 08:01:03 2016 +0100 S7050826, PR2956, RH1334465: Hebrew characters are not rendered on OEL 5.6 2016-05-16 Andrew John Hughes S7050826, PR2956, RH1334465: Hebrew characters are not rendered on OEL 5.6 * Makefile.am: (ICEDTEA_PATCHES): Add new patch. * NEWS: Updated. * patches/openjdk/7050826-pr2956-allow_type1_fonts.patch: Backport to allow Type 1 fonts to be used with font configurations auto-generated by fontconfig. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 12:17:44 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 12:17:44 +0000 Subject: [Bug 2961] [IcedTea6] Latest security update broke bundled LCMS2 build In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2961 --- Comment #3 from hg commits --- details: http://icedtea.classpath.org//hg/release/icedtea6-1.13?cmd=changeset;node=2f2e32378389 author: Andrew John Hughes date: Tue Jun 14 08:05:43 2016 +0100 PR2961: Latest security update broke bundled LCMS2 build 2016-05-17 Andrew John Hughes PR2961: Latest security update broke bundled LCMS2 build * NEWS: Updated. * patches/openjdk/lcms2/bundled/6523398-writing_tags.patch: Regenerated. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 12:17:49 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 12:17:49 +0000 Subject: [Bug 2962] [IcedTea6] System default check doesn't match all GNU/Linux systems In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2962 --- Comment #2 from hg commits --- details: http://icedtea.classpath.org//hg/release/icedtea6-1.13?cmd=changeset;node=30cfcde89678 author: Andrew John Hughes date: Wed May 18 19:05:31 2016 +0100 PR2962: System default check doesn't match all GNU/Linux systems 2016-05-17 Andrew John Hughes PR2962: System default check doesn't match all GNU/Linux systems * NEWS: Updated. * acinclude.m4: (IT_CHECK_FOR_LCMS): Use a similar case statement as in IT_SET_OS_DIRS to determine default based on OS. (IT_CHECK_FOR_JPEG): Likewise. (IT_CHECK_FOR_PNG): Likewise. (IT_CHECK_FOR_GIF): Likewise. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 12:17:55 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 12:17:55 +0000 Subject: [Bug 2969] [IcedTea6] ENABLE_SYSTEM_LCMS is not defined if ENABLE_LCMS2 is not set In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2969 --- Comment #2 from hg commits --- details: http://icedtea.classpath.org//hg/release/icedtea6-1.13?cmd=changeset;node=dcf569e8e778 author: Andrew John Hughes date: Tue May 24 17:57:12 2016 +0100 PR2969: ENABLE_SYSTEM_LCMS is not defined if ENABLE_LCMS2 is not set 2016-05-24 Andrew John Hughes PR2969: ENABLE_SYSTEM_LCMS is not defined if ENABLE_LCMS2 is not set * NEWS: Updated. * acinclude.m4: (IT_CHECK_FOR_LCMS): Set ENABLE_SYSTEM_LCMS to no if ENABLE_LCMS2 is not set. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:00:44 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:00:44 +0000 Subject: [Bug 2954] ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2954 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Andrew John Hughes --- Fixed in 1.14.0pre and 1.13.12pre. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:01:19 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:01:19 +0000 Subject: [Bug 2956] GWT modules are failing to compile under 1.6.0_39 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2956 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #22 from Andrew John Hughes --- Original issue fixed in 1.14.0pre and 1.13.12pre. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:01:49 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:01:49 +0000 Subject: [Bug 2961] [IcedTea6] Latest security update broke bundled LCMS2 build In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2961 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Andrew John Hughes --- Fixed in 1.14.0pre and 1.13.12pre. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:01:58 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:01:58 +0000 Subject: [Bug 2962] [IcedTea6] System default check doesn't match all GNU/Linux systems In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2962 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Andrew John Hughes --- Fixed in 1.14.0pre and 1.13.12pre. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:01:59 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:01:59 +0000 Subject: [Bug 2969] [IcedTea6] ENABLE_SYSTEM_LCMS is not defined if ENABLE_LCMS2 is not set In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2969 Bug 2969 depends on bug 2962, which changed state. Bug 2962 Summary: [IcedTea6] System default check doesn't match all GNU/Linux systems http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2962 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:02:04 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:02:04 +0000 Subject: [Bug 2969] [IcedTea6] ENABLE_SYSTEM_LCMS is not defined if ENABLE_LCMS2 is not set In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2969 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Andrew John Hughes --- Fixed in 1.14.0pre and 1.13.12pre. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at icedtea.classpath.org Tue Jun 14 18:13:04 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:04 +0000 Subject: /hg/icedtea7-forest/langtools: 4 new changesets Message-ID: changeset 36a608cb4934 in /hg/icedtea7-forest/langtools details: http://icedtea.classpath.org/hg/icedtea7-forest/langtools?cmd=changeset;node=36a608cb4934 author: ksrini date: Wed Dec 07 10:47:46 2011 -0800 7086015, PR3013: fix test/tools/javac/parser/netbeans/JavacParserTest.java Reviewed-by: ksrini, jjg Contributed-by: matherey.nunez at oracle.com changeset 2cf81bc27d18 in /hg/icedtea7-forest/langtools details: http://icedtea.classpath.org/hg/icedtea7-forest/langtools?cmd=changeset;node=2cf81bc27d18 author: ksrini date: Fri Jun 10 18:47:23 2016 +0100 7119487, PR3013: JavacParserTest.java test fails on Windows platforms Reviewed-by: jjg changeset bb8394a66bf7 in /hg/icedtea7-forest/langtools details: http://icedtea.classpath.org/hg/icedtea7-forest/langtools?cmd=changeset;node=bb8394a66bf7 author: ksrini date: Tue Jun 14 00:50:59 2016 +0100 7159445, PR3013: (javac) emits inaccurate diagnostics for enhanced for-loops Reviewed-by: jjg Contributed-by: jan.lahoda at oracle.com changeset bd3480b6d64a in /hg/icedtea7-forest/langtools details: http://icedtea.classpath.org/hg/icedtea7-forest/langtools?cmd=changeset;node=bd3480b6d64a author: mcimadamore date: Tue Jun 14 19:13:29 2016 +0100 8069181, PR3012, RH1015612: java.lang.AssertionError when compiling JDK 1.4 code in JDK 8 Summary: remove erroneous call to modifiersOpt() in variable parsing Reviewed-by: jfranck, jlahoda diffstat: src/share/classes/com/sun/tools/javac/parser/JavacParser.java | 33 +- src/share/classes/com/sun/tools/javac/resources/compiler.properties | 4 + test/tools/javac/diags/examples/ForeachBadInitialization.java | 31 + test/tools/javac/enum/8069181/T8069181.java | 45 + test/tools/javac/parser/JavacParserTest.java | 886 ++++++++++ test/tools/javac/parser/netbeans/JavacParserTest.java | 716 -------- 6 files changed, 987 insertions(+), 728 deletions(-) diffs (truncated from 1760 to 500 lines): diff -r 4bac4ef52aab -r bd3480b6d64a src/share/classes/com/sun/tools/javac/parser/JavacParser.java --- a/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Sun Apr 17 01:21:11 2016 +0100 +++ b/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Tue Jun 14 19:13:29 2016 +0100 @@ -1962,10 +1962,15 @@ } else { JCExpression t = term(EXPR | TYPE); if ((lastmode & TYPE) != 0 && - (S.token() == IDENTIFIER || S.token() == ASSERT || S.token() == ENUM)) - return variableDeclarators(modifiersOpt(), t, stats).toList(); - else + (S.token() == IDENTIFIER || S.token() == ASSERT || + S.token() == ENUM)) { + return variableDeclarators(mods(pos, 0, List.nil()), t, stats).toList(); + } else if ((lastmode & TYPE) != 0 && S.token() == COLON) { + error(pos, "bad.initializer", "for-loop"); + return List.of((JCStatement)F.at(pos).VarDef(null, null, t, null)); + } else { return moreStatementExpressions(pos, t, stats).toList(); + } } } @@ -2057,16 +2062,20 @@ default: break; } - /* A modifiers tree with no modifier tokens or annotations - * has no text position. */ - if ((flags & (Flags.ModifierFlags | Flags.ANNOTATION)) == 0 && annotations.isEmpty()) - pos = Position.NOPOS; + return mods(pos, flags, annotations.toList()); + } + //where + JCModifiers mods(int pos, long flags, List annotations) { + /* A modifiers tree with no modifier tokens or annotations + * has no text position. */ + if ((flags & (Flags.ModifierFlags | Flags.ANNOTATION)) == 0 && annotations.isEmpty()) + pos = Position.NOPOS; - JCModifiers mods = F.at(pos).Modifiers(flags, annotations.toList()); - if (pos != Position.NOPOS) - storeEnd(mods, S.prevEndPos()); - return mods; - } + JCModifiers mods = F.at(pos).Modifiers(flags, annotations); + if (pos != Position.NOPOS) + storeEnd(mods, S.prevEndPos()); + return mods; + } /** Annotation = "@" Qualident [ "(" AnnotationFieldValues ")" ] * @param pos position of "@" token diff -r 4bac4ef52aab -r bd3480b6d64a src/share/classes/com/sun/tools/javac/resources/compiler.properties --- a/src/share/classes/com/sun/tools/javac/resources/compiler.properties Sun Apr 17 01:21:11 2016 +0100 +++ b/src/share/classes/com/sun/tools/javac/resources/compiler.properties Tue Jun 14 19:13:29 2016 +0100 @@ -143,6 +143,10 @@ compiler.err.attribute.value.must.be.constant=\ attribute value must be constant +# 0: statement type +compiler.err.bad.initializer=\ + bad initializer for {0} + compiler.err.break.outside.switch.loop=\ break outside switch or loop diff -r 4bac4ef52aab -r bd3480b6d64a test/tools/javac/diags/examples/ForeachBadInitialization.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/diags/examples/ForeachBadInitialization.java Tue Jun 14 19:13:29 2016 +0100 @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +// key: compiler.err.bad.initializer +import java.util.List; +class ForeachBadInitialization { + void m() { + List s = null; + for (a : s) {} + } +} diff -r 4bac4ef52aab -r bd3480b6d64a test/tools/javac/enum/8069181/T8069181.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/enum/8069181/T8069181.java Tue Jun 14 19:13:29 2016 +0100 @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* + * @test + * @bug 8069181 + * @summary java.lang.AssertionError when compiling JDK 1.4 code in JDK 8 + * + * @compile -source 1.4 T8069181.java + */ +import java.util.Enumeration; +import java.util.Hashtable; +class T8069181 { + void test() { + Hashtable hTable = new Hashtable(); + hTable.put("hello", "value"); + for (Enumeration enum = hTable.keys();;){ + if(!enum.hasMoreElements()) + break; + enum.nextElement(); + } + } +} diff -r 4bac4ef52aab -r bd3480b6d64a test/tools/javac/parser/JavacParserTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/parser/JavacParserTest.java Tue Jun 14 19:13:29 2016 +0100 @@ -0,0 +1,886 @@ +/* + * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* + * @test + * @bug 7073631 7159445 + * @summary tests error and diagnostics positions + * @author Jan Lahoda + */ + +import com.sun.source.tree.BinaryTree; +import com.sun.source.tree.BlockTree; +import com.sun.source.tree.ClassTree; +import com.sun.source.tree.CompilationUnitTree; +import com.sun.source.tree.ErroneousTree; +import com.sun.source.tree.ExpressionStatementTree; +import com.sun.source.tree.ExpressionTree; +import com.sun.source.tree.MethodInvocationTree; +import com.sun.source.tree.MethodTree; +import com.sun.source.tree.ModifiersTree; +import com.sun.source.tree.StatementTree; +import com.sun.source.tree.Tree; +import com.sun.source.tree.Tree.Kind; +import com.sun.source.tree.VariableTree; +import com.sun.source.tree.WhileLoopTree; +import com.sun.source.util.SourcePositions; +import com.sun.source.util.TreeScanner; +import com.sun.source.util.Trees; +import com.sun.tools.javac.api.JavacTaskImpl; +import com.sun.tools.javac.tree.JCTree; +import java.io.IOException; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedList; +import java.util.List; +import javax.tools.Diagnostic; +import javax.tools.DiagnosticCollector; +import javax.tools.DiagnosticListener; +import javax.tools.JavaCompiler; +import javax.tools.JavaFileObject; +import javax.tools.SimpleJavaFileObject; +import javax.tools.ToolProvider; + +public class JavacParserTest extends TestCase { + final JavaCompiler tool; + public JavacParserTest(String testName) { + tool = ToolProvider.getSystemJavaCompiler(); + System.out.println("java.home=" + System.getProperty("java.home")); + } + + static class MyFileObject extends SimpleJavaFileObject { + + private String text; + + public MyFileObject(String text) { + super(URI.create("myfo:/Test.java"), JavaFileObject.Kind.SOURCE); + this.text = text; + } + + @Override + public CharSequence getCharContent(boolean ignoreEncodingErrors) { + return text; + } + } + /* + * converts Windows to Unix style LFs for comparing strings + */ + private String normalize(String in) { + return in.replace(System.getProperty("line.separator"), "\n"); + } + + public CompilationUnitTree getCompilationUnitTree(String code) throws IOException { + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, + null, Arrays.asList(new MyFileObject(code))); + CompilationUnitTree cut = ct.parse().iterator().next(); + return cut; + } + + public List getErroneousTreeValues(ErroneousTree node) { + + List values = new ArrayList<>(); + if (node.getErrorTrees() != null) { + for (Tree t : node.getErrorTrees()) { + values.add(t.toString()); + } + } else { + throw new RuntimeException("ERROR: No Erroneous tree " + + "has been created."); + } + return values; + } + + public void testPositionForSuperConstructorCalls() throws IOException { + assert tool != null; + + String code = "package test; public class Test {public Test() {super();}}"; + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, + null, Arrays.asList(new MyFileObject(code))); + CompilationUnitTree cut = ct.parse().iterator().next(); + SourcePositions pos = Trees.instance(ct).getSourcePositions(); + + MethodTree method = + (MethodTree) ((ClassTree) cut.getTypeDecls().get(0)).getMembers().get(0); + ExpressionStatementTree es = + (ExpressionStatementTree) method.getBody().getStatements().get(0); + + final int esStartPos = code.indexOf(es.toString()); + final int esEndPos = esStartPos + es.toString().length(); + assertEquals("testPositionForSuperConstructorCalls", + esStartPos, pos.getStartPosition(cut, es)); + assertEquals("testPositionForSuperConstructorCalls", + esEndPos, pos.getEndPosition(cut, es)); + + MethodInvocationTree mit = (MethodInvocationTree) es.getExpression(); + + final int mitStartPos = code.indexOf(mit.toString()); + final int mitEndPos = mitStartPos + mit.toString().length(); + assertEquals("testPositionForSuperConstructorCalls", + mitStartPos, pos.getStartPosition(cut, mit)); + assertEquals("testPositionForSuperConstructorCalls", + mitEndPos, pos.getEndPosition(cut, mit)); + + final int methodStartPos = mitStartPos; + final int methodEndPos = methodStartPos + mit.getMethodSelect().toString().length(); + assertEquals("testPositionForSuperConstructorCalls", + methodStartPos, pos.getStartPosition(cut, mit.getMethodSelect())); + assertEquals("testPositionForSuperConstructorCalls", + methodEndPos, pos.getEndPosition(cut, mit.getMethodSelect())); + + } + + public void testPositionForEnumModifiers() throws IOException { + + String code = "package test; public enum Test {A;}"; + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, + null, Arrays.asList(new MyFileObject(code))); + CompilationUnitTree cut = ct.parse().iterator().next(); + SourcePositions pos = Trees.instance(ct).getSourcePositions(); + + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + ModifiersTree mt = clazz.getModifiers(); + + assertEquals("testPositionForEnumModifiers", + 38 - 24, pos.getStartPosition(cut, mt)); + assertEquals("testPositionForEnumModifiers", + 44 - 24, pos.getEndPosition(cut, mt)); + } + + public void testNewClassWithEnclosing() throws IOException { + + + String code = "package test; class Test { " + + "class d {} private void method() { " + + "Object o = Test.this.new d(); } }"; + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, + null, Arrays.asList(new MyFileObject(code))); + CompilationUnitTree cut = ct.parse().iterator().next(); + SourcePositions pos = Trees.instance(ct).getSourcePositions(); + + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + ExpressionTree est = + ((VariableTree) ((MethodTree) clazz.getMembers().get(1)).getBody().getStatements().get(0)).getInitializer(); + + assertEquals("testNewClassWithEnclosing", + 97 - 24, pos.getStartPosition(cut, est)); + assertEquals("testNewClassWithEnclosing", + 114 - 24, pos.getEndPosition(cut, est)); + } + + public void testPreferredPositionForBinaryOp() throws IOException { + + String code = "package test; public class Test {" + + "private void test() {" + + "Object o = null; boolean b = o != null && o instanceof String;" + + "} private Test() {}}"; + + CompilationUnitTree cut = getCompilationUnitTree(code); + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + MethodTree method = (MethodTree) clazz.getMembers().get(0); + VariableTree condSt = (VariableTree) method.getBody().getStatements().get(1); + BinaryTree cond = (BinaryTree) condSt.getInitializer(); + + JCTree condJC = (JCTree) cond; + int condStartPos = code.indexOf("&&"); + assertEquals("testPreferredPositionForBinaryOp", + condStartPos, condJC.pos); + } + + public void testPositionBrokenSource126732a() throws IOException { + String[] commands = new String[]{ + "return Runnable()", + "do { } while (true)", + "throw UnsupportedOperationException()", + "assert true", + "1 + 1",}; + + for (String command : commands) { + + String code = "package test;\n" + + "public class Test {\n" + + " public static void test() {\n" + + " " + command + " {\n" + + " new Runnable() {\n" + + " };\n" + + " }\n" + + "}"; + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, + null, null, Arrays.asList(new MyFileObject(code))); + CompilationUnitTree cut = ct.parse().iterator().next(); + + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + MethodTree method = (MethodTree) clazz.getMembers().get(0); + List statements = + method.getBody().getStatements(); + + StatementTree ret = statements.get(0); + StatementTree block = statements.get(1); + + Trees t = Trees.instance(ct); + int len = code.indexOf(command + " {") + (command + " ").length(); + assertEquals(command, len, + t.getSourcePositions().getEndPosition(cut, ret)); + assertEquals(command, len, + t.getSourcePositions().getStartPosition(cut, block)); + } + } + + public void testPositionBrokenSource126732b() throws IOException { + String[] commands = new String[]{ + "break", + "break A", + "continue ", + "continue A",}; + + for (String command : commands) { + + String code = "package test;\n" + + "public class Test {\n" + + " public static void test() {\n" + + " while (true) {\n" + + " " + command + " {\n" + + " new Runnable() {\n" + + " };\n" + + " }\n" + + " }\n" + + "}"; + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, + null, null, Arrays.asList(new MyFileObject(code))); + CompilationUnitTree cut = ct.parse().iterator().next(); + + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + MethodTree method = (MethodTree) clazz.getMembers().get(0); + List statements = + ((BlockTree) ((WhileLoopTree) method.getBody().getStatements().get(0)).getStatement()).getStatements(); + + StatementTree ret = statements.get(0); + StatementTree block = statements.get(1); + + Trees t = Trees.instance(ct); + int len = code.indexOf(command + " {") + (command + " ").length(); + assertEquals(command, len, + t.getSourcePositions().getEndPosition(cut, ret)); + assertEquals(command, len, + t.getSourcePositions().getStartPosition(cut, block)); + } + } + + public void testErrorRecoveryForEnhancedForLoop142381() throws IOException { + + String code = "package test; class Test { " + + "private void method() { " + + "java.util.Set s = null; for (a : s) {} } }"; + + final List> errors = + new LinkedList>(); + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, + new DiagnosticListener() { + public void report(Diagnostic diagnostic) { + errors.add(diagnostic); + } + }, null, null, Arrays.asList(new MyFileObject(code))); + + CompilationUnitTree cut = ct.parse().iterator().next(); + + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + StatementTree forStatement = + ((MethodTree) clazz.getMembers().get(0)).getBody().getStatements().get(1); + + assertEquals("testErrorRecoveryForEnhancedForLoop142381", + Kind.ENHANCED_FOR_LOOP, forStatement.getKind()); + assertFalse("testErrorRecoveryForEnhancedForLoop142381", errors.isEmpty()); + } + + public void testPositionAnnotationNoPackage187551() throws IOException { + + String code = "\n at interface Test {}"; + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, + null, Arrays.asList(new MyFileObject(code))); + + CompilationUnitTree cut = ct.parse().iterator().next(); + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + Trees t = Trees.instance(ct); + + assertEquals("testPositionAnnotationNoPackage187551", + 1, t.getSourcePositions().getStartPosition(cut, clazz)); + } + + public void testPositionsSane() throws IOException { + performPositionsSanityTest("package test; class Test { " + + "private void method() { " + + "java.util.List> l; " + + "} }"); + performPositionsSanityTest("package test; class Test { " + + "private void method() { " + + "java.util.List> l; " + + "} }"); + performPositionsSanityTest("package test; class Test { " + + "private void method() { " + From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:13:13 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:13 +0000 Subject: [Bug 3013] [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3013 --- Comment #1 from hg commits --- details: http://icedtea.classpath.org//hg/icedtea7-forest/langtools?cmd=changeset;node=36a608cb4934 author: ksrini date: Wed Dec 07 10:47:46 2011 -0800 7086015, PR3013: fix test/tools/javac/parser/netbeans/JavacParserTest.java Reviewed-by: ksrini, jjg Contributed-by: matherey.nunez at oracle.com -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:13:20 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:20 +0000 Subject: [Bug 3013] [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3013 --- Comment #2 from hg commits --- details: http://icedtea.classpath.org//hg/icedtea7-forest/langtools?cmd=changeset;node=2cf81bc27d18 author: ksrini date: Fri Jun 10 18:47:23 2016 +0100 7119487, PR3013: JavacParserTest.java test fails on Windows platforms Reviewed-by: jjg -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:13:24 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:24 +0000 Subject: [Bug 3013] [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3013 --- Comment #3 from hg commits --- details: http://icedtea.classpath.org//hg/icedtea7-forest/langtools?cmd=changeset;node=bb8394a66bf7 author: ksrini date: Tue Jun 14 00:50:59 2016 +0100 7159445, PR3013: (javac) emits inaccurate diagnostics for enhanced for-loops Reviewed-by: jjg Contributed-by: jan.lahoda at oracle.com -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:13:29 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:29 +0000 Subject: [Bug 3012] [IcedTea7] Backport "8069181: java.lang.AssertionError when compiling JDK 1.4 code in JDK 8" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3012 --- Comment #3 from hg commits --- details: http://icedtea.classpath.org//hg/icedtea7-forest/langtools?cmd=changeset;node=bd3480b6d64a author: mcimadamore date: Tue Jun 14 19:13:29 2016 +0100 8069181, PR3012, RH1015612: java.lang.AssertionError when compiling JDK 1.4 code in JDK 8 Summary: remove erroneous call to modifiersOpt() in variable parsing Reviewed-by: jfranck, jlahoda -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at icedtea.classpath.org Tue Jun 14 18:13:36 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:36 +0000 Subject: /hg/icedtea7-forest/hotspot: 2 new changesets Message-ID: changeset a136b8a1ad7a in /hg/icedtea7-forest/hotspot details: http://icedtea.classpath.org/hg/icedtea7-forest/hotspot?cmd=changeset;node=a136b8a1ad7a author: minqi date: Wed Jun 01 19:31:26 2016 +0100 2178143, PR2958: JVM crashes if the number of bound CPUs changed during runtime Summary: Supply a new flag -XX:+AssumeMP to workaround the problem. With the flag is turned on, assume VM run on MP platform so is_MP() will return true that sync calls will not skip away. Reviewed-by: dholmes, acorn, dcubed, jmasa Contributed-by: yumin.qi at oracle.com changeset a778398a0cdb in /hg/icedtea7-forest/hotspot details: http://icedtea.classpath.org/hg/icedtea7-forest/hotspot?cmd=changeset;node=a778398a0cdb author: andrew date: Fri Jun 10 17:51:24 2016 +0100 Merge diffstat: src/cpu/aarch64/vm/aarch64.ad | 14 +++++----- src/cpu/aarch64/vm/assembler_aarch64.cpp | 16 +++++++---- src/cpu/aarch64/vm/globals_aarch64.hpp | 4 -- src/cpu/aarch64/vm/stubGenerator_aarch64.cpp | 39 ++++++++++++++++----------- src/cpu/aarch64/vm/templateTable_aarch64.cpp | 4 +- src/share/vm/runtime/arguments.cpp | 8 +++++ src/share/vm/runtime/globals.hpp | 3 ++ src/share/vm/runtime/os.hpp | 2 +- 8 files changed, 54 insertions(+), 36 deletions(-) diffs (278 lines): diff -r 2d8e12787f80 -r a778398a0cdb src/cpu/aarch64/vm/aarch64.ad --- a/src/cpu/aarch64/vm/aarch64.ad Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/aarch64.ad Fri Jun 10 17:51:24 2016 +0100 @@ -9090,21 +9090,21 @@ %} %} -instruct rolI_rReg_Var_C_32(iRegLNoSp dst, iRegL src, iRegI shift, immI_32 c_32, rFlagsReg cr) +instruct rolI_rReg_Var_C_32(iRegINoSp dst, iRegI src, iRegI shift, immI_32 c_32, rFlagsReg cr) %{ match(Set dst (OrI (LShiftI src shift) (URShiftI src (SubI c_32 shift)))); expand %{ - rolL_rReg(dst, src, shift, cr); - %} -%} - -instruct rolI_rReg_Var_C0(iRegLNoSp dst, iRegL src, iRegI shift, immI0 c0, rFlagsReg cr) + rolI_rReg(dst, src, shift, cr); + %} +%} + +instruct rolI_rReg_Var_C0(iRegINoSp dst, iRegI src, iRegI shift, immI0 c0, rFlagsReg cr) %{ match(Set dst (OrI (LShiftI src shift) (URShiftI src (SubI c0 shift)))); expand %{ - rolL_rReg(dst, src, shift, cr); + rolI_rReg(dst, src, shift, cr); %} %} diff -r 2d8e12787f80 -r a778398a0cdb src/cpu/aarch64/vm/assembler_aarch64.cpp --- a/src/cpu/aarch64/vm/assembler_aarch64.cpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/assembler_aarch64.cpp Fri Jun 10 17:51:24 2016 +0100 @@ -1632,7 +1632,10 @@ Instruction_aarch64::extract(insn2, 4, 0)) { // movk #imm16<<32 Instruction_aarch64::patch(branch + 4, 20, 5, (uint64_t)target >> 32); - offset &= (1<<20)-1; + long dest = ((long)target & 0xffffffffL) | ((long)branch & 0xffff00000000L); + long pc_page = (long)branch >> 12; + long adr_page = (long)dest >> 12; + offset = adr_page - pc_page; instructions = 2; } } @@ -4920,11 +4923,12 @@ if (offset_high >= -(1<<20) && offset_low < (1<<20)) { _adrp(reg1, dest.target()); } else { - unsigned long pc_page = (unsigned long)pc() >> 12; - long offset = dest_page - pc_page; - offset = (offset & ((1<<20)-1)) << 12; - _adrp(reg1, pc()+offset); - movk(reg1, ((unsigned long)dest.target() >> 32), 32); + unsigned long target = (unsigned long)dest.target(); + unsigned long adrp_target + = (target & 0xffffffffUL) | ((unsigned long)pc() & 0xffff00000000UL); + + _adrp(reg1, (address)adrp_target); + movk(reg1, target >> 32, 32); } byte_offset = (unsigned long)dest.target() & 0xfff; } diff -r 2d8e12787f80 -r a778398a0cdb src/cpu/aarch64/vm/globals_aarch64.hpp --- a/src/cpu/aarch64/vm/globals_aarch64.hpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/globals_aarch64.hpp Fri Jun 10 17:51:24 2016 +0100 @@ -48,11 +48,7 @@ // the the vep is aligned at CodeEntryAlignment whereas c2 only aligns // the uep and the vep doesn't get real alignment but just slops on by // only assured that the entry instruction meets the 5 byte size requirement. -#ifdef COMPILER2 define_pd_global(intx, CodeEntryAlignment, 64); -#else -define_pd_global(intx, CodeEntryAlignment, 16); -#endif // COMPILER2 define_pd_global(intx, OptoLoopAlignment, 16); define_pd_global(intx, InlineFrequencyCount, 100); diff -r 2d8e12787f80 -r a778398a0cdb src/cpu/aarch64/vm/stubGenerator_aarch64.cpp --- a/src/cpu/aarch64/vm/stubGenerator_aarch64.cpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/stubGenerator_aarch64.cpp Fri Jun 10 17:51:24 2016 +0100 @@ -687,7 +687,7 @@ // count - element count // tmp - scratch register // - // Destroy no registers! + // Destroy no registers except rscratch1 and rscratch2 // void gen_write_ref_array_pre_barrier(Register addr, Register count, bool dest_uninitialized) { BarrierSet* bs = Universe::heap()->barrier_set(); @@ -696,12 +696,13 @@ case BarrierSet::G1SATBCTLogging: // With G1, don't generate the call if we statically know that the target in uninitialized if (!dest_uninitialized) { - __ push(RegSet::range(r0, r29), sp); // integer registers except lr & sp + __ push_call_clobbered_registers(); if (count == c_rarg0) { if (addr == c_rarg1) { // exactly backwards!! - __ stp(c_rarg0, c_rarg1, __ pre(sp, -2 * wordSize)); - __ ldp(c_rarg1, c_rarg0, __ post(sp, -2 * wordSize)); + __ mov(rscratch1, c_rarg0); + __ mov(c_rarg0, c_rarg1); + __ mov(c_rarg1, rscratch1); } else { __ mov(c_rarg1, count); __ mov(c_rarg0, addr); @@ -711,7 +712,7 @@ __ mov(c_rarg1, count); } __ call_VM_leaf(CAST_FROM_FN_PTR(address, BarrierSet::static_write_ref_array_pre), 2); - __ pop(RegSet::range(r0, r29), sp); // integer registers except lr & sp } + __ pop_call_clobbered_registers(); break; case BarrierSet::CardTableModRef: case BarrierSet::CardTableExtension: @@ -742,7 +743,7 @@ case BarrierSet::G1SATBCTLogging: { - __ push(RegSet::range(r0, r29), sp); // integer registers except lr & sp + __ push_call_clobbered_registers(); // must compute element count unless barrier set interface is changed (other platforms supply count) assert_different_registers(start, end, scratch); __ lea(scratch, Address(end, BytesPerHeapOop)); @@ -751,7 +752,7 @@ __ mov(c_rarg0, start); __ mov(c_rarg1, scratch); __ call_VM_leaf(CAST_FROM_FN_PTR(address, BarrierSet::static_write_ref_array_post), 2); - __ pop(RegSet::range(r0, r29), sp); // integer registers except lr & sp } + __ pop_call_clobbered_registers(); } break; case BarrierSet::CardTableModRef: @@ -811,7 +812,7 @@ assert_different_registers(s, d, count, rscratch1); Label again, large, small; - __ align(6); + __ align(CodeEntryAlignment); __ bind(start); __ cmp(count, 8); __ br(Assembler::LO, small); @@ -856,7 +857,7 @@ __ ret(lr); - __ align(6); + __ align(CodeEntryAlignment); __ bind(large); // Fill 8 registers @@ -1007,7 +1008,8 @@ } // rscratch2 is the byte adjustment needed to align s. __ cbz(rscratch2, aligned); - __ lsr(rscratch2, rscratch2, exact_log2(granularity)); + int shift = exact_log2(granularity); + if (shift) __ lsr(rscratch2, rscratch2, shift); __ sub(count, count, rscratch2); #if 0 @@ -1386,10 +1388,10 @@ // no-overlap entry point used by generate_conjoint_long_oop_copy(). // address generate_disjoint_oop_copy(bool aligned, address *entry, - const char *name, bool dest_uninitialized = false) { + const char *name, bool dest_uninitialized) { const bool is_oop = true; const size_t size = UseCompressedOops ? sizeof (jint) : sizeof (jlong); - return generate_disjoint_copy(size, aligned, is_oop, entry, name); + return generate_disjoint_copy(size, aligned, is_oop, entry, name, dest_uninitialized); } // Arguments: @@ -1404,10 +1406,11 @@ // address generate_conjoint_oop_copy(bool aligned, address nooverlap_target, address *entry, - const char *name, bool dest_uninitialized = false) { + const char *name, bool dest_uninitialized) { const bool is_oop = true; const size_t size = UseCompressedOops ? sizeof (jint) : sizeof (jlong); - return generate_conjoint_copy(size, aligned, is_oop, nooverlap_target, entry, name); + return generate_conjoint_copy(size, aligned, is_oop, nooverlap_target, entry, + name, dest_uninitialized); } @@ -1514,6 +1517,8 @@ } #endif //ASSERT + gen_write_ref_array_pre_barrier(to, count, dest_uninitialized); + // save the original count __ mov(count_save, count); @@ -1655,9 +1660,11 @@ bool aligned = !UseCompressedOops; StubRoutines::_arrayof_oop_disjoint_arraycopy - = generate_disjoint_oop_copy(aligned, &entry, "arrayof_oop_disjoint_arraycopy"); + = generate_disjoint_oop_copy(aligned, &entry, "arrayof_oop_disjoint_arraycopy", + /*dest_uninitialized*/false); StubRoutines::_arrayof_oop_arraycopy - = generate_conjoint_oop_copy(aligned, entry, &entry_oop_arraycopy, "arrayof_oop_arraycopy"); + = generate_conjoint_oop_copy(aligned, entry, &entry_oop_arraycopy, "arrayof_oop_arraycopy", + /*dest_uninitialized*/false); // Aligned versions without pre-barriers StubRoutines::_arrayof_oop_disjoint_arraycopy_uninit = generate_disjoint_oop_copy(aligned, &entry, "arrayof_oop_disjoint_arraycopy_uninit", diff -r 2d8e12787f80 -r a778398a0cdb src/cpu/aarch64/vm/templateTable_aarch64.cpp --- a/src/cpu/aarch64/vm/templateTable_aarch64.cpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/cpu/aarch64/vm/templateTable_aarch64.cpp Fri Jun 10 17:51:24 2016 +0100 @@ -3032,7 +3032,7 @@ __ null_check(r0); switch (state) { case itos: - __ ldr(r0, Address(r0, r1, Address::lsl(0))); + __ ldrw(r0, Address(r0, r1, Address::lsl(0))); break; case atos: __ load_heap_oop(r0, Address(r0, r1, Address::lsl(0))); @@ -3052,7 +3052,7 @@ __ ldrw(r3, Address(r2, in_bytes(constantPoolCacheOopDesc::base_offset() + ConstantPoolCacheEntry::flags_offset()))); __ tbz(r3, ConstantPoolCacheEntry::is_volatile_shift, notVolatile); - __ membar(MacroAssembler::LoadLoad); + __ membar(MacroAssembler::LoadLoad | MacroAssembler::LoadStore); __ bind(notVolatile); } diff -r 2d8e12787f80 -r a778398a0cdb src/share/vm/runtime/arguments.cpp --- a/src/share/vm/runtime/arguments.cpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/share/vm/runtime/arguments.cpp Fri Jun 10 17:51:24 2016 +0100 @@ -3473,6 +3473,14 @@ set_g1_gc_flags(); } + if (AssumeMP && !UseSerialGC) { + if (FLAG_IS_DEFAULT(ParallelGCThreads) && ParallelGCThreads == 1) { + warning("If the number of processors is expected to increase from one, then" + " you should configure the number of parallel GC threads appropriately" + " using -XX:ParallelGCThreads=N"); + } + } + #ifdef SERIALGC assert(verify_serial_gc_flags(), "SerialGC unset"); #endif // SERIALGC diff -r 2d8e12787f80 -r a778398a0cdb src/share/vm/runtime/globals.hpp --- a/src/share/vm/runtime/globals.hpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/share/vm/runtime/globals.hpp Fri Jun 10 17:51:24 2016 +0100 @@ -480,6 +480,9 @@ lp64_product(intx, ObjectAlignmentInBytes, 8, \ "Default object alignment in bytes, 8 is minimum") \ \ + product(bool, AssumeMP, false, \ + "Instruct the VM to assume multiple processors are available") \ + \ /* UseMembar is theoretically a temp flag used for memory barrier \ * removal testing. It was supposed to be removed before FCS but has \ * been re-added (see 6401008) */ \ diff -r 2d8e12787f80 -r a778398a0cdb src/share/vm/runtime/os.hpp --- a/src/share/vm/runtime/os.hpp Tue Apr 19 19:52:39 2016 -0700 +++ b/src/share/vm/runtime/os.hpp Fri Jun 10 17:51:24 2016 +0100 @@ -198,7 +198,7 @@ // Interface for detecting multiprocessor system static inline bool is_MP() { assert(_processor_count > 0, "invalid processor count"); - return _processor_count > 1; + return _processor_count > 1 || AssumeMP; } static julong available_memory(); static julong physical_memory(); From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:13:43 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:43 +0000 Subject: [Bug 2958] [IcedTea7] Backport "2178143: JVM crashes if the number of bound CPUs changed during runtime" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2958 --- Comment #1 from hg commits --- details: http://icedtea.classpath.org//hg/icedtea7-forest/hotspot?cmd=changeset;node=a136b8a1ad7a author: minqi date: Wed Jun 01 19:31:26 2016 +0100 2178143, PR2958: JVM crashes if the number of bound CPUs changed during runtime Summary: Supply a new flag -XX:+AssumeMP to workaround the problem. With the flag is turned on, assume VM run on MP platform so is_MP() will return true that sync calls will not skip away. Reviewed-by: dholmes, acorn, dcubed, jmasa Contributed-by: yumin.qi at oracle.com -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at icedtea.classpath.org Tue Jun 14 18:13:49 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:49 +0000 Subject: /hg/icedtea7-forest/jdk: PR2900: Don't use WithSeed versions of ... Message-ID: changeset 0e51300bbf46 in /hg/icedtea7-forest/jdk details: http://icedtea.classpath.org/hg/icedtea7-forest/jdk?cmd=changeset;node=0e51300bbf46 author: andrew date: Fri May 27 03:58:28 2016 +0100 PR2900: Don't use WithSeed versions of NSS functions as they don't fully process the seed Summary: Initialise the random number generator and feed the seed to it. diffstat: src/share/native/sun/security/ec/ECC_JNI.cpp | 23 +++++++++++++++++++++++ src/share/native/sun/security/ec/ecc_impl.h | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) diffs (81 lines): diff -r 8477a30c1924 -r 0e51300bbf46 src/share/native/sun/security/ec/ECC_JNI.cpp --- a/src/share/native/sun/security/ec/ECC_JNI.cpp Sun Apr 17 01:21:07 2016 +0100 +++ b/src/share/native/sun/security/ec/ECC_JNI.cpp Fri May 27 03:58:28 2016 +0100 @@ -134,8 +134,17 @@ env->GetByteArrayRegion(seed, 0, jSeedLength, pSeedBuffer); // Generate the new keypair (using the supplied seed) +#ifdef SYSTEM_NSS + if (RNG_RandomUpdate((unsigned char *) pSeedBuffer, jSeedLength) + != SECSuccess) { + ThrowException(env, KEY_EXCEPTION); + goto cleanup; + } + if (EC_NewKey(ecparams, &privKey) != SECSuccess) { +#else if (EC_NewKey(ecparams, &privKey, (unsigned char *) pSeedBuffer, jSeedLength, 0) != SECSuccess) { +#endif ThrowException(env, KEY_EXCEPTION); goto cleanup; } @@ -269,8 +278,18 @@ env->GetByteArrayRegion(seed, 0, jSeedLength, pSeedBuffer); // Sign the digest (using the supplied seed) +#ifdef SYSTEM_NSS + if (RNG_RandomUpdate((unsigned char *) pSeedBuffer, jSeedLength) + != SECSuccess) { + ThrowException(env, KEY_EXCEPTION); + goto cleanup; + } + if (ECDSA_SignDigest(&privKey, &signature_item, &digest_item) + != SECSuccess) { +#else if (ECDSA_SignDigest(&privKey, &signature_item, &digest_item, (unsigned char *) pSeedBuffer, jSeedLength, 0) != SECSuccess) { +#endif ThrowException(env, KEY_EXCEPTION); goto cleanup; } @@ -506,6 +525,9 @@ if (SECOID_Init() != SECSuccess) { ThrowException(env, INTERNAL_ERROR); } + if (RNG_RNGInit() != SECSuccess) { + ThrowException(env, INTERNAL_ERROR); + } #endif } @@ -514,6 +536,7 @@ (JNIEnv *env, jclass UNUSED(clazz)) { #ifdef SYSTEM_NSS + RNG_RNGShutdown(); if (SECOID_Shutdown() != SECSuccess) { ThrowException(env, INTERNAL_ERROR); } diff -r 8477a30c1924 -r 0e51300bbf46 src/share/native/sun/security/ec/ecc_impl.h --- a/src/share/native/sun/security/ec/ecc_impl.h Sun Apr 17 01:21:07 2016 +0100 +++ b/src/share/native/sun/security/ec/ecc_impl.h Fri May 27 03:58:28 2016 +0100 @@ -254,8 +254,10 @@ This function is no longer required because the random bytes are now supplied by the caller. Force a failure. */ +#ifndef SYSTEM_NSS #define RNG_GenerateGlobalRandomBytes(p,l) SECFailure #endif +#endif #define CHECK_MPI_OK(func) if (MP_OKAY > (err = func)) goto cleanup #define MP_TO_SEC_ERROR(err) @@ -267,8 +269,6 @@ #ifdef SYSTEM_NSS #define EC_DecodeParams(a,b,c) EC_DecodeParams(a,b) -#define EC_NewKey(a,b,c,d,e) EC_NewKeyFromSeed(a,b,c,d) -#define ECDSA_SignDigest(a,b,c,d,e,f) ECDSA_SignDigestWithSeed(a,b,c,d,e) #define ECDSA_VerifyDigest(a,b,c,d) ECDSA_VerifyDigest(a,b,c) #define ECDH_Derive(a,b,c,d,e,f) ECDH_Derive(a,b,c,d,e) #else From bugzilla-daemon at icedtea.classpath.org Tue Jun 14 18:13:54 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 14 Jun 2016 18:13:54 +0000 Subject: [Bug 2900] [IcedTea7] Don't use WithSeed versions of NSS functions as they don't fully process the seed In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2900 --- Comment #3 from hg commits --- details: http://icedtea.classpath.org//hg/icedtea7-forest/jdk?cmd=changeset;node=0e51300bbf46 author: andrew date: Fri May 27 03:58:28 2016 +0100 PR2900: Don't use WithSeed versions of NSS functions as they don't fully process the seed Summary: Initialise the random number generator and feed the seed to it. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 15 02:10:58 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 15 Jun 2016 02:10:58 +0000 Subject: [Bug 3020] New: [IcedTea7] ImageIO crashes (core dumped) while reading many image files Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3020 Bug ID: 3020 Summary: [IcedTea7] ImageIO crashes (core dumped) while reading many image files Product: IcedTea Version: 2.6.6 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org I was able to reproduce the issue in bug 1896 on Ubuntu's IcedTea 2.6.6 running: - the integrated lcms library (disable-system-lcms) - lcms 2.5 and 2.6 system library (enable-system-lcms) For some reason that I haven't been able to track down yet it does depend on the JPEG file under test - a initial sample I grabbed from the internet ran just fine, only when I tested it against bunch grabbed from `locate .jpg` was I able to reproduce it. I haven't tested it against 3.x, but OpenJDK 8u91 runs just fine when using the same lcms 2.6 so I would expect similar results. Let me know if hs_err and/or core files would be of any help, as well as running it against an upstream IcedTea build (Ubuntu does not patch anything related to lcms). Started a few testes after an Ubuntu user reported running into this issue (https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/913434). -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 15 02:12:27 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 15 Jun 2016 02:12:27 +0000 Subject: [Bug 1896] [IcedTea7] vm crashes on IMAGEIO.read multithreaded / liblcms2-2 In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1896 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #22 from Andrew John Hughes --- The in-tree version of LCMS 2 has been updated to 2.7. There's nothing we can do about distros using an old system version. They need to either update it or use the in-tree version. As this bug was used to ship the update to 2.7 in IcedTea 2.6.2, I'm re-closing it and handling Tiago's issue under a new bug, bug 3020. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 15 02:32:47 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 15 Jun 2016 02:32:47 +0000 Subject: [Bug 3020] [IcedTea7] ImageIO crashes (core dumped) while reading many image files In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3020 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Andrew John Hughes --- Crash from Tiago's reproducer looks like this: Stack: [0x00007f69b2aeb000,0x00007f69b2bec000], sp=0x00007f69b2be9a80, free space=1018k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libjavalcms.so+0x14d11] j sun.java2d.cmm.lcms.LCMS.createNativeTransform([JIIILjava/lang/Object;)J+0 j sun.java2d.cmm.lcms.LCMSTransform.doTransform(Lsun/java2d/cmm/lcms/LCMSImageLayout;Lsun/java2d/cmm/lcms/LCMSImageLayout;)V+\ 88 j sun.java2d.cmm.lcms.LCMSTransform.colorConvert([S[S)[S+92 j java.awt.color.ICC_ColorSpace.fromRGB([F)[F+119 j com.sun.imageio.plugins.jpeg.JPEGImageReader.setImageData(IIIII[B)V+158 v ~StubRoutines::call_stub or Stack: [0x00007f22a0c2e000,0x00007f22a0d2f000], sp=0x00007f22a0d2bb10, free space=1014k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libjavalcms.so+0x1524c] C [libjavalcms.so+0x1564a] C [libjavalcms.so+0x38062] Java_sun_java2d_cmm_lcms_LCMS_getTagData+0x112 j sun.java2d.cmm.lcms.LCMS.getTagData(JI[B)V+0 j java.awt.color.ICC_Profile.getData(JI)[B+26 j java.awt.color.ICC_Profile.getData(I)[B+14 j java.awt.color.ICC_Profile.getNumComponents()I+18 j sun.java2d.cmm.lcms.LCMSTransform.(Ljava/awt/color/ICC_Profile;II)V+83 j sun.java2d.cmm.lcms.LCMS.createTransform(Ljava/awt/color/ICC_Profile;II)Lsun/java2d/cmm/ColorTransform;+7 j java.awt.color.ICC_ColorSpace.fromRGB([F)[F+37 j com.sun.imageio.plugins.jpeg.JPEGImageReader.setImageData(IIIII[B)V+158 v ~StubRoutines::call_stub https://bugs.openjdk.java.net/browse/JDK-8026780 looks like it might be relevant, so will backport. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 15 02:34:57 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 15 Jun 2016 02:34:57 +0000 Subject: [Bug 3020] [IcedTea7] ImageIO crashes (core dumped) while reading many image files In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3020 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.6.7 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 15 13:55:39 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 15 Jun 2016 13:55:39 +0000 Subject: [Bug 2038] Performance impacting tracker bug In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2038 Bug 2038 depends on bug 2037, which changed state. Bug 2037 Summary: Thread count view queries all summaries for the last hour, every second. http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at icedtea.classpath.org Thu Jun 23 03:18:50 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Thu, 23 Jun 2016 03:18:50 +0000 Subject: /hg/icedtea8-forest/jdk: 4 new changesets Message-ID: changeset 897a897cb013 in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=897a897cb013 author: azvegint date: Tue Aug 11 16:32:13 2015 +0300 8014212, PR2866: Robot captures black screen Reviewed-by: alexsch, serb changeset bcbe8ae204f8 in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=bcbe8ae204f8 author: ssadetsky date: Mon Oct 05 15:13:14 2015 +0300 8058959, PR1061: closed/java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java failed automatically Reviewed-by: alexsch, serb changeset 57da769e0949 in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=57da769e0949 author: serb date: Tue Jun 21 03:37:57 2016 +0100 6778087, PR1061: getLocationOnScreen() always returns (0, 0) for mouse wheel events Reviewed-by: alexsch, azvegint changeset 954f8b3a950a in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=954f8b3a950a author: alexsch date: Thu Jul 30 12:40:45 2015 +0400 8132123, PR1061: MultiResolutionCachedImage unnecessarily creates base image to get its size Reviewed-by: serb diffstat: src/macosx/classes/sun/lwawt/LWWindowPeer.java | 25 +- src/macosx/classes/sun/lwawt/PlatformEventNotifier.java | 12 +- src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java | 12 +- src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java | 24 +- src/macosx/classes/sun/lwawt/macosx/CPlatformView.java | 11 +- src/macosx/classes/sun/lwawt/macosx/CWarningWindow.java | 11 +- src/share/classes/sun/awt/image/MultiResolutionCachedImage.java | 11 +- src/solaris/classes/sun/awt/X11/XDecoratedPeer.java | 4 +- src/solaris/native/sun/awt/awt_Robot.c | 84 ++++--- src/solaris/native/sun/awt/gtk2_interface.c | 7 +- src/solaris/native/sun/awt/gtk2_interface.h | 9 + src/windows/native/sun/windows/awt_Component.cpp | 6 +- test/java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java | 15 +- test/java/awt/Mouse/MouseWheelAbsXY/MouseWheelAbsXY.java | 92 ++++++++ test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java | 6 +- test/java/awt/image/multiresolution/MultiResolutionCachedImageTest.java | 113 ++++++++++ test/javax/swing/JComponent/6683775/bug6683775.java | 48 ++-- test/javax/swing/JSplitPane/8132123/bug8132123.html | 38 +++ test/javax/swing/JSplitPane/8132123/bug8132123.java | 51 ++++ 19 files changed, 454 insertions(+), 125 deletions(-) diffs (truncated from 995 to 500 lines): diff -r 794541fbbdc3 -r 954f8b3a950a src/macosx/classes/sun/lwawt/LWWindowPeer.java --- a/src/macosx/classes/sun/lwawt/LWWindowPeer.java Fri May 27 03:28:35 2016 +0100 +++ b/src/macosx/classes/sun/lwawt/LWWindowPeer.java Thu Jul 30 12:40:45 2015 +0400 @@ -708,7 +708,7 @@ */ @Override public void notifyMouseEvent(int id, long when, int button, - int x, int y, int screenX, int screenY, + int x, int y, int absX, int absY, int modifiers, int clickCount, boolean popupTrigger, byte[] bdata) { @@ -725,7 +725,7 @@ this); Component target = lastMouseEventPeer.getTarget(); postMouseExitedEvent(target, when, modifiers, lp, - screenX, screenY, clickCount, popupTrigger, button); + absX, absY, clickCount, popupTrigger, button); } // Sometimes we may get MOUSE_EXITED after lastCommonMouseEventPeer is switched @@ -743,7 +743,7 @@ Point lp = targetPeer.windowToLocal(x, y, this); Component target = targetPeer.getTarget(); postMouseEnteredEvent(target, when, modifiers, lp, - screenX, screenY, clickCount, popupTrigger, button); + absX, absY, clickCount, popupTrigger, button); } lastCommonMouseEventPeer = targetPeer; lastMouseEventPeer = targetPeer; @@ -761,13 +761,13 @@ // implemented in CPlatformEmbeddedFrame class if (topmostWindowPeer == this || topmostWindowPeer == null) { generateMouseEnterExitEventsForComponents(when, button, x, y, - screenX, screenY, modifiers, clickCount, popupTrigger, + absX, absY, modifiers, clickCount, popupTrigger, targetPeer); } else { LWComponentPeer topmostTargetPeer = topmostWindowPeer != null ? topmostWindowPeer.findPeerAt(r.x + x, r.y + y) : null; topmostWindowPeer.generateMouseEnterExitEventsForComponents(when, button, x, y, - screenX, screenY, modifiers, clickCount, popupTrigger, + absX, absY, modifiers, clickCount, popupTrigger, topmostTargetPeer); } @@ -838,7 +838,7 @@ if (targetPeer.isEnabled()) { MouseEvent event = new MouseEvent(targetPeer.getTarget(), id, when, modifiers, lp.x, lp.y, - screenX, screenY, clickCount, + absX, absY, clickCount, popupTrigger, button); postEvent(event); } @@ -849,7 +849,7 @@ postEvent(new MouseEvent(targetPeer.getTarget(), MouseEvent.MOUSE_CLICKED, when, modifiers, - lp.x, lp.y, screenX, screenY, + lp.x, lp.y, absX, absY, clickCount, popupTrigger, button)); } mouseClickButtons &= ~eventButtonMask; @@ -912,10 +912,10 @@ } @Override - public void notifyMouseWheelEvent(long when, int x, int y, int modifiers, - int scrollType, int scrollAmount, - int wheelRotation, double preciseWheelRotation, - byte[] bdata) + public void notifyMouseWheelEvent(long when, int x, int y, int absX, + int absY, int modifiers, int scrollType, + int scrollAmount, int wheelRotation, + double preciseWheelRotation, byte[] bdata) { // TODO: could we just use the last mouse event target here? Rectangle r = getBounds(); @@ -927,12 +927,11 @@ Point lp = targetPeer.windowToLocal(x, y, this); // TODO: fill "bdata" member of AWTEvent - // TODO: screenX/screenY postEvent(new MouseWheelEvent(targetPeer.getTarget(), MouseEvent.MOUSE_WHEEL, when, modifiers, lp.x, lp.y, - 0, 0, /* screenX, Y */ + absX, absY, /* absX, absY */ 0 /* clickCount */, false /* popupTrigger */, scrollType, scrollAmount, wheelRotation, preciseWheelRotation)); diff -r 794541fbbdc3 -r 954f8b3a950a src/macosx/classes/sun/lwawt/PlatformEventNotifier.java --- a/src/macosx/classes/sun/lwawt/PlatformEventNotifier.java Fri May 27 03:28:35 2016 +0100 +++ b/src/macosx/classes/sun/lwawt/PlatformEventNotifier.java Thu Jul 30 12:40:45 2015 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -49,14 +49,14 @@ * point of the client area is (insets.top, insets.left). */ void notifyMouseEvent(int id, long when, int button, - int x, int y, int screenX, int screenY, + int x, int y, int absX, int absY, int modifiers, int clickCount, boolean popupTrigger, byte[] bdata); - void notifyMouseWheelEvent(long when, int x, int y, int modifiers, - int scrollType, int scrollAmount, - int wheelRotation, double preciseWheelRotation, - byte[] bdata); + void notifyMouseWheelEvent(long when, int x, int y, final int absX, + final int absY, int modifiers, int scrollType, + int scrollAmount, int wheelRotation, + double preciseWheelRotation, byte[] bdata); /* * Called by the delegate when a key is pressed. */ diff -r 794541fbbdc3 -r 954f8b3a950a src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java --- a/src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java Fri May 27 03:28:35 2016 +0100 +++ b/src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java Thu Jul 30 12:40:45 2015 +0400 @@ -73,8 +73,8 @@ int x = (int)pluginX; int y = (int)pluginY; Point locationOnScreen = getLocationOnScreen(); - int screenX = locationOnScreen.x + x; - int screenY = locationOnScreen.y + y; + int absX = locationOnScreen.x + x; + int absY = locationOnScreen.y + y; if (eventType == CocoaConstants.NPCocoaEventMouseEntered) { CCursorManager.nativeSetAllowsCursorSetInBackground(true); @@ -83,15 +83,19 @@ } responder.handleMouseEvent(eventType, modifierFlags, buttonNumber, - clickCount, x, y, screenX, screenY); + clickCount, x, y, absX, absY); } public void handleScrollEvent(double pluginX, double pluginY, int modifierFlags, double deltaX, double deltaY, double deltaZ) { int x = (int)pluginX; int y = (int)pluginY; + Point locationOnScreen = getLocationOnScreen(); + int absX = locationOnScreen.x + x; + int absY = locationOnScreen.y + y; - responder.handleScrollEvent(x, y, modifierFlags, deltaX, deltaY); + responder.handleScrollEvent(x, y, absX, absY, modifierFlags, deltaX, + deltaY); } public void handleKeyEvent(int eventType, int modifierFlags, String characters, diff -r 794541fbbdc3 -r 954f8b3a950a src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java --- a/src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java Fri May 27 03:28:35 2016 +0100 +++ b/src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java Thu Jul 30 12:40:45 2015 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -54,8 +54,7 @@ * Handles mouse events. */ void handleMouseEvent(int eventType, int modifierFlags, int buttonNumber, - int clickCount, int x, int y, int absoluteX, - int absoluteY) { + int clickCount, int x, int y, int absX, int absY) { final SunToolkit tk = (SunToolkit)Toolkit.getDefaultToolkit(); if ((buttonNumber > 2 && !tk.areExtraMouseButtonsEnabled()) || buttonNumber > tk.getNumberOfButtons() - 1) { @@ -81,14 +80,15 @@ boolean jpopupTrigger = NSEvent.isPopupTrigger(jmodifiers); eventNotifier.notifyMouseEvent(jeventType, System.currentTimeMillis(), jbuttonNumber, - x, y, absoluteX, absoluteY, jmodifiers, jclickCount, + x, y, absX, absY, jmodifiers, jclickCount, jpopupTrigger, null); } /** * Handles scroll events. */ - void handleScrollEvent(final int x, final int y, final int modifierFlags, + void handleScrollEvent(final int x, final int y, final int absX, + final int absY, final int modifierFlags, final double deltaX, final double deltaY) { final int buttonNumber = CocoaConstants.kCGMouseButtonCenter; int jmodifiers = NSEvent.nsToJavaMouseModifiers(buttonNumber, @@ -97,18 +97,19 @@ // Vertical scroll. if (!isShift && deltaY != 0.0) { - dispatchScrollEvent(x, y, jmodifiers, deltaY); + dispatchScrollEvent(x, y, absX, absY, jmodifiers, deltaY); } // Horizontal scroll or shirt+vertical scroll. final double delta = isShift && deltaY != 0.0 ? deltaY : deltaX; if (delta != 0.0) { jmodifiers |= InputEvent.SHIFT_DOWN_MASK; - dispatchScrollEvent(x, y, jmodifiers, delta); + dispatchScrollEvent(x, y, absX, absY, jmodifiers, delta); } } - private void dispatchScrollEvent(final int x, final int y, - final int modifiers, final double delta) { + private void dispatchScrollEvent(final int x, final int y, final int absX, + final int absY, final int modifiers, + final double delta) { final long when = System.currentTimeMillis(); final int scrollType = MouseWheelEvent.WHEEL_UNIT_SCROLL; final int scrollAmount = 1; @@ -118,8 +119,9 @@ wheelRotation = signum; } // invert the wheelRotation for the peer - eventNotifier.notifyMouseWheelEvent(when, x, y, modifiers, scrollType, - scrollAmount, -wheelRotation, -delta, null); + eventNotifier.notifyMouseWheelEvent(when, x, y, absX, absY, modifiers, + scrollType, scrollAmount, + -wheelRotation, -delta, null); } /** diff -r 794541fbbdc3 -r 954f8b3a950a src/macosx/classes/sun/lwawt/macosx/CPlatformView.java --- a/src/macosx/classes/sun/lwawt/macosx/CPlatformView.java Fri May 27 03:28:35 2016 +0100 +++ b/src/macosx/classes/sun/lwawt/macosx/CPlatformView.java Thu Jul 30 12:40:45 2015 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -186,16 +186,19 @@ } - private void deliverMouseEvent(NSEvent event) { + private void deliverMouseEvent(final NSEvent event) { int x = event.getX(); int y = getBounds().height - event.getY(); + int absX = event.getAbsX(); + int absY = event.getAbsY(); if (event.getType() == CocoaConstants.NSScrollWheel) { - responder.handleScrollEvent(x, y, event.getModifierFlags(), + responder.handleScrollEvent(x, y, absX, absY, event.getModifierFlags(), event.getScrollDeltaX(), event.getScrollDeltaY()); } else { responder.handleMouseEvent(event.getType(), event.getModifierFlags(), event.getButtonNumber(), - event.getClickCount(), x, y, event.getAbsX(), event.getAbsY()); + event.getClickCount(), x, y, + absX, absY); } } diff -r 794541fbbdc3 -r 954f8b3a950a src/macosx/classes/sun/lwawt/macosx/CWarningWindow.java --- a/src/macosx/classes/sun/lwawt/macosx/CWarningWindow.java Fri May 27 03:28:35 2016 +0100 +++ b/src/macosx/classes/sun/lwawt/macosx/CWarningWindow.java Thu Jul 30 12:40:45 2015 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -188,7 +188,7 @@ @Override public void notifyMouseEvent(int id, long when, int button, int x, int y, - int screenX, int screenY, int modifiers, + int absX, int absY, int modifiers, int clickCount, boolean popupTrigger, byte[] bdata) { LWWindowPeer peer = ownerPeer.get(); @@ -254,9 +254,10 @@ } @Override - public void notifyMouseWheelEvent(long when, int x, int y, int modifiers, - int scrollType, int scrollAmount, - int wheelRotation, double preciseWheelRotation, + public void notifyMouseWheelEvent(long when, int x, int y, int absX, + int absY, int modifiers, int scrollType, + int scrollAmount, int wheelRotation, + double preciseWheelRotation, byte[] bdata) { } diff -r 794541fbbdc3 -r 954f8b3a950a src/share/classes/sun/awt/image/MultiResolutionCachedImage.java --- a/src/share/classes/sun/awt/image/MultiResolutionCachedImage.java Fri May 27 03:28:35 2016 +0100 +++ b/src/share/classes/sun/awt/image/MultiResolutionCachedImage.java Thu Jul 30 12:40:45 2015 +0400 @@ -86,19 +86,24 @@ @Override public int getWidth(ImageObserver observer) { updateInfo(observer, ImageObserver.WIDTH); - return super.getWidth(observer); + return baseImageWidth; } @Override public int getHeight(ImageObserver observer) { updateInfo(observer, ImageObserver.HEIGHT); - return super.getHeight(observer); + return baseImageHeight; } @Override public Object getProperty(String name, ImageObserver observer) { updateInfo(observer, ImageObserver.PROPERTIES); - return super.getProperty(name, observer); + return Image.UndefinedProperty; + } + + @Override + public Image getScaledInstance(int width, int height, int hints) { + return getResolutionVariant(width, height); } @Override diff -r 794541fbbdc3 -r 954f8b3a950a src/solaris/classes/sun/awt/X11/XDecoratedPeer.java --- a/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java Fri May 27 03:28:35 2016 +0100 +++ b/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java Thu Jul 30 12:40:45 2015 +0400 @@ -792,8 +792,8 @@ XToolkit.awtLock(); try { updateSizeHints(rec.x, rec.y, rec.width, rec.height); - XlibWrapper.XResizeWindow(XToolkit.getDisplay(), getShell(), rec.width, rec.height); - XlibWrapper.XMoveWindow(XToolkit.getDisplay(), getShell(), rec.x, rec.y); + XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), getShell(), + rec.x, rec.y, rec.width, rec.height); } finally { XToolkit.awtUnlock(); diff -r 794541fbbdc3 -r 954f8b3a950a src/solaris/native/sun/awt/awt_Robot.c --- a/src/solaris/native/sun/awt/awt_Robot.c Fri May 27 03:28:35 2016 +0100 +++ b/src/solaris/native/sun/awt/awt_Robot.c Thu Jul 30 12:40:45 2015 +0400 @@ -231,33 +231,30 @@ Java_sun_awt_X11_XRobotPeer_getRGBPixelsImpl( JNIEnv *env, jclass cls, jobject xgc, - jint x, - jint y, - jint width, - jint height, + jint jx, + jint jy, + jint jwidth, + jint jheight, jintArray pixelArray) { - XImage *image; jint *ary; /* Array of jints for sending pixel values back * to parent process. */ Window rootWindow; + XWindowAttributes attr; AwtGraphicsConfigDataPtr adata; - DTRACE_PRINTLN6("RobotPeer: getRGBPixelsImpl(%lx, %d, %d, %d, %d, %x)", xgc, x, y, width, height, pixelArray); + DTRACE_PRINTLN6("RobotPeer: getRGBPixelsImpl(%lx, %d, %d, %d, %d, %x)", xgc, jx, jy, jwidth, jheight, pixelArray); - AWT_LOCK(); - - /* avoid a lot of work for empty rectangles */ - if ((width * height) == 0) { - AWT_UNLOCK(); + if (jwidth <= 0 || jheight <= 0) { return; } - DASSERT(width * height > 0); /* only allow positive size */ adata = (AwtGraphicsConfigDataPtr) JNU_GetLongFieldAsPtr(env, xgc, x11GraphicsConfigIDs.aData); DASSERT(adata != NULL); + AWT_LOCK(); + rootWindow = XRootWindow(awt_display, adata->awt_visInfo.screen); if (isXCompositeDisplay(awt_display, adata->awt_visInfo.screen) && hasXCompositeOverlayExtension(awt_display)) @@ -265,35 +262,54 @@ rootWindow = XCompositeGetOverlayWindow(awt_display, rootWindow); } + if (!XGetWindowAttributes(awt_display, rootWindow, &attr) + || jx + jwidth <= attr.x + || attr.x + attr.width <= jx + || jy + jheight <= attr.y + || attr.y + attr.height <= jy) { + + AWT_UNLOCK(); + return; // Does not intersect with root window + } + + jint _x, _y; + jint x = MAX(jx, attr.x); + jint y = MAX(jy, attr.y); + jint width = MIN(jx + jwidth, attr.x + attr.width) - x; + jint height = MIN(jy + jheight, attr.y + attr.height) - y; + + + int dx = attr.x > jx ? attr.x - jx : 0; + int dy = attr.y > jy ? attr.y - jy : 0; + + int index; + image = getWindowImage(awt_display, rootWindow, x, y, width, height); - /* Array to use to crunch around the pixel values */ - if (!IS_SAFE_SIZE_MUL(width, height) || - !(ary = (jint *) SAFE_SIZE_ARRAY_ALLOC(malloc, width * height, sizeof (jint)))) - { - JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError"); - XDestroyImage(image); - AWT_UNLOCK(); - return; + ary = (*env)->GetPrimitiveArrayCritical(env, pixelArray, NULL); + + if (!ary) { + XDestroyImage(image); + AWT_UNLOCK(); + return; } + /* convert to Java ARGB pixels */ - for (y = 0; y < height; y++) { - for (x = 0; x < width; x++) { - jint pixel = (jint) XGetPixel(image, x, y); /* Note ignore upper - * 32-bits on 64-bit - * OSes. - */ + for (_y = 0; _y < height; _y++) { + for (_x = 0; _x < width; _x++) { + jint pixel = (jint) XGetPixel(image, _x, _y); /* Note ignore upper + * 32-bits on 64-bit + * OSes. + */ + pixel |= 0xff000000; /* alpha - full opacity */ - pixel |= 0xff000000; /* alpha - full opacity */ - - ary[(y * width) + x] = pixel; - } + index = (_y + dy) * jwidth + (_x + dx); + ary[index] = pixel; + } } - (*env)->SetIntArrayRegion(env, pixelArray, 0, height * width, ary); - free(ary); - + XDestroyImage(image); - + (*env)->ReleasePrimitiveArrayCritical(env, pixelArray, ary, 0); AWT_UNLOCK(); } diff -r 794541fbbdc3 -r 954f8b3a950a src/solaris/native/sun/awt/gtk2_interface.c --- a/src/solaris/native/sun/awt/gtk2_interface.c Fri May 27 03:28:35 2016 +0100 +++ b/src/solaris/native/sun/awt/gtk2_interface.c Thu Jul 30 12:40:45 2015 +0400 @@ -203,9 +203,6 @@ gint, gint, gint, gint); static GdkPixbuf *(*fp_gdk_pixbuf_new)(GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int width, int height); -static GdkPixbuf *(*fp_gdk_pixbuf_get_from_drawable)(GdkPixbuf *dest, - GdkDrawable *src, GdkColormap *cmap, int src_x, int src_y, - int dest_x, int dest_y, int width, int height); static void (*fp_gdk_drawable_get_size)(GdkDrawable *drawable, gint* width, gint* height); @@ -645,6 +642,8 @@ fp_g_object_set = dl_symbol("g_object_set"); /* GDK */ + fp_gdk_get_default_root_window = + dl_symbol("gdk_get_default_root_window"); fp_gdk_pixmap_new = dl_symbol("gdk_pixmap_new"); fp_gdk_pixbuf_get_from_drawable = dl_symbol("gdk_pixbuf_get_from_drawable"); @@ -669,6 +668,8 @@ dl_symbol("gdk_pixbuf_get_bits_per_sample"); fp_gdk_pixbuf_get_n_channels = dl_symbol("gdk_pixbuf_get_n_channels"); + fp_gdk_pixbuf_get_colorspace = + dl_symbol("gdk_pixbuf_get_colorspace"); /* GTK painting */ fp_gtk_init_check = dl_symbol("gtk_init_check"); diff -r 794541fbbdc3 -r 954f8b3a950a src/solaris/native/sun/awt/gtk2_interface.h --- a/src/solaris/native/sun/awt/gtk2_interface.h Fri May 27 03:28:35 2016 +0100 From bugzilla-daemon at icedtea.classpath.org Thu Jun 23 03:18:59 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 23 Jun 2016 03:18:59 +0000 Subject: [Bug 2866] [IcedTea8] Taking screenshots on x11 composite desktop produces wrong result In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2866 --- Comment #10 from hg commits --- details: http://icedtea.classpath.org//hg/icedtea8-forest/jdk?cmd=changeset;node=897a897cb013 author: azvegint date: Tue Aug 11 16:32:13 2015 +0300 8014212, PR2866: Robot captures black screen Reviewed-by: alexsch, serb -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvanek at redhat.com Mon Jun 27 09:32:14 2016 From: jvanek at redhat.com (Jiri Vanek) Date: Mon, 27 Jun 2016 11:32:14 +0200 Subject: Icetea exception In-Reply-To: <574702E0020000BB00060FB2@oes-grpwise.novell.upei.ca> References: <574702E0020000BB00060FB2@oes-grpwise.novell.upei.ca> Message-ID: On 05/26/2016 07:06 PM, Cezar Campeanu wrote: > Hi, > > > > I can't provide link as this is a IP Intranet D-Link DCS 920 camera. A > similar message is for Trendnet TV-IP422W camera. It worked before, but > after upgrading it does not work any more. See below a partial message. After upgrading of what to what? > For this kind of applets(hardware built-in), we should be able to > override any security protection. Without reproducer I can hardly debug it. From looking into stack trace, few options are rising: > > Thanks, > Cezar > > > net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could > not initialize applet. For more information click "more information > button". Not found all resources, not declared main class, ivalid jnlp, network outage, corrutped cache... > > Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization > Error: Unknown Main-Class. Could not determine the main class for this > application. Actually the same as above > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701) > > Caused by: java.lang.ClassNotFoundException: Could not find class > ultracam Still the same issues - Main class - entry point of your applet was not found. > > at > > Caused by: java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: ultracam > And still the same, only with additional info that main lcass should be named ultracam. The java.security.PrivilegedActionException: seems to indicate that teh issue is casued by uidate from systemj dk 7 to system jdk8, but not for sure. General hints: - try to run the applet in offline mode (-Xoffline) - try to run the applet without any security restrictions (-nosecurity) - try to force run over http instead of https - try to remove /.config/icedtea-web/.appletTrustSettings - via itweb-settings -> extended applets security : try to set security level to Low - if above fails, try to clear cache and run it again (only the off-line maybe skipped as all off-line resources were already deleted) (-Xclearcache) You can try to run the applet (and so with above switches) as javaws -html -..switches.. http://your.applets/page.html Or set the variables for plugin: itweb-settings -> jvmsettings -> jvm arguments for plugin Also you may next time try the complete log from terminal when run with --verbose switch or from icedtea-web's console, which you can access from error dialogue. (but in this case I'm not sure if it will help much more) J. From gitne at gmx.de Mon Jun 27 13:26:16 2016 From: gitne at gmx.de (Jacob Wisor) Date: Mon, 27 Jun 2016 15:26:16 +0200 Subject: Icetea exception In-Reply-To: <574702E0020000BB00060FB2@oes-grpwise.novell.upei.ca> References: <574702E0020000BB00060FB2@oes-grpwise.novell.upei.ca> Message-ID: <57712978.1040304@gmx.de> Hello Cezar, to me this looks like either the JNLP file or the HTML page on the camera's internal web server has been incorrectly authored. I suppose that the applet's main class identifier has not been specified with a fully qualified name or the supposedly fully qualified name has a syntax error. Anyhow, can you post the HTML page and/or JNLP file from that camera? Thank you and good luck! Jacob On 05/26/2016 at 07:06 PM Cezar Campeanu wrote: > Hi, > > > > I can't provide link as this is a IP Intranet D-Link DCS 920 camera. A > similar message is for Trendnet TV-IP422W camera. It worked before, but > after upgrading it does not work any more. See below a partial message. > For this kind of applets(hardware built-in), we should be able to > override any security protection. > > Thanks, > Cezar > > > > Exception was: > > net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could > not initialize applet. For more information click "more information > button". > > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764) > > at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686) > > at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933) > > Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization > Error: Unknown Main-Class. Could not determine the main class for this > application. > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701) > > at net.sourceforge.jnlp.runtime.JNLPClassLoader. > (JNLPClassLoader.java:285) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403) > > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729) > > ... 2 more > > Caused by: java.lang.ClassNotFoundException: Could not find class > ultracam > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698) > > ... 7 more > > Caused by: java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: ultracam > > at java.security.AccessController.doPrivileged(Native Method) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520) > > ... 10 more > > Caused by: java.lang.ClassNotFoundException: ultracam > > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523) > > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521) > > ... 12 more > > This is the list of exceptions that occurred launching your applet. > Please note, those exceptions can originate from multiple applets. For a > helpful bug report, be sure to run only one applet. From gitne at gmx.de Mon Jun 27 15:49:41 2016 From: gitne at gmx.de (Jacob Wisor) Date: Mon, 27 Jun 2016 17:49:41 +0200 Subject: Icetea exception In-Reply-To: <94b1241a707fd16a6b02bc22c9dab818.squirrel@sun11.math.upei.ca> References: <574702E0020000BB00060FB2@oes-grpwise.novell.upei.ca> <57712978.1040304@gmx.de> <94b1241a707fd16a6b02bc22c9dab818.squirrel@sun11.math.upei.ca> Message-ID: <57714B15.9070407@gmx.de> Hello Cezar, Bingo! Like I have assumed. The OBJECT element in the HTML document has been authored incorrectly. Look here: > classid = "clsid:CAFEEFAC-0015-0000-0012-ABCDEFFEDCBA" > codebase = "http://java.sun.com/update/1.5.0/jinstall-1_5_0_12-windows-i586.cab#Version=5,0,120,4" > WIDTH = "640" HEIGHT = "480" NAME = "ucx" > > First, "class" is a reserved keyword in the Java programming language and therefore must not be a package name. Second, the ultracam class has not been specified with its fully qualified name. The VALUE attribute of the PARAM element must state the fully qualified name of the applet's main class. > > > > > > > > > > type = "application/x-java-applet" \ > CODE = "ultracam.class" \ Essentially, the same applies here too. > ARCHIVE = "ultracam.jar" \ > NAME = "ucx" \ > WIDTH = "640" \ > HEIGHT = "480" \ > accountcode ="YWRtaW46emd1cmFUTnc=" / \ > codebase ="http://10.1.1.1:80/admin" / \ > mode ="0" / \ > scriptable = false > pluginspage = "http://java.sun.com/products/plugin/index.html#download"> > > > > > > So, what can you do now? a) You should report this bug do the camera vendor and wait for a firmware update. b) In the meantime, you can download the ultracam.jar JAR file, find the fully qualified name of the ultracam class, put it into the HTML document and launch it from your local computer. There is nothing IcedTea-Web developers can do here. Regards, Jacob On 06/27/2016 at 05:15 PM Cezar C?mpeanu wrote: > Hi Jacob, > > I am attaching the html source(provided by the camera webserver) and I > include below the error console. > Thanks, > Cezar > > IcedTea-Web Plugin version: 1.6.2 (mageia-1.mga5-x86_64) > Mon Jun 27 12:13:13 ADT 2016 > net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could > not initialize applet. For more information click "more information > button". > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764) > at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686) > at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933) > Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization > Error: Unknown Main-Class. Could not determine the main class for this > application. > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:285) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403) > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729) > ... 2 more > Caused by: java.lang.ClassNotFoundException: Could not find class ultracam > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698) > ... 7 more > Caused by: java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: ultracam > at java.security.AccessController.doPrivileged(Native Method) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520) > ... 10 more > Caused by: java.lang.ClassNotFoundException: ultracam > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521) > ... 12 more > > Chain: > 1) at Mon Jun 27 11:56:07 ADT 2016 > net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown > Main-Class. Could not determine the main class for this application. > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:285) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403) > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729) > at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686) > at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933) > Caused by: java.lang.ClassNotFoundException: Could not find class ultracam > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698) > ... 7 more > Caused by: java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: ultracam > at java.security.AccessController.doPrivileged(Native Method) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520) > ... 10 more > Caused by: java.lang.ClassNotFoundException: ultracam > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521) > ... 12 more > 2) at Mon Jun 27 11:56:07 ADT 2016 > net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could > not initialize applet. For more information click "more information > button". > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764) > at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686) > at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933) > Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization > Error: Unknown Main-Class. Could not determine the main class for this > application. > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:285) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403) > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729) > ... 2 more > Caused by: java.lang.ClassNotFoundException: Could not find class ultracam > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698) > ... 7 more > Caused by: java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: ultracam > at java.security.AccessController.doPrivileged(Native Method) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520) > ... 10 more > Caused by: java.lang.ClassNotFoundException: ultracam > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521) > ... 12 more > 3) at Mon Jun 27 12:13:08 ADT 2016 > net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown > Main-Class. Could not determine the main class for this application. > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:285) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403) > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729) > at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686) > at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933) > Caused by: java.lang.ClassNotFoundException: Could not find class ultracam > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698) > ... 7 more > Caused by: java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: ultracam > at java.security.AccessController.doPrivileged(Native Method) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520) > ... 10 more > Caused by: java.lang.ClassNotFoundException: ultracam > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521) > ... 12 more > 4) at Mon Jun 27 12:13:08 ADT 2016 > net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could > not initialize applet. For more information click "more information > button". > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764) > at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686) > at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933) > Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization > Error: Unknown Main-Class. Could not determine the main class for this > application. > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:285) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403) > at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729) > ... 2 more > Caused by: java.lang.ClassNotFoundException: Could not find class ultracam > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698) > ... 7 more > Caused by: java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: ultracam > at java.security.AccessController.doPrivileged(Native Method) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520) > ... 10 more > Caused by: java.lang.ClassNotFoundException: ultracam > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523) > at > net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521) > ... 12 more > > > > Hello Cezar, >> >> to me this looks like either the JNLP file or the HTML page on the >> camera's >> internal web server has been incorrectly authored. I suppose that the >> applet's >> main class identifier has not been specified with a fully qualified name >> or the >> supposedly fully qualified name has a syntax error. >> Anyhow, can you post the HTML page and/or JNLP file from that camera? >> >> Thank you and good luck! >> >> Jacob >> >> On 05/26/2016 at 07:06 PM Cezar Campeanu wrote: >>> Hi, >>> >>> >>> >>> I can't provide link as this is a IP Intranet D-Link DCS 920 camera. A >>> similar message is for Trendnet TV-IP422W camera. It worked before, but >>> after upgrading it does not work any more. See below a partial message. >>> For this kind of applets(hardware built-in), we should be able to >>> override any security protection. >>> >>> Thanks, >>> Cezar >>> >>> >>> >>> Exception was: >>> >>> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could >>> not initialize applet. For more information click "more information >>> button". >>> >>> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764) >>> >>> at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686) >>> >>> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933) >>> >>> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization >>> Error: Unknown Main-Class. Could not determine the main class for this >>> application. >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701) >>> >>> at net.sourceforge.jnlp.runtime.JNLPClassLoader. >>> (JNLPClassLoader.java:285) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403) >>> >>> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729) >>> >>> ... 2 more >>> >>> Caused by: java.lang.ClassNotFoundException: Could not find class >>> ultracam >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698) >>> >>> ... 7 more >>> >>> Caused by: java.security.PrivilegedActionException: >>> java.lang.ClassNotFoundException: ultracam >>> >>> at java.security.AccessController.doPrivileged(Native Method) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520) >>> >>> ... 10 more >>> >>> Caused by: java.lang.ClassNotFoundException: ultracam >>> >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523) >>> >>> at >>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521) >>> >>> ... 12 more >>> >>> This is the list of exceptions that occurred launching your applet. >>> Please note, those exceptions can originate from multiple applets. For a >>> helpful bug report, be sure to run only one applet. From bugzilla-daemon at icedtea.classpath.org Mon Jun 27 16:00:53 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 27 Jun 2016 16:00:53 +0000 Subject: [Bug 3054] New: Intermittent NPE on launch causes agent to fail to pickup jvms Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3054 Bug ID: 3054 Summary: Intermittent NPE on launch causes agent to fail to pickup jvms Product: Thermostat Version: hg Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P5 Component: Thermostat Assignee: unassigned at icedtea.classpath.org Reporter: jkang at redhat.com CC: thermostat at icedtea.classpath.org Sometimes when launching thermostat local/web-storage/web-storage-service there is an NPE in the logs and no jvms can be seen in the gui apart from the local/web-storage/webstorage-service jvm. This has been seen in 1.4 (from dnf install on F23), 1.6 (repo) and HEAD (1.99.x repo). Exception in thread "Timer-1" java.lang.NullPointerException at com.redhat.thermostat.thread.harvester.ThreadHarvester.updateHarvestingStatus(ThreadHarvester.java:198) at com.redhat.thermostat.thread.harvester.ThreadHarvester.addThreadHarvestingStatus(ThreadHarvester.java:189) at com.redhat.thermostat.thread.harvester.ThreadBackend.vmStatusChanged(ThreadBackend.java:122) at com.redhat.thermostat.backend.system.VmStatusChangeNotifier.notifyVmStatusChange(VmStatusChangeNotifier.java:125) at com.redhat.thermostat.backend.system.JvmStatHostListener.sendNewVM(JvmStatHostListener.java:142) at com.redhat.thermostat.backend.system.JvmStatHostListener.vmStatusChanged(JvmStatHostListener.java:103) at sun.jvmstat.perfdata.monitor.protocol.local.MonitoredHostProvider.fireVmStatusChangedEvents(MonitoredHostProvider.java:177) at sun.jvmstat.perfdata.monitor.protocol.local.MonitoredHostProvider.access$300(MonitoredHostProvider.java:41) at sun.jvmstat.perfdata.monitor.protocol.local.MonitoredHostProvider$NotifierTask.run(MonitoredHostProvider.java:218) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) It looks like a timing issue where the DAO is still null when attempted to be used at: com.redhat.thermostat.thread.harvester.ThreadHarvester.updateHarvestingStatus(ThreadHarvester.java:198) -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvanek at redhat.com Tue Jun 28 07:23:56 2016 From: jvanek at redhat.com (Jiri Vanek) Date: Tue, 28 Jun 2016 09:23:56 +0200 Subject: Icetea exception In-Reply-To: <57714B15.9070407@gmx.de> References: <574702E0020000BB00060FB2@oes-grpwise.novell.upei.ca> <57712978.1040304@gmx.de> <94b1241a707fd16a6b02bc22c9dab818.squirrel@sun11.math.upei.ca> <57714B15.9070407@gmx.de> Message-ID: On 06/27/2016 05:49 PM, Jacob Wisor wrote: Hi Jacob! Where have you get this file? > > Bingo! Like I have assumed. The OBJECT element in the HTML document has been authored incorrectly. > Look here: > >> > classid = "clsid:CAFEEFAC-0015-0000-0012-ABCDEFFEDCBA" >> codebase = >> "http://java.sun.com/update/1.5.0/jinstall-1_5_0_12-windows-i586.cab#Version=5,0,120,4" >> WIDTH = "640" HEIGHT = "480" NAME = "ucx" > >> > > First, "class" is a reserved keyword in the Java programming language and therefore must not be a > package name. Second, the ultracam class has not been specified with its fully qualified name. The > VALUE attribute of the PARAM element must state the fully qualified name of the applet's main class. The ultracam class may stand in default package. > >> >> >> > "application/x-java-applet;jpi-version=1.5.0_12"> >> >> >> >> >> >> >> > type = "application/x-java-applet" \ >> CODE = "ultracam.class" \ > > Essentially, the same applies here too. > >> ARCHIVE = "ultracam.jar" \ >> NAME = "ucx" \ >> WIDTH = "640" \ >> HEIGHT = "480" \ >> accountcode ="YWRtaW46emd1cmFUTnc=" / \ >> codebase ="http://10.1.1.1:80/admin" / \ >> mode ="0" / \ >> scriptable = false >> pluginspage = >> "http://java.sun.com/products/plugin/index.html#download"> >> >> >> >> >> >> > > So, what can you do now? a) You should report this bug do the camera vendor and wait for a firmware Its hardly to happen:( > update. b) In the meantime, you can download the ultracam.jar JAR file, find the fully qualified > name of the ultracam class, put it into the HTML document and launch it from your local computer. I doubt it will work like this. The jar should run on device where it is doing the job for the ITW user. But to follow this advice - you can check the communication between the cam and browser/javaws --html and remove .class on the fly > There is nothing IcedTea-Web developers can do here. > Actually - this is reported as regression. I guess 1.5 was previous ITW on his box. Why it was working? So maybe add stripping of .class is the bugfx to go? Jacob - thank you very much for investigations. *really* thanx! J. From bugzilla-daemon at icedtea.classpath.org Tue Jun 28 21:27:54 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 28 Jun 2016 21:27:54 +0000 Subject: [Bug 3060] New: [1.6] Stopping Profiling does not always stop the loading bar in GUI Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3060 Bug ID: 3060 Summary: [1.6] Stopping Profiling does not always stop the loading bar in GUI Product: Thermostat Version: 1.6.x-snapshot Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: gui Assignee: unassigned at icedtea.classpath.org Reporter: jkang at redhat.com CC: thermostat at icedtea.classpath.org The loading bar in the bottom-right corner of the gui continually shows "Stopping Profiling" even though it looks to have finished; the data can be seen in the list/table. Inconsistent Reproducer: 1. Profile the GUI (it takes a while for the profiler to start) 2. Wait a minute after profiling has started 3. Stop profiling 4. Wait and observe the data appears in the view and can be seen as normal but the loading bar continues to show "Stopping Profiling" Expected: Once stopping completes the loading bar no longer shows "Stopping Profiling" Actual: Stopping completes but the loading bar remains. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 14:29:55 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 14:29:55 +0000 Subject: [Bug 1437] [regression] utility "jar" changes file permissions In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED URL| |https://bugzilla.redhat.com | |/show_bug.cgi?id=1207129 Resolution|WONTFIX |--- Target Milestone|--- |2.6.6 --- Comment #2 from Andrew John Hughes --- Re-opening: $ /usr/lib/jvm/icedtea-7/bin/java UpdateJar [OWNER_WRITE, OWNER_READ, OTHERS_READ, GROUP_READ] not equal to [OWNER_WRITE, OWNER_READ] java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1365) at UpdateJar.fail(UpdateJar.java:75) at UpdateJar.fail(UpdateJar.java:76) at UpdateJar.equal(UpdateJar.java:81) at UpdateJar.realMain(UpdateJar.java:65) at UpdateJar.main(UpdateJar.java:83) Passed = 0 failed = 1 Exception in thread "main" java.lang.AssertionError: Some tests failed at UpdateJar.main(UpdateJar.java:85) -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 16:39:37 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 16:39:37 +0000 Subject: [Bug 3066] New: [IcedTea8] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3066 Bug ID: 3066 Summary: [IcedTea8] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" Product: IcedTea Version: 8-hg Hardware: all OS: All Status: NEW Severity: enhancement Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org Make the caret blink rate in Swing match that used in Gtk+. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 16:40:09 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 16:40:09 +0000 Subject: [Bug 1740] [TRACKER] IcedTea 3.1.0 Release In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1740 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |3066 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 16:40:09 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 16:40:09 +0000 Subject: [Bug 3066] [IcedTea8] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3066 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED URL| |https://bugs.openjdk.java.n | |et/browse/JDK-6260348 Blocks| |1740 Target Milestone|--- |3.1.0 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 16:40:36 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 16:40:36 +0000 Subject: [Bug 3066] [IcedTea8] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3066 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1061 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 16:41:44 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 16:41:44 +0000 Subject: [Bug 3067] New: [IcedTea7] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3067 Bug ID: 3067 Summary: [IcedTea7] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" Product: IcedTea Version: 7-hg Hardware: all OS: All Status: NEW Severity: enhancement Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org Clone of bug 3066. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 16:41:59 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 16:41:59 +0000 Subject: [Bug 3067] [IcedTea7] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3067 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Target Milestone|--- |2.6.7 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 16:42:45 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 16:42:45 +0000 Subject: [Bug 3068] New: [IcedTea6] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3068 Bug ID: 3068 Summary: [IcedTea6] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" Product: IcedTea Version: 6-hg Hardware: all OS: All Status: NEW Severity: enhancement Priority: P5 Component: IcedTea Assignee: gnu.andrew at redhat.com Reporter: gnu.andrew at redhat.com CC: unassigned at icedtea.classpath.org Clone of bug 3066. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 16:43:01 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 16:43:01 +0000 Subject: [Bug 3068] [IcedTea6] Backport "6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3068 Andrew John Hughes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Target Milestone|--- |6-1.13.12 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 18:12:32 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 18:12:32 +0000 Subject: [Bug 3054] Intermittent NPE on launch causes agent to fail to pickup jvms In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3054 --- Comment #1 from hg commits --- details: http://icedtea.classpath.org//hg/thermostat?cmd=changeset;node=63bce745b7e4 author: Jie Kang date: Wed Jun 29 12:23:33 2016 -0400 Fix registration of thread backends. PR3054 Reviewed-by: neugens Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2016-June/020013.html -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at icedtea.classpath.org Wed Jun 29 18:14:22 2016 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 29 Jun 2016 18:14:22 +0000 Subject: [Bug 3054] Intermittent NPE on launch causes agent to fail to pickup jvms In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3054 Jie Kang changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Jie Kang --- Resolved as fixed. See commit above. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at icedtea.classpath.org Thu Jun 30 02:20:24 2016 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Thu, 30 Jun 2016 02:20:24 +0000 Subject: /hg/icedtea8-forest/jdk: 7 new changesets Message-ID: changeset d512cab27ec8 in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=d512cab27ec8 author: yan date: Thu Jun 23 17:44:14 2016 +0100 8133539, PR1061: [TEST_BUG] Split java/awt/image/MultiResolutionImageTest.java in two to allow restricted access Reviewed-by: alexsch, serb Contributed-by: Renjith Alexander changeset bea91f8444b8 in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=bea91f8444b8 author: alexsch date: Wed Apr 22 13:46:03 2015 +0400 8069361, PR1061: SunGraphics2D.getDefaultTransform() does not include scale factor Reviewed-by: flar, prr, serb changeset 8e8854357890 in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=8e8854357890 author: alexsch date: Mon Jun 27 19:36:44 2016 +0100 8029339, PR1061: Custom MultiResolution image support on HiDPI displays Reviewed-by: flar, serb changeset a56192255ebc in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=a56192255ebc author: alexsch date: Tue Jun 28 04:05:50 2016 +0100 8073320, PR1061: Windows HiDPI Graphics support Reviewed-by: flar, serb changeset d0462c26152f in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=d0462c26152f author: alexsch date: Tue Jun 28 19:44:50 2016 +0100 8137571, PR1061: Linux HiDPI Graphics support Reviewed-by: flar, serb changeset 9fffaa63c49d in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=9fffaa63c49d author: ssadetsky date: Wed Jun 29 18:09:29 2016 +0100 6260348, PR3066: GTK+ L&F JTextComponent not respecting desktop caret blink rate Reviewed-by: alexsch, azvegint changeset f65aa11c1f04 in /hg/icedtea8-forest/jdk details: http://icedtea.classpath.org/hg/icedtea8-forest/jdk?cmd=changeset;node=f65aa11c1f04 author: ssdetsky date: Thu Jun 30 03:16:23 2016 +0100 8145547, PR1061: [AWT/Swing] Conditional support for GTK 3 on Linux Reviewed-by: prr, alexsch diffstat: make/lib/Awt2dLibraries.gmk | 2 + make/mapfiles/libawt/mapfile-vers-linux | 1 + make/mapfiles/libawt_xawt/mapfile-vers | 2 + src/macosx/classes/sun/awt/CGraphicsConfig.java | 3 +- src/macosx/classes/sun/java2d/opengl/CGLSurfaceData.java | 7 +- src/macosx/classes/sun/lwawt/LWWindowPeer.java | 4 +- src/share/classes/com/sun/java/swing/plaf/gtk/GTKEngine.java | 24 +- src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java | 45 +- src/share/classes/com/sun/java/swing/plaf/gtk/GTKPainter.java | 55 +- src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java | 21 +- src/share/classes/sun/awt/SunHints.java | 26 +- src/share/classes/sun/awt/image/AbstractMultiResolutionImage.java | 64 +- src/share/classes/sun/awt/image/BaseMultiResolutionImage.java | 150 + src/share/classes/sun/awt/image/BufImgSurfaceData.java | 101 +- src/share/classes/sun/awt/image/BufferedImageGraphicsConfig.java | 31 +- src/share/classes/sun/awt/image/MultiResolutionCachedImage.java | 23 +- src/share/classes/sun/awt/image/MultiResolutionImage.java | 72 +- src/share/classes/sun/awt/image/MultiResolutionToolkitImage.java | 17 +- src/share/classes/sun/awt/image/SunVolatileImage.java | 13 +- src/share/classes/sun/awt/image/SurfaceManager.java | 24 +- src/share/classes/sun/awt/image/VolatileSurfaceManager.java | 12 +- src/share/classes/sun/java2d/SunGraphics2D.java | 261 +- src/share/classes/sun/java2d/SunGraphicsEnvironment.java | 48 + src/share/classes/sun/java2d/SurfaceData.java | 16 +- src/share/classes/sun/java2d/pipe/DrawImage.java | 7 +- src/solaris/classes/sun/awt/UNIXToolkit.java | 71 +- src/solaris/classes/sun/awt/X11/InfoWindow.java | 4 +- src/solaris/classes/sun/awt/X11/XBaseWindow.java | 80 +- src/solaris/classes/sun/awt/X11/XChoicePeer.java | 2 +- src/solaris/classes/sun/awt/X11/XComponentPeer.java | 10 +- src/solaris/classes/sun/awt/X11/XDecoratedPeer.java | 18 +- src/solaris/classes/sun/awt/X11/XDesktopPeer.java | 9 +- src/solaris/classes/sun/awt/X11/XDragSourceContextPeer.java | 36 +- src/solaris/classes/sun/awt/X11/XEmbedClientHelper.java | 2 +- src/solaris/classes/sun/awt/X11/XEmbeddedFramePeer.java | 28 +- src/solaris/classes/sun/awt/X11/XMenuBarPeer.java | 2 +- src/solaris/classes/sun/awt/X11/XMenuWindow.java | 2 +- src/solaris/classes/sun/awt/X11/XMouseInfoPeer.java | 7 + src/solaris/classes/sun/awt/X11/XPopupMenuPeer.java | 2 +- src/solaris/classes/sun/awt/X11/XRobotPeer.java | 11 +- src/solaris/classes/sun/awt/X11/XToolkit.java | 68 +- src/solaris/classes/sun/awt/X11/XWM.java | 22 +- src/solaris/classes/sun/awt/X11/XWarningWindow.java | 8 +- src/solaris/classes/sun/awt/X11/XWindow.java | 81 +- src/solaris/classes/sun/awt/X11/XWindowPeer.java | 62 +- src/solaris/classes/sun/awt/X11/XlibUtil.java | 24 +- src/solaris/classes/sun/awt/X11GraphicsConfig.java | 26 +- src/solaris/classes/sun/awt/X11GraphicsDevice.java | 25 + src/solaris/classes/sun/java2d/xr/XRSurfaceData.java | 42 +- src/solaris/classes/sun/java2d/xr/XRSurfaceDataProxy.java | 5 +- src/solaris/classes/sun/java2d/xr/XRVolatileSurfaceManager.java | 8 +- src/solaris/native/sun/awt/awt_GraphicsEnv.c | 35 + src/solaris/native/sun/awt/awt_Robot.c | 36 +- src/solaris/native/sun/awt/awt_UNIXToolkit.c | 92 +- src/solaris/native/sun/awt/gtk2_interface.c | 429 +- src/solaris/native/sun/awt/gtk2_interface.h | 487 +- src/solaris/native/sun/awt/gtk3_interface.c | 2875 ++++++++++ src/solaris/native/sun/awt/gtk3_interface.h | 573 + src/solaris/native/sun/awt/gtk_interface.c | 158 + src/solaris/native/sun/awt/gtk_interface.h | 549 + src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c | 78 +- src/solaris/native/sun/awt/swing_GTKEngine.c | 141 +- src/solaris/native/sun/awt/swing_GTKStyle.c | 37 +- src/solaris/native/sun/xawt/awt_Desktop.c | 14 +- src/solaris/native/sun/xawt/gnome_interface.h | 4 +- src/windows/classes/sun/awt/Win32GraphicsConfig.java | 6 +- src/windows/classes/sun/awt/Win32GraphicsDevice.java | 40 + src/windows/classes/sun/awt/Win32GraphicsEnvironment.java | 18 + src/windows/classes/sun/awt/windows/WWindowPeer.java | 9 +- src/windows/classes/sun/java2d/d3d/D3DSurfaceData.java | 38 +- src/windows/classes/sun/java2d/opengl/WGLSurfaceData.java | 27 +- src/windows/classes/sun/java2d/windows/GDIWindowSurfaceData.java | 22 +- src/windows/native/sun/windows/MouseInfo.cpp | 13 +- src/windows/native/sun/windows/awt_Choice.cpp | 9 +- src/windows/native/sun/windows/awt_Component.cpp | 61 +- src/windows/native/sun/windows/awt_Component.h | 5 + src/windows/native/sun/windows/awt_Font.cpp | 58 +- src/windows/native/sun/windows/awt_Robot.cpp | 24 +- src/windows/native/sun/windows/awt_Toolkit.cpp | 16 +- src/windows/native/sun/windows/awt_Win32GraphicsConfig.cpp | 24 +- src/windows/native/sun/windows/awt_Win32GraphicsDevice.cpp | 168 + src/windows/native/sun/windows/awt_Win32GraphicsDevice.h | 10 + src/windows/native/sun/windows/awt_Window.cpp | 93 +- src/windows/native/sun/windows/awt_Window.h | 1 + src/windows/resource/java.manifest | 2 +- test/java/awt/Cursor/MultiResolutionCursorTest/MultiResolutionCursorTest.java | 68 +- test/java/awt/Graphics2D/ScaledTransform/ScaledTransform.java | 90 + test/java/awt/Robot/HiDPIMouseClick/HiDPIRobotMouseClick.java | 87 + test/java/awt/Robot/HiDPIScreenCapture/HiDPIRobotScreenCaptureTest.java | 115 + test/java/awt/hidpi/properties/HiDPIPropertiesLinuxTest.java | 92 + test/java/awt/hidpi/properties/HiDPIPropertiesWindowsTest.java | 139 + test/java/awt/image/MultiResolutionImage/MultiResolutionDrawImageWithTransformTest.java | 248 + test/java/awt/image/MultiResolutionImage/NSImageToMultiResolutionImageTest.java | 5 +- test/java/awt/image/MultiResolutionImageCommonTest.java | 207 + test/java/awt/image/MultiResolutionImageTest.java | 288 +- test/java/awt/image/multiresolution/BaseMultiResolutionImageTest.java | 205 + test/java/awt/image/multiresolution/MultiResolutionCachedImageTest.java | 2 +- test/java/awt/image/multiresolution/MultiResolutionRenderingHintsTest.java | 220 + 98 files changed, 8023 insertions(+), 1579 deletions(-) diffs (truncated from 13274 to 500 lines): diff -r 954f8b3a950a -r f65aa11c1f04 make/lib/Awt2dLibraries.gmk --- a/make/lib/Awt2dLibraries.gmk Thu Jul 30 12:40:45 2015 +0400 +++ b/make/lib/Awt2dLibraries.gmk Thu Jun 30 03:16:23 2016 +0100 @@ -611,6 +611,8 @@ debug_util.c \ gnome_interface.c \ gtk2_interface.c \ + gtk3_interface.c \ + gtk_interface.c \ swing_GTKEngine.c \ swing_GTKStyle.c \ rect.c \ diff -r 954f8b3a950a -r f65aa11c1f04 make/mapfiles/libawt/mapfile-vers-linux --- a/make/mapfiles/libawt/mapfile-vers-linux Thu Jul 30 12:40:45 2015 +0400 +++ b/make/mapfiles/libawt/mapfile-vers-linux Thu Jun 30 03:16:23 2016 +0100 @@ -208,6 +208,7 @@ Java_sun_awt_X11GraphicsDevice_enumDisplayModes; Java_sun_awt_X11GraphicsDevice_configDisplayMode; Java_sun_awt_X11GraphicsDevice_resetNativeData; + Java_sun_awt_X11GraphicsDevice_getNativeScaleFactor; Java_sun_awt_X11GraphicsEnvironment_checkShmExt; Java_sun_awt_X11GraphicsEnvironment_getDefaultScreenNum; Java_sun_awt_X11GraphicsEnvironment_getDisplayString; diff -r 954f8b3a950a -r f65aa11c1f04 make/mapfiles/libawt_xawt/mapfile-vers --- a/make/mapfiles/libawt_xawt/mapfile-vers Thu Jul 30 12:40:45 2015 +0400 +++ b/make/mapfiles/libawt_xawt/mapfile-vers Thu Jun 30 03:16:23 2016 +0100 @@ -173,6 +173,7 @@ Java_sun_awt_UNIXToolkit_load_1gtk_1icon; Java_sun_awt_UNIXToolkit_nativeSync; Java_sun_awt_UNIXToolkit_gtkCheckVersionImpl; + Java_sun_awt_UNIXToolkit_get_1gtk_1version; Java_java_awt_AWTEvent_initIDs; Java_java_awt_event_InputEvent_initIDs; Java_java_awt_event_KeyEvent_initIDs; @@ -214,6 +215,7 @@ Java_sun_awt_X11GraphicsDevice_enumDisplayModes; Java_sun_awt_X11GraphicsDevice_configDisplayMode; Java_sun_awt_X11GraphicsDevice_resetNativeData; + Java_sun_awt_X11GraphicsDevice_getNativeScaleFactor; Java_sun_awt_X11GraphicsConfig_initIDs; Java_sun_awt_X11GraphicsConfig_getXResolution; Java_sun_awt_X11GraphicsConfig_getYResolution; diff -r 954f8b3a950a -r f65aa11c1f04 src/macosx/classes/sun/awt/CGraphicsConfig.java --- a/src/macosx/classes/sun/awt/CGraphicsConfig.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/macosx/classes/sun/awt/CGraphicsConfig.java Thu Jun 30 03:16:23 2016 +0100 @@ -72,7 +72,8 @@ @Override public AffineTransform getDefaultTransform() { - return new AffineTransform(); + double scaleFactor = device.getScaleFactor(); + return AffineTransform.getScaleInstance(scaleFactor, scaleFactor); } @Override diff -r 954f8b3a950a -r f65aa11c1f04 src/macosx/classes/sun/java2d/opengl/CGLSurfaceData.java --- a/src/macosx/classes/sun/java2d/opengl/CGLSurfaceData.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/macosx/classes/sun/java2d/opengl/CGLSurfaceData.java Thu Jun 30 03:16:23 2016 +0100 @@ -169,7 +169,12 @@ } @Override - public int getDefaultScale() { + public double getDefaultScaleX() { + return scale; + } + + @Override + public double getDefaultScaleY() { return scale; } diff -r 954f8b3a950a -r f65aa11c1f04 src/macosx/classes/sun/lwawt/LWWindowPeer.java --- a/src/macosx/classes/sun/lwawt/LWWindowPeer.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/macosx/classes/sun/lwawt/LWWindowPeer.java Thu Jun 30 03:16:23 2016 +0100 @@ -1109,7 +1109,9 @@ && !(dst instanceof NullSurfaceData) && !(src instanceof NullSurfaceData) && src.getSurfaceType().equals(dst.getSurfaceType()) - && src.getDefaultScale() == dst.getDefaultScale()) { + && src.getDefaultScaleX() == dst.getDefaultScaleX() + && src.getDefaultScaleY() == dst.getDefaultScaleY()) + { final Rectangle size = src.getBounds(); final Blit blit = Blit.locate(src.getSurfaceType(), CompositeType.Src, diff -r 954f8b3a950a -r f65aa11c1f04 src/share/classes/com/sun/java/swing/plaf/gtk/GTKEngine.java --- a/src/share/classes/com/sun/java/swing/plaf/gtk/GTKEngine.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/share/classes/com/sun/java/swing/plaf/gtk/GTKEngine.java Thu Jun 30 03:16:23 2016 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -93,7 +93,9 @@ */ static enum Settings { GTK_FONT_NAME, - GTK_ICON_SIZES + GTK_ICON_SIZES, + GTK_CURSOR_BLINK, + GTK_CURSOR_BLINK_TIME } /* Custom regions are needed for representing regions that don't exist @@ -156,8 +158,8 @@ int widgetType, int state, int shadowType, String detail, int x, int y, int width, int height, int synthState, int dir); private native void native_paint_slider( - int widgetType, int state, int shadowType, String detail, - int x, int y, int width, int height, int orientation); + int widgetType, int state, int shadowType, String detail, int x, + int y, int width, int height, int orientation, boolean hasFocus); private native void native_paint_vline( int widgetType, int state, String detail, int x, int y, int width, int height); @@ -489,6 +491,14 @@ int gtkState = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal(); int synthState = context.getComponentState(); + Container parent = context.getComponent().getParent(); + if(GTKLookAndFeel.is3()) { + if (parent != null && parent.getParent() instanceof JComboBox) { + if (parent.getParent().hasFocus()) { + synthState |= SynthConstants.FOCUSED; + } + } + } int dir = getTextDirection(context); int widget = getWidgetType(context.getComponent(), id).ordinal(); native_paint_shadow(widget, gtkState, shadowType.ordinal(), detail, @@ -496,13 +506,13 @@ } public void paintSlider(Graphics g, SynthContext context, - Region id, int state, ShadowType shadowType, String detail, - int x, int y, int w, int h, Orientation orientation) { + Region id, int state, ShadowType shadowType, String detail, int x, + int y, int w, int h, Orientation orientation, boolean hasFocus) { state = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal(); int widget = getWidgetType(context.getComponent(), id).ordinal(); native_paint_slider(widget, state, shadowType.ordinal(), detail, - x - x0, y - y0, w, h, orientation.ordinal()); + x - x0, y - y0, w, h, orientation.ordinal(), hasFocus); } public void paintVline(Graphics g, SynthContext context, diff -r 954f8b3a950a -r f65aa11c1f04 src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java --- a/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java Thu Jun 30 03:16:23 2016 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -52,7 +52,8 @@ * @author Scott Violet */ public class GTKLookAndFeel extends SynthLookAndFeel { - private static final boolean IS_22; + private static boolean IS_22; + private static boolean IS_3; /** * Whether or not text is drawn antialiased. This keys off the @@ -105,17 +106,6 @@ private static String gtkThemeName = "Default"; static { - // Backup for specifying the version, this isn't currently documented. - // If you pass in anything but 2.2 you got the 2.0 colors/look. - String version = AccessController.doPrivileged( - new GetPropertyAction("swing.gtk.version")); - if (version != null) { - IS_22 = version.equals("2.2"); - } - else { - IS_22 = true; - } - String language = Locale.getDefault().getLanguage(); boolean cjkLocale = (Locale.CHINESE.getLanguage().equals(language) || @@ -156,6 +146,10 @@ return IS_22; } + static boolean is3() { + return IS_3; + } + /** * Maps a swing constant to a GTK constant. */ @@ -371,7 +365,17 @@ int vProgWidth = 22 - (progXThickness * 2); int vProgHeight = 80 - (progYThickness * 2); - Integer caretBlinkRate = Integer.valueOf(500); + Integer caretBlinkRate; + if (Boolean.FALSE.equals(GTKEngine.INSTANCE.getSetting( + GTKEngine.Settings.GTK_CURSOR_BLINK))) { + caretBlinkRate = Integer.valueOf(0); + } else { + caretBlinkRate = (Integer) GTKEngine.INSTANCE.getSetting( + GTKEngine.Settings.GTK_CURSOR_BLINK_TIME); + if (caretBlinkRate == null) { + caretBlinkRate = Integer.valueOf(500); + } + } Insets zeroInsets = new InsetsUIResource(0, 0, 0, 0); Double defaultCaretAspectRatio = new Double(0.025); @@ -1447,6 +1451,19 @@ throw new InternalError("Unable to load native GTK libraries"); } + if (UNIXToolkit.getGtkVersion() == UNIXToolkit.GtkVersions.GTK2) { + String version = AccessController.doPrivileged( + new GetPropertyAction("jdk.gtk.version")); + if (version != null) { + IS_22 = version.equals("2.2"); + } else { + IS_22 = true; + } + } else if (UNIXToolkit.getGtkVersion() == + UNIXToolkit.GtkVersions.GTK3) { + IS_3 = true; + } + super.initialize(); inInitialize = true; loadStyles(); diff -r 954f8b3a950a -r f65aa11c1f04 src/share/classes/com/sun/java/swing/plaf/gtk/GTKPainter.java --- a/src/share/classes/com/sun/java/swing/plaf/gtk/GTKPainter.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/share/classes/com/sun/java/swing/plaf/gtk/GTKPainter.java Thu Jun 30 03:16:23 2016 +0100 @@ -743,6 +743,15 @@ // The ubuntulooks engine paints slider troughs differently depending // on the current slider value and its component orientation. JSlider slider = (JSlider)context.getComponent(); + if (GTKLookAndFeel.is3()) { + if (slider.getOrientation() == JSlider.VERTICAL) { + y += 1; + h -= 2; + } else { + x += 1; + w -= 2; + } + } double value = slider.getValue(); double min = slider.getMinimum(); double max = slider.getMaximum(); @@ -776,15 +785,19 @@ Region id = context.getRegion(); int gtkState = GTKLookAndFeel.synthStateToGTKState( id, context.getComponentState()); + boolean hasFocus = GTKLookAndFeel.is3() && + ((context.getComponentState() & SynthConstants.FOCUSED) != 0); synchronized (UNIXToolkit.GTK_LOCK) { - if (! ENGINE.paintCachedImage(g, x, y, w, h, id, gtkState, dir)) { + if (! ENGINE.paintCachedImage(g, x, y, w, h, id, gtkState, dir, + hasFocus)) { Orientation orientation = (dir == JSlider.HORIZONTAL ? Orientation.HORIZONTAL : Orientation.VERTICAL); String detail = (dir == JSlider.HORIZONTAL ? "hscale" : "vscale"); ENGINE.startPainting(g, x, y, w, h, id, gtkState, dir); ENGINE.paintSlider(g, context, id, gtkState, - ShadowType.OUT, detail, x, y, w, h, orientation); + ShadowType.OUT, detail, x, y, w, h, orientation, + hasFocus); ENGINE.finishPainting(); } } @@ -963,15 +976,21 @@ int yThickness = style.getYThickness(); ENGINE.startPainting(g, x, y, w, h, id, state); + if (GTKLookAndFeel.is3()) { + ENGINE.paintBackground(g, context, id, gtkState, null, + x, y, w, h); + } ENGINE.paintShadow(g, context, id, gtkState, ShadowType.IN, "entry", x, y, w, h); - ENGINE.paintFlatBox(g, context, id, - gtkState, ShadowType.NONE, "entry_bg", - x + xThickness, - y + yThickness, - w - (2 * xThickness), - h - (2 * yThickness), - ColorType.TEXT_BACKGROUND); + if (!GTKLookAndFeel.is3()) { + ENGINE.paintFlatBox(g, context, id, + gtkState, ShadowType.NONE, "entry_bg", + x + xThickness, + y + yThickness, + w - (2 * xThickness), + h - (2 * yThickness), + ColorType.TEXT_BACKGROUND); + } if (focusSize > 0 && (state & SynthConstants.FOCUSED) != 0) { if (!interiorFocus) { @@ -982,14 +1001,14 @@ } else { if (containerParent instanceof JComboBox) { x += (focusSize + 2); - y += (focusSize + 1); - w -= (2 * focusSize + 1); - h -= (2 * focusSize + 2); + y += focusSize + (GTKLookAndFeel.is3() ? 3 : 1); + w -= 2 * focusSize + (GTKLookAndFeel.is3() ? 4 : 1); + h -= 2 * focusSize + (GTKLookAndFeel.is3() ? 6 : 2); } else { - x += focusSize; - y += focusSize; - w -= 2 * focusSize; - h -= 2 * focusSize; + x += focusSize + (GTKLookAndFeel.is3() ? 2 : 0); + y += focusSize + (GTKLookAndFeel.is3() ? 2 :0 ); + w -= 2 * focusSize + (GTKLookAndFeel.is3() ? 4 : 0); + h -= 2 * focusSize + (GTKLookAndFeel.is3() ? 4 : 0); } } ENGINE.paintFocus(g, context, id, gtkState, @@ -1138,8 +1157,8 @@ Orientation orientation = (dir == JScrollBar.HORIZONTAL ? Orientation.HORIZONTAL : Orientation.VERTICAL); ENGINE.setRangeValue(context, id, value, min, max, visible); - ENGINE.paintSlider(g, context, id, gtkState, - ShadowType.OUT, "slider", x, y, w, h, orientation); + ENGINE.paintSlider(g, context, id, gtkState, ShadowType.OUT, + "slider", x, y, w, h, orientation, false); ENGINE.finishPainting(); } } diff -r 954f8b3a950a -r f65aa11c1f04 src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java --- a/src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java Thu Jun 30 03:16:23 2016 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -710,29 +710,33 @@ if (region == Region.COMBO_BOX || region == Region.DESKTOP_PANE || region == Region.DESKTOP_ICON || - region == Region.EDITOR_PANE || - region == Region.FORMATTED_TEXT_FIELD || region == Region.INTERNAL_FRAME || region == Region.LIST || region == Region.MENU_BAR || region == Region.PANEL || - region == Region.PASSWORD_FIELD || region == Region.POPUP_MENU || region == Region.PROGRESS_BAR || region == Region.ROOT_PANE || region == Region.SCROLL_PANE || - region == Region.SPINNER || region == Region.SPLIT_PANE_DIVIDER || region == Region.TABLE || region == Region.TEXT_AREA || - region == Region.TEXT_FIELD || - region == Region.TEXT_PANE || region == Region.TOOL_BAR_DRAG_WINDOW || region == Region.TOOL_TIP || region == Region.TREE || region == Region.VIEWPORT) { return true; } + if (!GTKLookAndFeel.is3()) { + if (region == Region.EDITOR_PANE || + region == Region.FORMATTED_TEXT_FIELD || + region == Region.PASSWORD_FIELD || + region == Region.SPINNER || + region == Region.TEXT_FIELD || + region == Region.TEXT_PANE) { + return true; + } + } Component c = context.getComponent(); String name = c.getName(); if (name == "ComboBox.renderer" || name == "ComboBox.listRenderer") { @@ -828,6 +832,8 @@ int focusPad = getClassSpecificIntValue(context, "focus-padding", 1); return indicatorSpacing + focusSize + focusPad; + } else if (GTKLookAndFeel.is3() && "ComboBox.forceOpaque".equals(key)) { + return true; } // Is it a stock icon ? @@ -1107,6 +1113,7 @@ static { CLASS_SPECIFIC_MAP = new HashMap(); CLASS_SPECIFIC_MAP.put("Slider.thumbHeight", "slider-width"); + CLASS_SPECIFIC_MAP.put("Slider.thumbWidth", "slider-length"); CLASS_SPECIFIC_MAP.put("Slider.trackBorder", "trough-border"); CLASS_SPECIFIC_MAP.put("SplitPane.size", "handle-size"); CLASS_SPECIFIC_MAP.put("Tree.expanderSize", "expander-size"); diff -r 954f8b3a950a -r f65aa11c1f04 src/share/classes/sun/awt/SunHints.java --- a/src/share/classes/sun/awt/SunHints.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/share/classes/sun/awt/SunHints.java Thu Jun 30 03:16:23 2016 +0100 @@ -257,8 +257,10 @@ */ @Native public static final int INTKEY_RESOLUTION_VARIANT = 9; @Native public static final int INTVAL_RESOLUTION_VARIANT_DEFAULT = 0; - @Native public static final int INTVAL_RESOLUTION_VARIANT_OFF = 1; - @Native public static final int INTVAL_RESOLUTION_VARIANT_ON = 2; + @Native public static final int INTVAL_RESOLUTION_VARIANT_BASE = 1; + @Native public static final int INTVAL_RESOLUTION_VARIANT_SIZE_FIT = 2; + @Native public static final int INTVAL_RESOLUTION_VARIANT_DPI_FIT = 3; + /** * LCD text contrast control hint key. * Value is "100" to make discontiguous with the others which @@ -466,15 +468,23 @@ public static final Object VALUE_RESOLUTION_VARIANT_DEFAULT = new SunHints.Value(KEY_RESOLUTION_VARIANT, SunHints.INTVAL_RESOLUTION_VARIANT_DEFAULT, - "Choose image resolutions based on a default heuristic"); - public static final Object VALUE_RESOLUTION_VARIANT_OFF = + "Choose image resolutions based on a default" + + "heuristic"); + public static final Object VALUE_RESOLUTION_VARIANT_BASE = new SunHints.Value(KEY_RESOLUTION_VARIANT, - SunHints.INTVAL_RESOLUTION_VARIANT_OFF, + SunHints.INTVAL_RESOLUTION_VARIANT_BASE, "Use only the standard resolution of an image"); - public static final Object VALUE_RESOLUTION_VARIANT_ON = + public static final Object VALUE_RESOLUTION_VARIANT_SIZE_FIT = new SunHints.Value(KEY_RESOLUTION_VARIANT, - SunHints.INTVAL_RESOLUTION_VARIANT_ON, - "Always use resolution-specific variants of images"); + SunHints.INTVAL_RESOLUTION_VARIANT_SIZE_FIT, + "Choose image resolutions based on the DPI" + + "of the screen and transform" + + "in the Graphics2D context"); + public static final Object VALUE_RESOLUTION_VARIANT_DPI_FIT = + new SunHints.Value(KEY_RESOLUTION_VARIANT, + SunHints.INTVAL_RESOLUTION_VARIANT_DPI_FIT, + "Choose image resolutions based only on the DPI" + + " of the screen"); public static class LCDContrastKey extends Key { diff -r 954f8b3a950a -r f65aa11c1f04 src/share/classes/sun/awt/image/AbstractMultiResolutionImage.java --- a/src/share/classes/sun/awt/image/AbstractMultiResolutionImage.java Thu Jul 30 12:40:45 2015 +0400 +++ b/src/share/classes/sun/awt/image/AbstractMultiResolutionImage.java Thu Jun 30 03:16:23 2016 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,43 +29,33 @@ import java.awt.image.*; /** - * This class provides default implementations for the - * MultiResolutionImage interface. The developer needs only - * to subclass this abstract class and define the getResolutionVariant, - * getResolutionVariants, and getBaseImage methods. - * + * This class provides default implementations of several {@code Image} methods + * for classes that want to implement the {@MultiResolutionImage} interface. * * For example, - * {@code + *
 {@code
  * public class CustomMultiResolutionImage extends AbstractMultiResolutionImage {
  *
- *     int baseImageIndex;
- *     Image[] resolutionVariants;
+ *     final Image[] resolutionVariants;
  *
- *     public CustomMultiResolutionImage(int baseImageIndex,
- *             Image... resolutionVariants) {
- *          this.baseImageIndex = baseImageIndex;
+ *     public CustomMultiResolutionImage(Image... resolutionVariants) {
  *          this.resolutionVariants = resolutionVariants;
  *     }
  *
- *     @Override
- *     public Image getResolutionVariant(float logicalDPIX, float logicalDPIY,
- *             float baseImageWidth, float baseImageHeight,
- *             float destImageWidth, float destImageHeight) {
- *         // return a resolution variant based on the given logical DPI,
- *         // base image size, or destination image size
+ *     public Image getResolutionVariant(
+ *             double destImageWidth, double destImageHeight) {

From bugzilla-daemon at icedtea.classpath.org  Thu Jun 30 02:21:01 2016
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Thu, 30 Jun 2016 02:21:01 +0000
Subject: [Bug 3066] [IcedTea8] Backport "6260348: GTK+ L&F JTextComponent not
	respecting desktop caret blink rate"
In-Reply-To: 
References: 
Message-ID: 

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3066

--- Comment #1 from hg commits  ---
details:
http://icedtea.classpath.org//hg/icedtea8-forest/jdk?cmd=changeset;node=9fffaa63c49d
author: ssadetsky
date: Wed Jun 29 18:09:29 2016 +0100

    6260348, PR3066: GTK+ L&F JTextComponent not respecting desktop caret blink
rate
    Reviewed-by: alexsch, azvegint

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From andrew at icedtea.classpath.org  Thu Jun 30 02:41:47 2016
From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org)
Date: Thu, 30 Jun 2016 02:41:47 +0000
Subject: /hg/icedtea7-forest/jdk: 7175845, PR1437, RH1207129: 'jar uf' ch...
Message-ID: 

changeset 043089a31c3c in /hg/icedtea7-forest/jdk
details: http://icedtea.classpath.org/hg/icedtea7-forest/jdk?cmd=changeset;node=043089a31c3c
author: andrew
date: Thu Jun 30 03:43:26 2016 +0100

	7175845, PR1437, RH1207129: 'jar uf' changes file permissions unexpectedly
	Summary: Reinstate change destroyed by merge


diffstat:

 src/share/classes/sun/tools/jar/Main.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0e51300bbf46 -r 043089a31c3c src/share/classes/sun/tools/jar/Main.java
--- a/src/share/classes/sun/tools/jar/Main.java	Fri May 27 03:58:28 2016 +0100
+++ b/src/share/classes/sun/tools/jar/Main.java	Thu Jun 30 03:43:26 2016 +0100
@@ -138,7 +138,7 @@
         File dir = file.getParentFile();
         if (dir == null)
             dir = new File(".");
-        return Files.createTempFile(dir.toPath(), "jartmp", null).toFile();
+        return File.createTempFile("jartmp", null, dir);
     }
 
     private boolean ok;

From bugzilla-daemon at icedtea.classpath.org  Thu Jun 30 02:41:53 2016
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Thu, 30 Jun 2016 02:41:53 +0000
Subject: [Bug 1437] [regression] utility "jar" changes file permissions
In-Reply-To: 
References: 
Message-ID: 

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437

--- Comment #3 from hg commits  ---
details:
http://icedtea.classpath.org//hg/icedtea7-forest/jdk?cmd=changeset;node=043089a31c3c
author: andrew
date: Thu Jun 30 03:43:26 2016 +0100

    7175845, PR1437, RH1207129: 'jar uf' changes file permissions unexpectedly
    Summary: Reinstate change destroyed by merge

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From bugzilla-daemon at icedtea.classpath.org  Thu Jun 30 12:53:40 2016
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Thu, 30 Jun 2016 12:53:40 +0000
Subject: [Bug 3054] Intermittent NPE on launch causes agent to fail to pickup
	jvms
In-Reply-To: 
References: 
Message-ID: 

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3054

--- Comment #3 from hg commits  ---
details:
http://icedtea.classpath.org//hg/release/thermostat-1.6?cmd=changeset;node=df9c589c6e0c
author: Jie Kang 
date: Thu Jun 30 08:43:12 2016 -0400

    Fix registration of thread backends.

    PR3069, PR3054

    Reviewed-by: neugens
    Review-thread:
http://icedtea.classpath.org/pipermail/thermostat/2016-June/020064.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From bugzilla-daemon at icedtea.classpath.org  Thu Jun 30 15:28:52 2016
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Thu, 30 Jun 2016 15:28:52 +0000
Subject: [Bug 3054] Intermittent NPE on launch causes agent to fail to pickup
	jvms
In-Reply-To: 
References: 
Message-ID: 

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3054

--- Comment #4 from hg commits  ---
details:
http://icedtea.classpath.org//hg/release/thermostat-1.4?cmd=changeset;node=85f97ddaa4b3
author: Jie Kang 
date: Thu Jun 30 10:58:21 2016 -0400

    Fix registration of thread backends.

    PR3072, PR3054

    Reviewed-by: jerboaa
    Review-thread:
http://icedtea.classpath.org/pipermail/thermostat/2016-June/020077.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From gitne at gmx.de  Thu Jun 30 22:10:26 2016
From: gitne at gmx.de (Jacob Wisor)
Date: Fri, 1 Jul 2016 00:10:26 +0200
Subject: Icetea exception
In-Reply-To: 
References: <574702E0020000BB00060FB2@oes-grpwise.novell.upei.ca>
	<57712978.1040304@gmx.de>
	<94b1241a707fd16a6b02bc22c9dab818.squirrel@sun11.math.upei.ca>
	<57714B15.9070407@gmx.de>
	
Message-ID: <577598D2.7070702@gmx.de>

Hello guys!

On 06/28/2016 at 09:23 AM Jiri Vanek wrote:
> On 06/27/2016 05:49 PM, Jacob Wisor wrote:
> Hi Jacob!
>
> Where have you get this file?

Cezar sent it to me. Unfortunately, perhaps he forgot to add the mailing list 
onto the list of recipients? :-o

>> Bingo! Like I have assumed. The OBJECT element in the HTML document has been
>> authored incorrectly.
>> Look here:
>>
>>>                         >>                             classid =
>>> "clsid:CAFEEFAC-0015-0000-0012-ABCDEFFEDCBA"
>>>                             codebase =
>>> "http://java.sun.com/update/1.5.0/jinstall-1_5_0_12-windows-i586.cab#Version=5,0,120,4"
>>>
>>>                             WIDTH = "640" HEIGHT = "480" NAME = "ucx" >
>>>                             
>>
>> First, "class" is a reserved keyword in the Java programming language and
>> therefore must not be a
>> package name. Second, the ultracam class has not been specified with its fully
>> qualified name. The
>> VALUE attribute of the PARAM element must state the fully qualified name of
>> the applet's main class.
>
> The ultracam class may stand in default package.

Sure, however the value must not contain a package or class named "class" 
(because, as already said, it is a reserved keyword). In this example "ultracam" 
is interpreted as a valid package name, then "class" is interpreted as a class 
name, which of course is an invalid name. This is why a ClassNotFoundException 
is thrown.

>>
>>>                             
>>>                             
>>>                             >> "application/x-java-applet;jpi-version=1.5.0_12">
>>>                             
>>>                             >> VALUE="YWRtaW46emd1cmFUTnc=" />
>>>                             >> VALUE="http://10.1.1.1:80/admin" />
>>>                             
>>>
>>>                             
>>>                             >>                                     type = "application/x-java-applet" \
>>>                                     CODE = "ultracam.class" \
>>
>> Essentially, the same applies here too.
>>
>>>                                     ARCHIVE = "ultracam.jar" \
>>>                                     NAME = "ucx" \
>>>                                     WIDTH = "640" \
>>>                                     HEIGHT = "480" \
>>>                                     accountcode ="YWRtaW46emd1cmFUTnc=" / \
>>>                                     codebase ="http://10.1.1.1:80/admin" / \
>>>                                     mode ="0" / \
>>>                                 scriptable = false
>>>                                 pluginspage =
>>> "http://java.sun.com/products/plugin/index.html#download">
>>>                                 
>>>
>>>                                     
>>>                             
>>>                             
>>>                         
>>
>> So, what can you do now? a) You should report this bug do the camera vendor
>> and wait for a firmware
>
> Its hardly to happen:(
>> update. b) In the meantime, you can download the ultracam.jar JAR file, find
>> the fully qualified
>> name of the ultracam class, put it into the HTML document and launch it from
>> your local computer.
>
> I doubt it will work like this. The jar should run on device where it is doing
> the job for the ITW user.

Err..., I do not think so. Applets are, by design a piece of software that is 
meant to be downloaded "automagically" and run on the user's *local* machine. 
This is the core purpose of the Applet concept. Applets are not an extension to 
the terminal concept (with remote execution) but a concept for a distributed 
(fat) client application. Hence, you may also call it "dynamic web content", if 
you want. So, applets *always* run locally.

> But to follow this advice - you can check the communication between the cam and
> browser/javaws --html  and remove .class on the fly
>
>> There is nothing IcedTea-Web developers can do here.
>>
>
> Actually - this is reported as regression. I guess 1.5 was previous ITW on his
> box. Why it was working?
> So maybe add stripping of .class is the bugfx to go?

AFAIR, you have committed a fix to relax main class name parsing for applets 
embedded on web pages. We have discussed this at lengths on the mailing list. 
The fix should have dealt with trimming and ignoring white spaces outside of 
compound literal characters only. So, maybe this fix introduced other new but 
also equally valid parsing restrictions? Both of which is good. This example 
could be given more investigation but the current code - obviously - does reject 
the given example correctly, hence no real need for a deeper investigation in my 
view.

> Jacob - thank you very much for investigations. *really* thanx!

No problem. ;-) I appreciate I could help.

Regards

Jacob