* src/org/gfxtest/testsuites/TexturePaint.java:
diff -r 697bfde838ac -r 843d131b0d88 src/org/gfxtest/framework/CommonClippingOperations.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/framework/CommonClippingOperations.java Tue Nov 08 12:51:12 2011 +0100
@@ -0,0 +1,304 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea 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 for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.framework;
+
+import java.awt.Color;
+import java.awt.Graphics2D;
+import java.awt.Polygon;
+import java.awt.Shape;
+import java.awt.geom.Ellipse2D;
+import java.awt.geom.Rectangle2D;
+import java.awt.geom.RoundRectangle2D;
+
+
+
+/**
+ * This class contains static method used by the various tests which checks if
+ * clipping is working correctly.
+ *
+ * @author Pavel Tisnovsky
+ */
+public class CommonClippingOperations
+{
+ /**
+ * Color used for rendering shape which is drawn along clip region.
+ */
+ public static final Color CLIP_SHAPE_COLOR = Color.MAGENTA.darker();
+
+ /**
+ * Radius of corners of the round rectangle.
+ */
+ public static final int ROUND_RECTANGLE_ARC_RADIUS = 300;
+
+ /**
+ * Compute width of the clip region.
+ *
+ * @param image
+ * work image
+ * @return width of the clip region
+ */
+ private static int computeClipRegionWidth(TestImage image)
+ {
+ // compute width first
+ int width = 2 * image.getWidth() / 3;
+ // it's best to align clip area with the grid
+ width = width - (width % image.getGrid());
+ return width - 1;
+ }
+
+ /**
+ * Compute height of the clip region.
+ *
+ * @param image
+ * work image
+ * @return height of the clip region
+ */
+ private static int computeClipRegionHeight(TestImage image)
+ {
+ // compute height first
+ int height = 2 * image.getHeight() / 3;
+ // it's best to align clip area with the grid
+ height = height - (height % image.getGrid());
+ return height - 1;
+ }
+
+ /**
+ * Render the rectangle around the clip area. Clip area could have different
+ * shape but it's area should lie inside this rectangle.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void renderClipRectangle(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image) + 1;
+ final int height = computeClipRegionHeight(image) + 1;
+ // color used for clipping areas
+ graphics2d.setColor(CLIP_SHAPE_COLOR);
+ // draw rectangle around the clip area
+ graphics2d.drawRect(0, 0, width, height);
+ }
+
+ /**
+ * Render the round rectangle around the clip area.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void renderClipRoundRectangle(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image) + 1;
+ final int height = computeClipRegionHeight(image) + 1;
+ // color used for clipping areas
+ graphics2d.setColor(CLIP_SHAPE_COLOR);
+ // draw rounded rectangle around the clip area
+ graphics2d.drawRoundRect(0, 0, width, height, ROUND_RECTANGLE_ARC_RADIUS, ROUND_RECTANGLE_ARC_RADIUS);
+ }
+
+ /**
+ * Render the ellipse around the clip area. Clip area could have different
+ * shape but should be inside this ellipse.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void renderClipEllipse(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image) + 1;
+ final int height = computeClipRegionHeight(image) + 1;
+ // color used for clipping areas
+ graphics2d.setColor(CLIP_SHAPE_COLOR);
+ // draw ellipse around the clip area
+ graphics2d.drawOval(0, 0, width, height);
+ }
+
+ /**
+ * Render the polygon around the clip area. Clip area could have different
+ * shape but should be inside this ellipse.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void renderClipPolygon(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image) + 1;
+ final int height = computeClipRegionHeight(image) + 1;
+ // color used for clipping areas
+ graphics2d.setColor(CLIP_SHAPE_COLOR);
+ // draw ellipse around the clip area
+ graphics2d.drawPolygon(createClippingPolygon(width, height));
+ }
+
+ /**
+ * Create clip region using rectangle area (not rectangular shape)
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void createClipUsingRectangleArea(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image);
+ final int height = computeClipRegionHeight(image);
+ // apply clip rectangle area
+ graphics2d.setClip(1, 1, width, height);
+ }
+
+ /**
+ * Create clip region using rectangular shape (not rectangle area).
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void createClipUsingRectangleShape(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image);
+ final int height = computeClipRegionHeight(image);
+ // create clip shape
+ Shape clipShape = new Rectangle2D.Float(1, 1, width, height);
+ // and apply the created shape as clipping region
+ graphics2d.setClip(clipShape);
+ }
+
+ /**
+ * Create clip region using rounded rectangular shape (not rectangle area).
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void createClipUsingRoundRectangleShape(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image);
+ final int height = computeClipRegionHeight(image);
+ // create clip shape
+ Shape clipShape = new RoundRectangle2D.Float(1, 1, width, height, ROUND_RECTANGLE_ARC_RADIUS, ROUND_RECTANGLE_ARC_RADIUS);
+ // and apply the created shape as clipping region
+ graphics2d.setClip(clipShape);
+ }
+
+ /**
+ * Create clip region using elliptic shape.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void createClipUsingEllipseShape(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image);
+ final int height = computeClipRegionHeight(image);
+ // create clip shape
+ Shape clipShape = new Ellipse2D.Float(1, 1, width, height);
+ // and apply the created shape as clipping region
+ graphics2d.setClip(clipShape);
+ }
+
+ /**
+ * Create clip region using polygonal shape.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ public static void createClipUsingPolygonalShape(TestImage image, Graphics2D graphics2d)
+ {
+ // compute size of clip area
+ final int width = computeClipRegionWidth(image);
+ final int height = computeClipRegionHeight(image);
+ // create clip shape
+ Polygon polygon = createClippingPolygon(width, height);
+ // and apply the created shape as clipping region
+ graphics2d.setClip(polygon);
+ }
+
+ /**
+ * Create clipping polygon with given width and height. Please note that the
+ * polygon has the following shape:
+ *
+ *
+ * |\ /|
+ * | \ / |
+ * | >< |
+ * | / \ |
+ * |/ \|
+ *
+ *
+ * @param width
+ * image width
+ * @param height
+ * image height
+ * @return new clipping polygon
+ */
+ private static Polygon createClippingPolygon(final int width, final int height)
+ {
+ Polygon polygon = new Polygon();
+ // add four vertexes
+ polygon.addPoint(1, 1);
+ polygon.addPoint(width, height);
+ polygon.addPoint(width, 1);
+ polygon.addPoint(1, height);
+ return polygon;
+ }
+
+}
diff -r 697bfde838ac -r 843d131b0d88 src/org/gfxtest/testsuites/Clipping.java
--- a/src/org/gfxtest/testsuites/Clipping.java Mon Nov 07 10:01:14 2011 +0100
+++ b/src/org/gfxtest/testsuites/Clipping.java Tue Nov 08 12:51:12 2011 +0100
@@ -42,19 +42,7 @@
-import java.awt.Color;
-import java.awt.Graphics2D;
-import java.awt.Shape;
-import java.awt.geom.Ellipse2D;
-import java.awt.geom.Rectangle2D;
-
-
-
-import org.gfxtest.framework.CommonRenderingStyles;
-import org.gfxtest.framework.CommonShapesRenderer;
import org.gfxtest.framework.GfxTest;
-import org.gfxtest.framework.TestImage;
-import org.gfxtest.framework.TestResult;
import org.gfxtest.framework.annotations.TestType;
import org.gfxtest.framework.annotations.TestTypes;
import org.gfxtest.framework.annotations.Transformation;
@@ -74,185 +62,6 @@
@Zoom(1)
public class Clipping extends GfxTest
{
- /**
- * Color used for rendering shape which is drawn along clip region.
- */
- private static final Color CLIP_SHAPE_COLOR = Color.MAGENTA.darker();
-
- /**
- * Computes width of the clip region.
- *
- * @param image
- * work image
- * @return width of the clip region
- */
- private static int computeClipRegionWidth(TestImage image)
- {
- // compute width first
- int width = 2 * image.getWidth() / 3;
- // we need to align clip area with the grid
- width = width - (width % image.getGrid());
- return width - 1;
- }
-
- /**
- * Compute height of the clip region.
- *
- * @param image
- * work image
- * @return height of the clip region
- */
- private static int computeClipRegionHeight(TestImage image)
- {
- // compute height first
- int height = 2 * image.getHeight() / 3;
- // we need to align clip area with the grid
- height = height - (height % image.getGrid());
- return height - 1;
- }
-
- /**
- * Render the rectangle around the clip area. Clip area could have different
- * shape but should be inside this rectangle.
- *
- * @param image
- * work image
- * @param graphics2d
- * graphics canvas
- */
- private void renderClipRectangle(TestImage image, Graphics2D graphics2d)
- {
- // compute size of clip area
- final int width = computeClipRegionWidth(image) + 1;
- final int height = computeClipRegionHeight(image) + 1;
- // draw rectangle around the clip area
- graphics2d.setColor(CLIP_SHAPE_COLOR);
- graphics2d.drawRect(0, 0, width, height);
- }
-
- /**
- * Render the ellipse around the clip area. Clip area could have different
- * shape but should be inside this ellipse.
- *
- * @param image
- * work image
- * @param graphics2d
- * graphics canvas
- */
- private void renderClipEllipse(TestImage image, Graphics2D graphics2d)
- {
- // compute size of clip area
- final int width = computeClipRegionWidth(image) + 1;
- final int height = computeClipRegionHeight(image) + 1;
- // draw rectangle around the clip area
- graphics2d.setColor(CLIP_SHAPE_COLOR);
- graphics2d.drawOval(0, 0, width, height);
- }
-
- /**
- * Create clip region using rectangle area (not rectangular shape)
- *
- * @param image
- * work image
- * @param graphics2d
- * graphics canvas
- */
- private static void createClipUsingRectangleArea(TestImage image, Graphics2D graphics2d)
- {
- // compute size of clip area
- final int width = computeClipRegionWidth(image);
- final int height = computeClipRegionHeight(image);
- // apply clip rectangle area
- graphics2d.setClip(1, 1, width, height);
- }
-
- /**
- * Create clip region using rectangular shape (not rectangle area).
- *
- * @param image
- * work image
- * @param graphics2d
- * graphics canvas
- */
- private static void createClipUsingRectangleShape(TestImage image, Graphics2D graphics2d)
- {
- // compute size of clip area
- final int width = computeClipRegionWidth(image);
- final int height = computeClipRegionHeight(image);
- // create clip shape
- Shape clipShape = new Rectangle2D.Float(1, 1, width, height);
- // and apply it
- graphics2d.setClip(clipShape);
- }
-
- /**
- * Create clip region using elliptic shape.
- *
- * @param image
- * work image
- * @param graphics2d
- * graphics canvas
- */
- private static void createClipUsingEllipseShape(TestImage image, Graphics2D graphics2d)
- {
- // compute size of clip area
- final int width = computeClipRegionWidth(image);
- final int height = computeClipRegionHeight(image);
- // create clip shape
- Shape clipShape = new Ellipse2D.Float(1, 1, width, height);
- // and apply it
- graphics2d.setClip(clipShape);
- }
-
- /**
- * Check if circle shape could be clipped by a rectangle area. Circle is
- * rendered using stroke paint.
- *
- * @param image
- * work image
- * @param graphics2d
- * graphics canvas
- * @return test result status - PASSED, FAILED or ERROR
- */
- public TestResult testClipCircleByRectangleAreaStrokePaint(TestImage image, Graphics2D graphics2d)
- {
- // render clip rectangle
- renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
- // create clip area
- createClipUsingRectangleArea(image, graphics2d);
- // draw the area
From jvanek at redhat.com Tue Nov 8 05:30:34 2011
From: jvanek at redhat.com (Jiri Vanek)
Date: Tue, 08 Nov 2011 14:30:34 +0100
Subject: [RFC][icedtea-web][rhino] added tests for corner cases of dateRange
and enabled testWeekdayRange
Message-ID: <4EB92EFA.9000601@redhat.com>
Hi!
This tests pickup and covers rhino tests failures, which occurs at the start/end of each week.
eg bottoms of:
http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320037429/index.html
http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320123820/index.html
http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320210219/index.html
and see regeressions in Rhino tests
More then bug in netx itself, I suspect quite strange functions incDate and decDate in tests/netx/pac/pac-funcs-test.js
Note, that new tests of first day in month are falling all, and tests of last day in month are falling only for 31 days long months.
Also I have noticed, taht testWeekdayRange (in same test file) have missing runTests, so this test is never call. I adddd this call, and it's three tests are now in and passing
I had sorted call of this test *behind* "all currently running tests", because I want to keep rhino statistics (which are order-of-test dependent) untouched.
To test dateRange properly against specific dates, I had to modify also netx/net/sourceforge/jnlp/runtime/pac-funcs.js. I have moved logic of dateRange into new function isDateInRange which an be called against any date.
DateRange then preserve api compatibilty and is wrapper for "today" upon isDateInRange
Best regards
J.
changelog:
2011-11-08 Jiri Vanek
Added tests which covers corner cases or rhino support function dateRange
Enabled testWeekdayRange test
* tests/netx/pac/pac-funcs-test.js: (testWeekdayRange) - added mising
runTests call
(incDate) (decDate) (monthToStr) moved level up from function scope
to be shareable
(testDateRange2) new method, tests last days of months.
(testDateRange3) new method, tests first days of months
* netx/net/sourceforge/jnlp/runtime/pac-funcs.js:
(dateRange) logic of this method moved to isDateInRange. This one now serve
just as api using current date
(isDateInRange) logic of dateRange, can calculate ranges against any date
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RhinoDateRAngeCornerCasesTests.diff
Type: text/x-patch
Size: 7320 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111108/4c6d514a/RhinoDateRAngeCornerCasesTests.diff
From aph at redhat.com Tue Nov 8 07:44:58 2011
From: aph at redhat.com (Andrew Haley)
Date: Tue, 08 Nov 2011 15:44:58 +0000
Subject: ARM jtreg results
In-Reply-To: <4EB7E23F.6070909@redhat.com>
References: <4EB7DC9B.6000909@redhat.com> <4EB7E23F.6070909@redhat.com>
Message-ID: <4EB94E7A.4070503@redhat.com>
On 11/07/2011 01:50 PM, Pavel Tisnovsky wrote:
> Btw, I see many error messages in your log file which are similar to this one:
>
> execStatus=Error. Problem deleting file: /home/aph/iced-arm/temp2/test/jdk/JTwork/scratch/.nfs000000000118d826000000b0
>
> It could be caused by some problem with NFS (file permissions, full fs etc.)
I think it's actually a race (in the test harness) between closing a
temp file and deleting the scratch directory. In a local file system
this wouldn't matter, but you can't do this under NFS.
Andrew.
From dbhole at icedtea.classpath.org Tue Nov 8 08:02:01 2011
From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org)
Date: Tue, 08 Nov 2011 16:02:01 +0000
Subject: /hg/release/icedtea-web-1.1: 4 new changesets
Message-ID:
changeset 8d2e4ca03cd5 in /hg/release/icedtea-web-1.1
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=8d2e4ca03cd5
author: Deepak Bhole
date: Fri Oct 28 14:29:21 2011 -0400
RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains
and suffix domain SOP bypass
changeset 77cbf8633a7c in /hg/release/icedtea-web-1.1
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=77cbf8633a7c
author: Deepak Bhole
date: Fri Oct 28 14:46:18 2011 -0400
Prepare to release 1.1.4
changeset e1040ab7de28 in /hg/release/icedtea-web-1.1
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=e1040ab7de28
author: Deepak Bhole
date: Tue Nov 08 10:59:16 2011 -0500
Added tag icedtea-web-1.1.4 for changeset 77cbf8633a7c
changeset 452aa7fc0e7f in /hg/release/icedtea-web-1.1
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=452aa7fc0e7f
author: Deepak Bhole
date: Fri Oct 28 17:28:53 2011 -0400
Prepare for 1.1.5
diffstat:
.hgtags | 1 +
ChangeLog | 17 +++
NEWS | 6 +-
configure.ac | 2 +-
netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java | 70 +-------------
5 files changed, 25 insertions(+), 71 deletions(-)
diffs (137 lines):
diff -r f968cbeaac0b -r 452aa7fc0e7f .hgtags
--- a/.hgtags Fri Oct 28 14:31:42 2011 -0400
+++ b/.hgtags Fri Oct 28 17:28:53 2011 -0400
@@ -3,3 +3,4 @@
44535ca475930d6f6a307b852ccb3f3aa97f0887 icedtea-web-1.1.1
4443143761dbd3294bfd0d9096121ca55c035d1b icedtea-web-1.1.2
3352c0b0d9bb990ec4dd89baadc2ef11bc8eed28 icedtea-web-1.1.3
+77cbf8633a7c63046eb70fbe89d594a8c7b116af icedtea-web-1.1.4
diff -r f968cbeaac0b -r 452aa7fc0e7f ChangeLog
--- a/ChangeLog Fri Oct 28 14:31:42 2011 -0400
+++ b/ChangeLog Fri Oct 28 17:28:53 2011 -0400
@@ -1,3 +1,20 @@
+2011-09-28 Deepak Bhole
+
+ * NEWS: Prepare for 1.1.5
+ * configure.ac: Same
+
+2011-10-28 Deepak Bhole
+
+ * NEWS: Prepare to release 1.1.4
+ * configure.ac: Same
+
+2011-10-28 Deepak Bhole
+ RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and
+ suffix domain SOP bypass
+ * NEWS: Updated
+ * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
+ (checkPermission): Remove special case for SocketPermission.
+
2011-10-27 Deepak Bhole
PR778: Jar download and server certificate verification deadlock
diff -r f968cbeaac0b -r 452aa7fc0e7f NEWS
--- a/NEWS Fri Oct 28 14:31:42 2011 -0400
+++ b/NEWS Fri Oct 28 17:28:53 2011 -0400
@@ -8,7 +8,11 @@
CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY
-New in release 1.1.4 (2011-XX-XX):
+New in release 1.1.5 (2011-XX-XX):
+
+New in release 1.1.4 (2011-11-08):
+* Security updates:
+ - RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
* Common
- PR778: Jar download and server certificate verification deadlock
diff -r f968cbeaac0b -r 452aa7fc0e7f configure.ac
--- a/configure.ac Fri Oct 28 14:31:42 2011 -0400
+++ b/configure.ac Fri Oct 28 17:28:53 2011 -0400
@@ -1,4 +1,4 @@
-AC_INIT([icedtea-web],[1.1.4pre],[distro-pkg-dev at openjdk.java.net], [icedtea-web], [http://icedtea.classpath.org/wiki/IcedTea-Web])
+AC_INIT([icedtea-web],[1.1.5pre],[distro-pkg-dev at openjdk.java.net], [icedtea-web], [http://icedtea.classpath.org/wiki/IcedTea-Web])
AM_INIT_AUTOMAKE([1.9 tar-pax foreign])
AC_CONFIG_FILES([Makefile netx.manifest])
diff -r f968cbeaac0b -r 452aa7fc0e7f netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Fri Oct 28 14:31:42 2011 -0400
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Fri Oct 28 17:28:53 2011 -0400
@@ -281,75 +281,7 @@
// }
// }
- try {
- super.checkPermission(perm);
- } catch (SecurityException se) {
-
- //This section is a special case for dealing with SocketPermissions.
- if (JNLPRuntime.isDebug())
- System.err.println("Requesting permission: " + perm.toString());
-
- //Change this SocketPermission's action to connect and accept
- //(and resolve). This is to avoid asking for connect permission
- //on every address resolve.
- Permission tmpPerm = null;
- if (perm instanceof SocketPermission) {
- tmpPerm = new SocketPermission(perm.getName(),
- SecurityConstants.SOCKET_CONNECT_ACCEPT_ACTION);
-
- // before proceeding, check if we are trying to connect to same origin
- ApplicationInstance app = getApplication();
- JNLPFile file = app.getJNLPFile();
-
- String srcHost = file.getSourceLocation().getAuthority();
- String destHost = name;
-
- // host = abc.xyz.com or abc.xyz.com:
- if (destHost.indexOf(':') >= 0)
- destHost = destHost.substring(0, destHost.indexOf(':'));
-
- // host = abc.xyz.com
- String[] hostComponents = destHost.split("\\.");
-
- int length = hostComponents.length;
- if (length >= 2) {
-
- // address is in xxx.xxx.xxx format
- destHost = hostComponents[length - 2] + "." + hostComponents[length - 1];
-
- // host = xyz.com i.e. origin
- boolean isDestHostName = false;
-
- // make sure that it is not an ip address
- try {
- Integer.parseInt(hostComponents[length - 1]);
- } catch (NumberFormatException e) {
- isDestHostName = true;
- }
-
- if (isDestHostName) {
- // okay, destination is hostname. Now figure out if it is a subset of origin
- if (srcHost.endsWith(destHost)) {
- addPermission(tmpPerm);
- return;
- }
- }
- }
- } else {
- tmpPerm = perm;
- }
-
- if (tmpPerm != null) {
- //askPermission will only prompt the user on SocketPermission
- //meaning we're denying all other SecurityExceptions that may arise.
- if (askPermission(tmpPerm)) {
- addPermission(tmpPerm);
- //return quietly.
- } else {
- throw se;
- }
- }
- }
+ super.checkPermission(perm);
} catch (SecurityException ex) {
if (JNLPRuntime.isDebug()) {
System.out.println("Denying permission: " + perm);
From andrew at icedtea.classpath.org Tue Nov 8 08:02:15 2011
From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org)
Date: Tue, 08 Nov 2011 16:02:15 +0000
Subject: /hg/release/icedtea6-1.8: 3 new changesets
Message-ID:
changeset 3835320867e7 in /hg/release/icedtea6-1.8
details: http://icedtea.classpath.org/hg/release/icedtea6-1.8?cmd=changeset;node=3835320867e7
author: Andrew John Hughes
date: Tue Nov 08 01:09:07 2011 +0000
RH742515, CVE-2011-3377: IcedTea-Web: second-level domain and suffix
domain SOP bypass
2011-10-28 Deepak Bhole
RH742515, CVE-2011-3377: IcedTea-Web: second-level domain
and suffix domain SOP bypass
* NEWS: Updated.
* netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
(checkPermission): Remove special case for SocketPermission.
changeset 14bad91b28f2 in /hg/release/icedtea6-1.8
details: http://icedtea.classpath.org/hg/release/icedtea6-1.8?cmd=changeset;node=14bad91b28f2
author: Andrew John Hughes
date: Tue Nov 08 01:10:30 2011 +0000
Prepare for 1.8.11 release.
2011-11-08 Andrew John Hughes
* NEWS: Set date for 1.8.11.
* configure.ac: Bump to 1.8.11 proper.
changeset ef616f503e56 in /hg/release/icedtea6-1.8
details: http://icedtea.classpath.org/hg/release/icedtea6-1.8?cmd=changeset;node=ef616f503e56
author: Andrew John Hughes
date: Tue Nov 08 01:10:36 2011 +0000
Added tag icedtea6-1.8.11 for changeset 14bad91b28f2
diffstat:
.hgtags | 1 +
ChangeLog | 13 ++
NEWS | 5 +-
configure.ac | 2 +-
netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java | 68 +-------------
5 files changed, 21 insertions(+), 68 deletions(-)
diffs (148 lines):
diff -r b3744307bac0 -r ef616f503e56 .hgtags
--- a/.hgtags Fri Oct 21 15:04:36 2011 +0100
+++ b/.hgtags Tue Nov 08 01:10:36 2011 +0000
@@ -31,3 +31,4 @@
2cc9c0e4eadeacc5f52aae1424917aceeebe00c4 icedtea6-1.8.8
ae7e52528576f9f176761d4d41219084682be3df icedtea6-1.8.9
17524de1ad5c9871b0e2a96381630ef4d11ee737 icedtea6-1.8.10
+14bad91b28f287279c937f4e2c0e8665cdd9bdcf icedtea6-1.8.11
diff -r b3744307bac0 -r ef616f503e56 ChangeLog
--- a/ChangeLog Fri Oct 21 15:04:36 2011 +0100
+++ b/ChangeLog Tue Nov 08 01:10:36 2011 +0000
@@ -1,3 +1,16 @@
+2011-11-08 Andrew John Hughes
+
+ * NEWS: Set date for 1.8.11.
+ * configure.ac: Bump to 1.8.11 proper.
+
+2011-10-28 Deepak Bhole
+
+ RH742515, CVE-2011-3377: IcedTea-Web: second-level domain and
+ suffix domain SOP bypass
+ * NEWS: Updated.
+ * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
+ (checkPermission): Remove special case for SocketPermission.
+
2011-10-21 Andrew John Hughes
* patches/security/20111018/7083012.patch:
diff -r b3744307bac0 -r ef616f503e56 NEWS
--- a/NEWS Fri Oct 21 15:04:36 2011 +0100
+++ b/NEWS Tue Nov 08 01:10:36 2011 +0000
@@ -8,7 +8,10 @@
CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY
-New in release 1.8.11 (20XX-XX-XX):
+New in release 1.8.11 (2011-11-08):
+
+* Security fixes
+ - RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
New in release 1.8.10 (2011-10-18):
diff -r b3744307bac0 -r ef616f503e56 configure.ac
--- a/configure.ac Fri Oct 21 15:04:36 2011 +0100
+++ b/configure.ac Tue Nov 08 01:10:36 2011 +0000
@@ -1,4 +1,4 @@
-AC_INIT([icedtea6],[1.8.11pre],[distro-pkg-dev at openjdk.java.net])
+AC_INIT([icedtea6],[1.8.11],[distro-pkg-dev at openjdk.java.net])
AM_INIT_AUTOMAKE([1.9 tar-pax foreign])
AC_CONFIG_FILES([Makefile])
diff -r b3744307bac0 -r ef616f503e56 netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Fri Oct 21 15:04:36 2011 +0100
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Tue Nov 08 01:10:36 2011 +0000
@@ -250,60 +250,10 @@
super.checkPermission(perm);
} catch (SecurityException se) {
- //This section is a special case for dealing with SocketPermissions.
if (JNLPRuntime.isDebug())
System.err.println("Requesting permission: " + perm.toString());
- //Change this SocketPermission's action to connect and accept
- //(and resolve). This is to avoid asking for connect permission
- //on every address resolve.
- Permission tmpPerm = null;
- if (perm instanceof SocketPermission) {
- tmpPerm = new SocketPermission(perm.getName(),
- SecurityConstants.SOCKET_CONNECT_ACCEPT_ACTION);
-
- // before proceeding, check if we are trying to connect to same origin
- ApplicationInstance app = getApplication();
- JNLPFile file = app.getJNLPFile();
-
- String srcHost = file.getSourceLocation().getAuthority();
- String destHost = name;
-
- // host = abc.xyz.com or abc.xyz.com:
- if (destHost.indexOf(':') >= 0)
- destHost = destHost.substring(0, destHost.indexOf(':'));
-
- // host = abc.xyz.com
- String[] hostComponents = destHost.split("\\.");
-
- int length = hostComponents.length;
- if (length >= 2) {
-
- // address is in xxx.xxx.xxx format
- destHost = hostComponents[length -2] + "." + hostComponents[length -1];
-
- // host = xyz.com i.e. origin
- boolean isDestHostName = false;
-
- // make sure that it is not an ip address
- try {
- Integer.parseInt(hostComponents[length -1]);
- } catch (NumberFormatException e) {
- isDestHostName = true;
- }
-
- if (isDestHostName) {
- // okay, destination is hostname. Now figure out if it is a subset of origin
- if (srcHost.endsWith(destHost)) {
- addPermission(tmpPerm);
- return;
- }
- }
- }
-
- } else if (perm instanceof SecurityPermission) {
- tmpPerm = perm;
-
+ if (perm instanceof SecurityPermission) {
// JCE's initialization requires putProviderProperty permission
if (perm.equals(new SecurityPermission("putProviderProperty.SunJCE"))) {
if (inTrustedCallChain("com.sun.crypto.provider.SunJCE", "run")) {
@@ -312,29 +262,15 @@
}
} else if (perm instanceof RuntimePermission) {
- tmpPerm = perm;
-
// KeyGenerator's init method requires internal spec access
if (perm.equals(new SecurityPermission("accessClassInPackage.sun.security.internal.spec"))) {
if (inTrustedCallChain("javax.crypto.KeyGenerator", "init")) {
return;
}
}
-
- } else {
- tmpPerm = perm;
}
- if (tmpPerm != null) {
- //askPermission will only prompt the user on SocketPermission
- //meaning we're denying all other SecurityExceptions that may arise.
- if (askPermission(tmpPerm)) {
- addPermission(tmpPerm);
- //return quietly.
- } else {
- throw se;
- }
- }
+ throw se;
}
}
catch (SecurityException ex) {
From dbhole at icedtea.classpath.org Tue Nov 8 08:02:18 2011
From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org)
Date: Tue, 08 Nov 2011 16:02:18 +0000
Subject: /hg/release/icedtea-web-1.0: 4 new changesets
Message-ID:
changeset a121fcd57325 in /hg/release/icedtea-web-1.0
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.0?cmd=changeset;node=a121fcd57325
author: Deepak Bhole
date: Fri Oct 28 14:29:21 2011 -0400
RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains
and suffix domain SOP bypass
changeset 4f92ef9e37c4 in /hg/release/icedtea-web-1.0
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.0?cmd=changeset;node=4f92ef9e37c4
author: Deepak Bhole
date: Fri Oct 28 17:03:37 2011 -0400
Prepare to release 1.0.6
changeset 8d74eb79a664 in /hg/release/icedtea-web-1.0
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.0?cmd=changeset;node=8d74eb79a664
author: Deepak Bhole
date: Tue Nov 08 10:58:21 2011 -0500
Added tag icedtea-web-1.0.6 for changeset 4f92ef9e37c4
changeset 8d2ac271064f in /hg/release/icedtea-web-1.0
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.0?cmd=changeset;node=8d2ac271064f
author: Deepak Bhole
date: Fri Oct 28 17:27:54 2011 -0400
Prepare for 1.0.7
diffstat:
.hgtags | 1 +
ChangeLog | 18 +++
NEWS | 6 +-
configure.ac | 2 +-
netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java | 70 +-------------
5 files changed, 26 insertions(+), 71 deletions(-)
diffs (138 lines):
diff -r 574e571c53ae -r 8d2ac271064f .hgtags
--- a/.hgtags Wed Sep 28 16:29:29 2011 -0400
+++ b/.hgtags Fri Oct 28 17:27:54 2011 -0400
@@ -5,3 +5,4 @@
1cff369667f834dba0d9f01722245c3004947647 icedtea-web-1.0.3
99a3760950c668b7da194ac3705e13d4677b3ef7 icedtea-web-1.0.4
ef67e5cb533c98c1cf9b71e6a8dd86bebe9bc482 icedtea-web-1.0.5
+4f92ef9e37c4f70498784637da362e044c887727 icedtea-web-1.0.6
diff -r 574e571c53ae -r 8d2ac271064f ChangeLog
--- a/ChangeLog Wed Sep 28 16:29:29 2011 -0400
+++ b/ChangeLog Fri Oct 28 17:27:54 2011 -0400
@@ -1,3 +1,21 @@
+2011-10-28 Deepak Bhole
+
+ * configure.ac: Prepare for 1.0.7
+ * NEWS: Same
+
+2011-10-28 Deepak Bhole
+
+ * configure.ac: Prepare to release 1.0.6
+ * NEWS: Same
+
+2011-10-28 Deepak Bhole
+
+ RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and
+ suffix domain SOP bypass
+ * NEWS: Updated
+ * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
+ (checkPermission): Remove special case for SocketPermission.
+
2011-09-28 Deepak Bhole
* configure.ac: Prepare for 1.0.6
diff -r 574e571c53ae -r 8d2ac271064f NEWS
--- a/NEWS Wed Sep 28 16:29:29 2011 -0400
+++ b/NEWS Fri Oct 28 17:27:54 2011 -0400
@@ -8,7 +8,11 @@
CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY
-New in release 1.0.6 (2011-XX-XX):
+New in release 1.0.7 (2011-XX-XX):
+
+New in release 1.0.6 (2011-11-08):
+* Security updates
+ - RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
New in release 1.0.5 (2011-09-28):
* Plugin
diff -r 574e571c53ae -r 8d2ac271064f configure.ac
--- a/configure.ac Wed Sep 28 16:29:29 2011 -0400
+++ b/configure.ac Fri Oct 28 17:27:54 2011 -0400
@@ -1,4 +1,4 @@
-AC_INIT([icedtea-web],[1.0.6pre],[distro-pkg-dev at openjdk.java.net], [icedtea-web], [http://icedtea.classpath.org/wiki/IcedTea-Web])
+AC_INIT([icedtea-web],[1.0.7pre],[distro-pkg-dev at openjdk.java.net], [icedtea-web], [http://icedtea.classpath.org/wiki/IcedTea-Web])
AM_INIT_AUTOMAKE([1.9 tar-pax foreign])
AC_CONFIG_FILES([Makefile])
diff -r 574e571c53ae -r 8d2ac271064f netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Wed Sep 28 16:29:29 2011 -0400
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Fri Oct 28 17:27:54 2011 -0400
@@ -257,75 +257,7 @@
// }
// }
- try {
- super.checkPermission(perm);
- } catch (SecurityException se) {
-
- //This section is a special case for dealing with SocketPermissions.
- if (JNLPRuntime.isDebug())
- System.err.println("Requesting permission: " + perm.toString());
-
- //Change this SocketPermission's action to connect and accept
- //(and resolve). This is to avoid asking for connect permission
- //on every address resolve.
- Permission tmpPerm = null;
- if (perm instanceof SocketPermission) {
- tmpPerm = new SocketPermission(perm.getName(),
- SecurityConstants.SOCKET_CONNECT_ACCEPT_ACTION);
-
- // before proceeding, check if we are trying to connect to same origin
- ApplicationInstance app = getApplication();
- JNLPFile file = app.getJNLPFile();
-
- String srcHost = file.getSourceLocation().getAuthority();
- String destHost = name;
-
- // host = abc.xyz.com or abc.xyz.com:
- if (destHost.indexOf(':') >= 0)
- destHost = destHost.substring(0, destHost.indexOf(':'));
-
- // host = abc.xyz.com
- String[] hostComponents = destHost.split("\\.");
-
- int length = hostComponents.length;
- if (length >= 2) {
-
- // address is in xxx.xxx.xxx format
- destHost = hostComponents[length - 2] + "." + hostComponents[length - 1];
-
- // host = xyz.com i.e. origin
- boolean isDestHostName = false;
-
- // make sure that it is not an ip address
- try {
- Integer.parseInt(hostComponents[length - 1]);
- } catch (NumberFormatException e) {
- isDestHostName = true;
- }
-
- if (isDestHostName) {
- // okay, destination is hostname. Now figure out if it is a subset of origin
- if (srcHost.endsWith(destHost)) {
- addPermission(tmpPerm);
- return;
- }
- }
- }
- } else {
- tmpPerm = perm;
- }
-
- if (tmpPerm != null) {
- //askPermission will only prompt the user on SocketPermission
- //meaning we're denying all other SecurityExceptions that may arise.
- if (askPermission(tmpPerm)) {
- addPermission(tmpPerm);
- //return quietly.
- } else {
- throw se;
- }
- }
- }
+ super.checkPermission(perm);
} catch (SecurityException ex) {
if (JNLPRuntime.isDebug()) {
System.out.println("Denying permission: " + perm);
From andrew at icedtea.classpath.org Tue Nov 8 08:02:31 2011
From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org)
Date: Tue, 08 Nov 2011 16:02:31 +0000
Subject: /hg/release/icedtea6-1.9: 3 new changesets
Message-ID:
changeset f5478dd60f9e in /hg/release/icedtea6-1.9
details: http://icedtea.classpath.org/hg/release/icedtea6-1.9?cmd=changeset;node=f5478dd60f9e
author: Andrew John Hughes
date: Tue Nov 08 01:05:03 2011 +0000
RH742515, CVE-2011-3377: IcedTea-Web: second-level domain and suffix
domain SOP bypass
2011-10-28 Deepak Bhole
RH742515, CVE-2011-3377: IcedTea-Web: second-level domain
and suffix domain SOP bypass
* NEWS: Updated.
* netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
(checkPermission): Remove special case for SocketPermission.
changeset fc3dc6228784 in /hg/release/icedtea6-1.9
details: http://icedtea.classpath.org/hg/release/icedtea6-1.9?cmd=changeset;node=fc3dc6228784
author: Andrew John Hughes
date: Tue Nov 08 01:07:53 2011 +0000
Prepare for 1.9.11 release.
2011-11-08 Andrew John Hughes
* NEWS: Add 1.9.11 release date.
* configure.ac: Bump to 1.9.11 proper.
changeset 594021574961 in /hg/release/icedtea6-1.9
details: http://icedtea.classpath.org/hg/release/icedtea6-1.9?cmd=changeset;node=594021574961
author: Andrew John Hughes
date: Tue Nov 08 01:08:21 2011 +0000
Added tag icedtea6-1.9.11 for changeset fc3dc6228784
diffstat:
.hgtags | 1 +
ChangeLog | 13 ++
NEWS | 5 +-
configure.ac | 2 +-
netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java | 68 +-------------
5 files changed, 21 insertions(+), 68 deletions(-)
diffs (148 lines):
diff -r 30ddc2f3dbe4 -r 594021574961 .hgtags
--- a/.hgtags Fri Oct 21 15:04:36 2011 +0100
+++ b/.hgtags Tue Nov 08 01:08:21 2011 +0000
@@ -30,3 +30,4 @@
25b9909a5432b811f85b121305a6ba7f01c7aace icedtea6-1.9.8
5eedbbda2c822758fd693f7b1ad9a73caca53471 icedtea6-1.9.9
7451a7b2b43e5c529c53a28361693cd51fc41a18 icedtea6-1.9.10
+fc3dc6228784993d02959aac8796f2accdedb857 icedtea6-1.9.11
diff -r 30ddc2f3dbe4 -r 594021574961 ChangeLog
--- a/ChangeLog Fri Oct 21 15:04:36 2011 +0100
+++ b/ChangeLog Tue Nov 08 01:08:21 2011 +0000
@@ -1,3 +1,16 @@
+2011-11-08 Andrew John Hughes
+
+ * NEWS: Add 1.9.11 release date.
+ * configure.ac: Bump to 1.9.11 proper.
+
+2011-10-28 Deepak Bhole
+
+ RH742515, CVE-2011-3377: IcedTea-Web: second-level domain and
+ suffix domain SOP bypass
+ * NEWS: Updated.
+ * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
+ (checkPermission): Remove special case for SocketPermission.
+
2011-10-21 Andrew John Hughes
* patches/security/20111018/7083012.patch:
diff -r 30ddc2f3dbe4 -r 594021574961 NEWS
--- a/NEWS Fri Oct 21 15:04:36 2011 +0100
+++ b/NEWS Tue Nov 08 01:08:21 2011 +0000
@@ -8,7 +8,10 @@
CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY
-New in release 1.9.11 (20XX-XX-XX):
+New in release 1.9.11 (2011-11-08):
+
+* Security fixes
+ - RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
New in release 1.9.10 (2011-10-18):
diff -r 30ddc2f3dbe4 -r 594021574961 configure.ac
--- a/configure.ac Fri Oct 21 15:04:36 2011 +0100
+++ b/configure.ac Tue Nov 08 01:08:21 2011 +0000
@@ -1,4 +1,4 @@
-AC_INIT([icedtea6],[1.9.11pre],[distro-pkg-dev at openjdk.java.net])
+AC_INIT([icedtea6],[1.9.11],[distro-pkg-dev at openjdk.java.net])
AM_INIT_AUTOMAKE([1.9 tar-pax foreign])
AC_CONFIG_FILES([Makefile])
diff -r 30ddc2f3dbe4 -r 594021574961 netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Fri Oct 21 15:04:36 2011 +0100
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Tue Nov 08 01:08:21 2011 +0000
@@ -250,60 +250,10 @@
super.checkPermission(perm);
} catch (SecurityException se) {
- //This section is a special case for dealing with SocketPermissions.
if (JNLPRuntime.isDebug())
System.err.println("Requesting permission: " + perm.toString());
- //Change this SocketPermission's action to connect and accept
- //(and resolve). This is to avoid asking for connect permission
- //on every address resolve.
- Permission tmpPerm = null;
- if (perm instanceof SocketPermission) {
- tmpPerm = new SocketPermission(perm.getName(),
- SecurityConstants.SOCKET_CONNECT_ACCEPT_ACTION);
-
- // before proceeding, check if we are trying to connect to same origin
- ApplicationInstance app = getApplication();
- JNLPFile file = app.getJNLPFile();
-
- String srcHost = file.getSourceLocation().getAuthority();
- String destHost = name;
-
- // host = abc.xyz.com or abc.xyz.com:
- if (destHost.indexOf(':') >= 0)
- destHost = destHost.substring(0, destHost.indexOf(':'));
-
- // host = abc.xyz.com
- String[] hostComponents = destHost.split("\\.");
-
- int length = hostComponents.length;
- if (length >= 2) {
-
- // address is in xxx.xxx.xxx format
- destHost = hostComponents[length -2] + "." + hostComponents[length -1];
-
- // host = xyz.com i.e. origin
- boolean isDestHostName = false;
-
- // make sure that it is not an ip address
- try {
- Integer.parseInt(hostComponents[length -1]);
- } catch (NumberFormatException e) {
- isDestHostName = true;
- }
-
- if (isDestHostName) {
- // okay, destination is hostname. Now figure out if it is a subset of origin
- if (srcHost.endsWith(destHost)) {
- addPermission(tmpPerm);
- return;
- }
- }
- }
-
- } else if (perm instanceof SecurityPermission) {
- tmpPerm = perm;
-
+ if (perm instanceof SecurityPermission) {
// JCE's initialization requires putProviderProperty permission
if (perm.equals(new SecurityPermission("putProviderProperty.SunJCE"))) {
if (inTrustedCallChain("com.sun.crypto.provider.SunJCE", "run")) {
@@ -312,29 +262,15 @@
}
} else if (perm instanceof RuntimePermission) {
- tmpPerm = perm;
-
// KeyGenerator's init method requires internal spec access
if (perm.equals(new SecurityPermission("accessClassInPackage.sun.security.internal.spec"))) {
if (inTrustedCallChain("javax.crypto.KeyGenerator", "init")) {
return;
}
}
-
- } else {
- tmpPerm = perm;
}
- if (tmpPerm != null) {
- //askPermission will only prompt the user on SocketPermission
- //meaning we're denying all other SecurityExceptions that may arise.
- if (askPermission(tmpPerm)) {
- addPermission(tmpPerm);
- //return quietly.
- } else {
- throw se;
- }
- }
+ throw se;
}
}
catch (SecurityException ex) {
From dbhole at redhat.com Tue Nov 8 08:02:34 2011
From: dbhole at redhat.com (Deepak Bhole)
Date: Tue, 8 Nov 2011 11:02:34 -0500
Subject: IcedTea-Web 1.0.6 and 1.1.4 (security releases) released
Message-ID: <20111108160233.GD22610@redhat.com>
IcedTea-Web 1.0.6 and 1.1.4 have been released. These are security fix only
releases and address a security issue classified as having moderate impact.
What's new in 1.0.6 and 1.1.4:
RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
The following people helped with this release:
Omair Majid
Checksums:
44a770da85fd2e342ab09e065798a07d04601ea51879df4a5e88f804e4f02eba icedtea-web-1.0.6.tar.gz
b17a742af0153b7887cf667a160f8519afad125bc515b0f4783c66e7ee1a7f26 icedtea-web-1.1.4.tar.gz
Download links:
http://icedtea.classpath.org/download/source/icedtea-web-1.0.6.tar.gz
http://icedtea.classpath.org/download/source/icedtea-web-1.1.4.tar.gz
After extracting, it can be built as per instructions here:
http://icedtea.classpath.org/wiki/IcedTea-Web#Building_IcedTea-Web
Cheers,
Deepak
From dbhole at icedtea.classpath.org Tue Nov 8 08:06:59 2011
From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org)
Date: Tue, 08 Nov 2011 16:06:59 +0000
Subject: /hg/icedtea-web: 2 new changesets
Message-ID:
changeset 614de01ec4e4 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=614de01ec4e4
author: Deepak Bhole
date: Fri Oct 28 14:29:21 2011 -0400
RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains
and suffix domain SOP bypass
changeset f36e0b3fb9f0 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=f36e0b3fb9f0
author: Deepak Bhole
date: Tue Nov 08 11:06:52 2011 -0500
merge
diffstat:
ChangeLog | 16 +++
NEWS | 2 +
netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java | 70 +-------------
netx/net/sourceforge/jnlp/tools/JarSigner.java | 2 +-
4 files changed, 20 insertions(+), 70 deletions(-)
diffs (134 lines):
diff -r 9f5ea9198a66 -r f36e0b3fb9f0 ChangeLog
--- a/ChangeLog Thu Oct 27 18:24:46 2011 -0400
+++ b/ChangeLog Tue Nov 08 11:06:52 2011 -0500
@@ -1,3 +1,19 @@
+2011-10-31 Omair Majid
+
+ PR808: javaws is unable to start when missing jars are enumerated before
+ main jar
+ * NEWS: Update.
+ * netx/net/sourceforge/jnlp/tools/JarSigner.java (verifyJars): Continue
+ with other jars if the first jar can't be used.
+
+2011-10-28 Deepak Bhole
+
+ RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and
+ suffix domain SOP bypass
+ * NEWS: Updated
+ * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
+ (checkPermission): Remove special case for SocketPermission.
+
2011-10-27 Deepak Bhole
PR778: Jar download and server certificate verification deadlock
diff -r 9f5ea9198a66 -r f36e0b3fb9f0 NEWS
--- a/NEWS Thu Oct 27 18:24:46 2011 -0400
+++ b/NEWS Tue Nov 08 11:06:52 2011 -0500
@@ -12,6 +12,7 @@
* Security updates:
- RH718164, CVE-2011-2513: Home directory path disclosure to untrusted applications
- RH718170, CVE-2011-2514: Java Web Start security warning dialog manipulation
+ - RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
* NetX
- PR618: Can't install OpenDJ, JavaWebStart fails with Input stream is null error
- PR765: JNLP file with all resource jars marked as 'lazy' fails to validate signature and stops the launch of application
@@ -29,6 +30,7 @@
- PR778: Jar download and server certificate verification deadlock
- PR789: typo in jrunscript.sh
- PR794: IcedTea-Web does not work if a Web Start app jar has a Class-Path element in the manifest
+ - PR808: javaws is unable to start, when missing jars are enumerated before main jar
- RH734081: Javaws cannot use proxy settings from Firefox
- RH738814: Access denied at ssl handshake
- Support for authenticating using client certificates
diff -r 9f5ea9198a66 -r f36e0b3fb9f0 netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Thu Oct 27 18:24:46 2011 -0400
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java Tue Nov 08 11:06:52 2011 -0500
@@ -281,75 +281,7 @@
// }
// }
- try {
- super.checkPermission(perm);
- } catch (SecurityException se) {
-
- //This section is a special case for dealing with SocketPermissions.
- if (JNLPRuntime.isDebug())
- System.err.println("Requesting permission: " + perm.toString());
-
- //Change this SocketPermission's action to connect and accept
- //(and resolve). This is to avoid asking for connect permission
- //on every address resolve.
- Permission tmpPerm = null;
- if (perm instanceof SocketPermission) {
- tmpPerm = new SocketPermission(perm.getName(),
- SecurityConstants.SOCKET_CONNECT_ACCEPT_ACTION);
-
- // before proceeding, check if we are trying to connect to same origin
- ApplicationInstance app = getApplication();
- JNLPFile file = app.getJNLPFile();
-
- String srcHost = file.getSourceLocation().getAuthority();
- String destHost = name;
-
- // host = abc.xyz.com or abc.xyz.com:
- if (destHost.indexOf(':') >= 0)
- destHost = destHost.substring(0, destHost.indexOf(':'));
-
- // host = abc.xyz.com
- String[] hostComponents = destHost.split("\\.");
-
- int length = hostComponents.length;
- if (length >= 2) {
-
- // address is in xxx.xxx.xxx format
- destHost = hostComponents[length - 2] + "." + hostComponents[length - 1];
-
- // host = xyz.com i.e. origin
- boolean isDestHostName = false;
-
- // make sure that it is not an ip address
- try {
- Integer.parseInt(hostComponents[length - 1]);
- } catch (NumberFormatException e) {
- isDestHostName = true;
- }
-
- if (isDestHostName) {
- // okay, destination is hostname. Now figure out if it is a subset of origin
- if (srcHost.endsWith(destHost)) {
- addPermission(tmpPerm);
- return;
- }
- }
- }
- } else {
- tmpPerm = perm;
- }
-
- if (tmpPerm != null) {
- //askPermission will only prompt the user on SocketPermission
- //meaning we're denying all other SecurityExceptions that may arise.
- if (askPermission(tmpPerm)) {
- addPermission(tmpPerm);
- //return quietly.
- } else {
- throw se;
- }
- }
- }
+ super.checkPermission(perm);
} catch (SecurityException ex) {
if (JNLPRuntime.isDebug()) {
System.out.println("Denying permission: " + perm);
diff -r 9f5ea9198a66 -r f36e0b3fb9f0 netx/net/sourceforge/jnlp/tools/JarSigner.java
--- a/netx/net/sourceforge/jnlp/tools/JarSigner.java Thu Oct 27 18:24:46 2011 -0400
+++ b/netx/net/sourceforge/jnlp/tools/JarSigner.java Tue Nov 08 11:06:52 2011 -0500
@@ -194,7 +194,7 @@
// some sort of resource download/cache error. Nothing to add
// in that case ... but don't fail here
if (jarFile == null) {
- return;
+ continue;
}
String localFile = jarFile.getAbsolutePath();
From ahughes at redhat.com Tue Nov 8 08:13:48 2011
From: ahughes at redhat.com (Dr Andrew John Hughes)
Date: Tue, 8 Nov 2011 16:13:48 +0000
Subject: [SECURITY: IcedTea-Web] IcedTea6 1.8.11 and 1.9.11 Released!
In-Reply-To: <20111019004856.GA27941@rivendell.redhat.com>
References: <20111019004856.GA27941@rivendell.redhat.com>
Message-ID: <20111108161348.GX25917@rivendell.middle-earth.co.uk>
The IcedTea project provides a harness to build the source code from
OpenJDK6 using Free Software build tools, along with additional
features such as a PulseAudio sound driver and support for alternative
virtual machines.
A new set of security releases is now available for versions of IcedTea
which include the plugin and Web Start support now developed in the
IcedTea-Web project:
* IcedTea6 1.8.11
* IcedTea6 1.9.11
Where possible, we recommend using IcedTea-Web in preference to these
older versions, in order to obtain the latest bug fixes and features.
All updates contain the following security fixes:
* RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
Full details of each release can be found below.
What?s New?
??????
New in release 1.9.11 (2011-11-08):
* Security fixes
- RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
New in release 1.8.11 (2011-11-08):
* Security fixes
- RH742515, CVE-2011-3377: IcedTea-Web: second-level domain subdomains and suffix domain SOP bypass
The tarballs can be downloaded from:
* http://icedtea.classpath.org/download/source/icedtea6-1.8.11.tar.gz
* http://icedtea.classpath.org/download/source/icedtea6-1.9.11.tar.gz
SHA256 checksums:
6eb418ec0609080a71bda16896124d6e1ac23b2f54af52e05fc22c719e12ca29 icedtea6-1.8.11.tar.gz
fd3b32f8dd1010fa8b752f0224fb25a8fe102c9f82652f0ded32138fd4ba3714 icedtea6-1.9.11.tar.gz
Each tarball is accompanied by a digital signature (available at the
above URL + '.sig'). This is produced using my public key. See
details below in the signature.
The following people helped with these releases:
* Deepak Bhole (RH742515)
* Andrew John Hughes (release management)
* Omair Majid (additional patch preparation work)
We would also like to thank the bug reporters and testers!
To get started:
$ tar xzf icedtea6-.tar.gz
$ cd icedtea6-
Full build requirements and instructions are in INSTALL:
$ ./configure [--enable-zero --enable-pulse-java --enable-systemtap ...]
$ make
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111108/f5283bcd/attachment.bin
From andyrtr at archlinux.org Tue Nov 8 13:14:12 2011
From: andyrtr at archlinux.org (Andreas Radke)
Date: Tue, 8 Nov 2011 22:14:12 +0100
Subject: build failure with new Xulrunner 8
Message-ID: <20111108221412.2c18c3ad@laptop64.home>
I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 \
-DXP_UNIX -I/usr/include/xulrunner-8.0 \
-fPIC -o /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.o -c /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc
/build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc: In function 'NPError plugin_start_appletviewer(ITNPPluginData*)':
/build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1597:118: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
/build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc: In function 'char* NP_GetMIMEDescription()':
/build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc:2266:24: error: new declaration 'char* NP_GetMIMEDescription()'
/usr/include/xulrunner-8.0/npfunctions.h:303:24: error: ambiguates old declaration 'const char* NP_GetMIMEDescription()'
make: ***
[/build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.o] Error 1
checking for MOZILLA... no
checking for MOZILLA... yes
checking for xulrunner version... 8000000
Do you have a fix for this?
-Andy
ArchLinux
From bugzilla-daemon at icedtea.classpath.org Tue Nov 8 14:19:57 2011
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Tue, 08 Nov 2011 22:19:57 +0000
Subject: [Bug 815] New: LibreOffice
Message-ID:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=815
Bug #: 815
Summary: LibreOffice
Classification: Unclassified
Product: IcedTea
Version: unspecified
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: JamVM
AssignedTo: xerxes at zafena.se
ReportedBy: isa_99960 at hotmail.com
CC: unassigned at icedtea.classpath.org
Created attachment 602
--> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=602
LibreOffice problem
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From dbhole at redhat.com Tue Nov 8 14:33:56 2011
From: dbhole at redhat.com (Deepak Bhole)
Date: Tue, 8 Nov 2011 17:33:56 -0500
Subject: build failure with new Xulrunner 8
In-Reply-To: <20111108221412.2c18c3ad@laptop64.home>
References: <20111108221412.2c18c3ad@laptop64.home>
Message-ID: <20111108223355.GH22610@redhat.com>
* Andreas Radke [2011-11-08 16:15]:
> I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 \
> -DXP_UNIX -I/usr/include/xulrunner-8.0 \
> -fPIC -o /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.o -c /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc
> /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc: In function 'NPError plugin_start_appletviewer(ITNPPluginData*)':
> /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1597:118: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc: In function 'char* NP_GetMIMEDescription()':
> /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc:2266:24: error: new declaration 'char* NP_GetMIMEDescription()'
> /usr/include/xulrunner-8.0/npfunctions.h:303:24: error: ambiguates old declaration 'const char* NP_GetMIMEDescription()'
> make: ***
> [/build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.o] Error 1
>
>
> checking for MOZILLA... no
> checking for MOZILLA... yes
> checking for xulrunner version... 8000000
>
> Do you have a fix for this?
>
Fedora upgraded to xulrunner 8 today and I just spotted it this
afternoon too.
I need some time to think about a proper fix. The npapi-sdk guys have
are refusing to back the change out[1] and have ignored a request to
allow version detection so that code can be conditionally compiled[2].
They advocate copying the npapi headers into the source tree which is
unfeasible.
I am working on some autotools magic to allow us to continue using
system npapi.
I am attaching a patch that you can use in the mean time.
Note: It seems that with Arch linux, version detection will work (as it
is detecting 8000000). However Fedora has the last proper xulrunner
version (2) so it will not work there. There may be other distros doing
the same too.
Cheers,
Deepak
1: http://code.google.com/p/npapi-sdk/issues/detail?id=9
2: http://code.google.com/p/npapi-sdk/issues/detail?id=10
-------------- next part --------------
diff -up ./plugin/icedteanp/IcedTeaNPPlugin.cc.sav ./plugin/icedteanp/IcedTeaNPPlugin.cc
--- ./plugin/icedteanp/IcedTeaNPPlugin.cc.sav 2011-11-08 17:27:29.046520865 -0500
+++ ./plugin/icedteanp/IcedTeaNPPlugin.cc 2011-11-08 17:27:40.469611421 -0500
@@ -2262,7 +2262,7 @@ NP_Initialize (NPNetscapeFuncs* browserT
// Returns a string describing the MIME type that this plugin
// handles.
-char*
+const char*
NP_GetMIMEDescription ()
{
PLUGIN_DEBUG ("NP_GetMIMEDescription\n");
From andrew at icedtea.classpath.org Tue Nov 8 14:47:19 2011
From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org)
Date: Tue, 08 Nov 2011 22:47:19 +0000
Subject: /hg/release/icedtea6-1.9: Prepare for 1.9.12.
Message-ID:
changeset 65ae83133df3 in /hg/release/icedtea6-1.9
details: http://icedtea.classpath.org/hg/release/icedtea6-1.9?cmd=changeset;node=65ae83133df3
author: Andrew John Hughes
date: Tue Nov 08 22:47:10 2011 +0000
Prepare for 1.9.12.
2011-11-08 Andrew John Hughes
* NEWS: Prepare for 1.9.12.
* configure.ac: Bump to 1.9.12pre.
diffstat:
ChangeLog | 5 +++++
NEWS | 2 ++
configure.ac | 2 +-
3 files changed, 8 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 594021574961 -r 65ae83133df3 ChangeLog
--- a/ChangeLog Tue Nov 08 01:08:21 2011 +0000
+++ b/ChangeLog Tue Nov 08 22:47:10 2011 +0000
@@ -1,3 +1,8 @@
+2011-11-08 Andrew John Hughes
+
+ * NEWS: Prepare for 1.9.12.
+ * configure.ac: Bump to 1.9.12pre.
+
2011-11-08 Andrew John Hughes
* NEWS: Add 1.9.11 release date.
diff -r 594021574961 -r 65ae83133df3 NEWS
--- a/NEWS Tue Nov 08 01:08:21 2011 +0000
+++ b/NEWS Tue Nov 08 22:47:10 2011 +0000
@@ -8,6 +8,8 @@
CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY
+New in release 1.9.12 (20XX-XX-XX):
+
New in release 1.9.11 (2011-11-08):
* Security fixes
diff -r 594021574961 -r 65ae83133df3 configure.ac
--- a/configure.ac Tue Nov 08 01:08:21 2011 +0000
+++ b/configure.ac Tue Nov 08 22:47:10 2011 +0000
@@ -1,4 +1,4 @@
-AC_INIT([icedtea6],[1.9.11],[distro-pkg-dev at openjdk.java.net])
+AC_INIT([icedtea6],[1.9.12pre],[distro-pkg-dev at openjdk.java.net])
AM_INIT_AUTOMAKE([1.9 tar-pax foreign])
AC_CONFIG_FILES([Makefile])
From andrew at icedtea.classpath.org Tue Nov 8 15:12:21 2011
From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org)
Date: Tue, 08 Nov 2011 23:12:21 +0000
Subject: /hg/release/icedtea6-1.8: Prepare for 1.8.12.
Message-ID:
changeset 0e6611b4f2d9 in /hg/release/icedtea6-1.8
details: http://icedtea.classpath.org/hg/release/icedtea6-1.8?cmd=changeset;node=0e6611b4f2d9
author: Andrew John Hughes
date: Tue Nov 08 23:12:16 2011 +0000
Prepare for 1.8.12.
2011-11-08 Andrew John Hughes
* NEWS: Prepare for 1.8.12.
* configure.ac: Bump to 1.8.12pre.
diffstat:
ChangeLog | 5 +++++
NEWS | 2 ++
configure.ac | 2 +-
3 files changed, 8 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r ef616f503e56 -r 0e6611b4f2d9 ChangeLog
--- a/ChangeLog Tue Nov 08 01:10:36 2011 +0000
+++ b/ChangeLog Tue Nov 08 23:12:16 2011 +0000
@@ -1,3 +1,8 @@
+2011-11-08 Andrew John Hughes
+
+ * NEWS: Prepare for 1.8.12.
+ * configure.ac: Bump to 1.8.12pre.
+
2011-11-08 Andrew John Hughes
* NEWS: Set date for 1.8.11.
diff -r ef616f503e56 -r 0e6611b4f2d9 NEWS
--- a/NEWS Tue Nov 08 01:10:36 2011 +0000
+++ b/NEWS Tue Nov 08 23:12:16 2011 +0000
@@ -8,6 +8,8 @@
CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY
+New in release 1.8.12 (20XX-XX-XX):
+
New in release 1.8.11 (2011-11-08):
* Security fixes
diff -r ef616f503e56 -r 0e6611b4f2d9 configure.ac
--- a/configure.ac Tue Nov 08 01:10:36 2011 +0000
+++ b/configure.ac Tue Nov 08 23:12:16 2011 +0000
@@ -1,4 +1,4 @@
-AC_INIT([icedtea6],[1.8.11],[distro-pkg-dev at openjdk.java.net])
+AC_INIT([icedtea6],[1.8.12pre],[distro-pkg-dev at openjdk.java.net])
AM_INIT_AUTOMAKE([1.9 tar-pax foreign])
AC_CONFIG_FILES([Makefile])
From ahughes at redhat.com Tue Nov 8 15:40:12 2011
From: ahughes at redhat.com (Dr Andrew John Hughes)
Date: Tue, 8 Nov 2011 23:40:12 +0000
Subject: build failure with new Xulrunner 8
In-Reply-To: <20111108223355.GH22610@redhat.com>
References: <20111108221412.2c18c3ad@laptop64.home>
<20111108223355.GH22610@redhat.com>
Message-ID: <20111108234012.GC25917@rivendell.middle-earth.co.uk>
On 17:33 Tue 08 Nov , Deepak Bhole wrote:
> * Andreas Radke [2011-11-08 16:15]:
> > I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 \
> > -DXP_UNIX -I/usr/include/xulrunner-8.0 \
> > -fPIC -o /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.o -c /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc
> > /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc: In function 'NPError plugin_start_appletviewer(ITNPPluginData*)':
> > /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1597:118: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> > /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc: In function 'char* NP_GetMIMEDescription()':
> > /build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.cc:2266:24: error: new declaration 'char* NP_GetMIMEDescription()'
> > /usr/include/xulrunner-8.0/npfunctions.h:303:24: error: ambiguates old declaration 'const char* NP_GetMIMEDescription()'
> > make: ***
> > [/build/src/icedtea-web-1.1.4/plugin/icedteanp/IcedTeaNPPlugin.o] Error 1
> >
> >
> > checking for MOZILLA... no
> > checking for MOZILLA... yes
> > checking for xulrunner version... 8000000
> >
> > Do you have a fix for this?
> >
>
> Fedora upgraded to xulrunner 8 today and I just spotted it this
> afternoon too.
>
> I need some time to think about a proper fix. The npapi-sdk guys have
> are refusing to back the change out[1] and have ignored a request to
> allow version detection so that code can be conditionally compiled[2].
>
> They advocate copying the npapi headers into the source tree which is
> unfeasible.
>
> I am working on some autotools magic to allow us to continue using
> system npapi.
>
> I am attaching a patch that you can use in the mean time.
>
> Note: It seems that with Arch linux, version detection will work (as it
> is detecting 8000000). However Fedora has the last proper xulrunner
> version (2) so it will not work there. There may be other distros doing
> the same too.
>
> Cheers,
> Deepak
>
> 1: http://code.google.com/p/npapi-sdk/issues/detail?id=9
> 2: http://code.google.com/p/npapi-sdk/issues/detail?id=10
> diff -up ./plugin/icedteanp/IcedTeaNPPlugin.cc.sav ./plugin/icedteanp/IcedTeaNPPlugin.cc
> --- ./plugin/icedteanp/IcedTeaNPPlugin.cc.sav 2011-11-08 17:27:29.046520865 -0500
> +++ ./plugin/icedteanp/IcedTeaNPPlugin.cc 2011-11-08 17:27:40.469611421 -0500
> @@ -2262,7 +2262,7 @@ NP_Initialize (NPNetscapeFuncs* browserT
>
> // Returns a string describing the MIME type that this plugin
> // handles.
> -char*
> +const char*
> NP_GetMIMEDescription ()
> {
> PLUGIN_DEBUG ("NP_GetMIMEDescription\n");
One wonders if they are trying to make sure no-one uses Firefox...
I'm sure Google will be more than happy for them to do that.
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111108/ce69ae6f/attachment.bin
From bugzilla-daemon at icedtea.classpath.org Tue Nov 8 18:07:18 2011
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Wed, 09 Nov 2011 02:07:18 +0000
Subject: [Bug 815] LibreOffice
In-Reply-To:
References:
Message-ID:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=815
Andrew John Hughes changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #602|text/x-log |text/plain
mime type| |
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at icedtea.classpath.org Tue Nov 8 18:08:55 2011
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Wed, 09 Nov 2011 02:08:55 +0000
Subject: [Bug 815] LibreOffice
In-Reply-To:
References:
Message-ID:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=815
Andrew John Hughes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ahughes at redhat.com
Component|JamVM |IcedTea6
Version|unspecified |6-1.10.4
Resolution| |INVALID
AssignedTo|xerxes at zafena.se |unassigned at icedtea.classpat
| |h.org
--- Comment #1 from Andrew John Hughes 2011-11-09 02:08:55 UTC ---
This is a crash in LibreOffice code. I suggest you file a bug with them.
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
From ptisnovs at icedtea.classpath.org Wed Nov 9 01:14:00 2011
From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org)
Date: Wed, 09 Nov 2011 09:14:00 +0000
Subject: /hg/gfx-test: 2011-11-09 Pavel Tisnovsky
Message-ID:
changeset 7bbb18623f9e in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=7bbb18623f9e
author: Pavel Tisnovsky
date: Wed Nov 09 10:15:54 2011 +0100
2011-11-09 Pavel Tisnovsky
* Makefile: updated
* src/org/gfxtest/framework/CommonClippingOperations.java:
Refactoring, added eight new tests to this test suite.
diffstat:
ChangeLog | 6 +
Makefile | 7 +-
src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java | 319 +++++++--
3 files changed, 258 insertions(+), 74 deletions(-)
diffs (477 lines):
diff -r 843d131b0d88 -r 7bbb18623f9e ChangeLog
--- a/ChangeLog Tue Nov 08 12:51:12 2011 +0100
+++ b/ChangeLog Wed Nov 09 10:15:54 2011 +0100
@@ -1,3 +1,9 @@
+2011-11-09 Pavel Tisnovsky
+
+ * Makefile: updated
+ * src/org/gfxtest/framework/CommonClippingOperations.java:
+ Refactoring, added eight new tests to this test suite.
+
2011-11-08 Pavel Tisnovsky
* src/org/gfxtest/framework/CommonClippingOperations.java:
diff -r 843d131b0d88 -r 7bbb18623f9e Makefile
--- a/Makefile Tue Nov 08 12:51:12 2011 +0100
+++ b/Makefile Wed Nov 09 10:15:54 2011 +0100
@@ -79,6 +79,7 @@
$(CLASSES)/$(FRAMEWORK_DIR)/CommonCAGOperations.class \
$(CLASSES)/$(FRAMEWORK_DIR)/CommonRenderingStyles.class \
$(CLASSES)/$(FRAMEWORK_DIR)/CommonShapesRenderer.class \
+ $(CLASSES)/$(FRAMEWORK_DIR)/CommonClippingOperations.class \
$(CLASSES)/$(FRAMEWORK_DIR)/EntityRenderingStyle.class \
$(CLASSES)/$(FRAMEWORK_DIR)/TestResult.class \
$(CLASSES)/$(FRAMEWORK_DIR)/ParameterNotFoundException.class \
@@ -145,7 +146,8 @@
$(CLASSES)/$(TESTSUITE_DIR)/CAGOperationsOnTwoOverlappingRectangles.class \
$(CLASSES)/$(TESTSUITE_DIR)/CAGOperationsOnCircleAndRectangle.class \
$(CLASSES)/$(TESTSUITE_DIR)/TexturePaint.class \
- $(CLASSES)/$(TESTSUITE_DIR)/Clipping.class
+ $(CLASSES)/$(TESTSUITE_DIR)/Clipping.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRectangleArea.class
COMPARE_RESULTS = \
$(RESULTS)/Areas \
@@ -194,7 +196,8 @@
$(RESULTS)/CAGOperationsOnTwoOverlappingRectangles \
$(RESULTS)/CAGOperationsOnCircleAndRectangle \
$(RESULTS)/TexturePaint \
- $(RESULTS)/Clipping
+ $(RESULTS)/Clipping \
+ $(RESULTS)/ClippingCircleByRectangleArea
# targets for all test suites
TESTSUITES = $(shell ls -1 src/org/gfxtest/testsuites | sed -n -e 's/\([A-Za-z0-9]*\)\.java/\1/p')
diff -r 843d131b0d88 -r 7bbb18623f9e src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java
--- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Tue Nov 08 12:51:12 2011 +0100
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Wed Nov 09 10:15:54 2011 +0100
@@ -70,6 +70,53 @@
@Zoom(1)
public class ClippingCircleByRectangleArea extends GfxTest
{
+ /**
+ * Prepare canvas for the rendering.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ private static void basicSetupForRendering(TestImage image, Graphics2D graphics2d)
+ {
+ // create clip area
+ CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
+ }
+
+ /**
+ * Draw empty circle clipped by rectangle area.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ private static void drawEmptyCircleClippedByRectangleArea(TestImage image, Graphics2D graphics2d)
+ {
+ // prepare canvas for the rendering
+ basicSetupForRendering(image, graphics2d);
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // draw the area
+ CommonShapesRenderer.drawCircle(image, graphics2d);
+ }
+
+ /**
+ * Draw empty circle clipped by rectangle area.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ */
+ private static void drawFilledCircleClippedByRectangleArea(TestImage image, Graphics2D graphics2d)
+ {
+ // prepare canvas for the rendering
+ basicSetupForRendering(image, graphics2d);
+ // fill the area
+ CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ }
/**
* Check if circle shape could be clipped by a rectangle area. Circle is
@@ -85,12 +132,8 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // draw the area
- CommonShapesRenderer.drawCircle(image, graphics2d);
+ // set clip region and draw the circle
+ drawEmptyCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -109,14 +152,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set stroke width
CommonRenderingStyles.setStrokeThickWidth(graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // draw the area
- CommonShapesRenderer.drawCircle(image, graphics2d);
+ // set clip region and draw the circle
+ drawEmptyCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -137,12 +176,8 @@
CommonClippingOperations.renderClipRectangle(image, graphics2d);
// set stroke width
CommonRenderingStyles.setStrokeExtraThickWidth(graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // draw the area
- CommonShapesRenderer.drawCircle(image, graphics2d);
+ // set clip region and draw the circle
+ drawEmptyCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -187,14 +222,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set horizontal gradient paint
CommonRenderingStyles.setHorizontalGradientFill(image, graphics2d);
- // create horizontal gradient paint
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -213,14 +244,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set vertical gradient paint
CommonRenderingStyles.setVerticalGradientFill(image, graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -239,14 +266,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set diagonal gradient paint
CommonRenderingStyles.setDiagonalGradientFill(image, graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -265,14 +288,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set radial gradient paint
CommonRenderingStyles.setRadialGradientFill(image, graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -291,14 +310,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set the texture
CommonRenderingStyles.setTextureFillUsingCheckerTexture(image, graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -317,14 +332,186 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set the texture
CommonRenderingStyles.setTextureFillUsingDiagonalCheckerTexture(image, graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangle area. Circle is
+ * rendered using texture paint.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleAreaGridTexturePaint(TestImage image, Graphics2D graphics2d)
+ {
+ // render clip rectangle
+ CommonClippingOperations.renderClipRectangle(image, graphics2d);
+ // set the texture
+ CommonRenderingStyles.setTextureFillUsingGridTexture(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangle area. Circle is
+ * rendered using texture paint.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleAreaDiagonalGridTexturePaint(TestImage image, Graphics2D graphics2d)
+ {
+ // render clip rectangle
+ CommonClippingOperations.renderClipRectangle(image, graphics2d);
+ // set the texture
+ CommonRenderingStyles.setTextureFillUsingDiagonalGridTexture(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangle area. Circle is
+ * rendered using texture paint.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleAreaColorDotsTexturePaint(TestImage image, Graphics2D graphics2d)
+ {
+ // render clip rectangle
+ CommonClippingOperations.renderClipRectangle(image, graphics2d);
+ // set the texture
+ CommonRenderingStyles.setTextureFillUsingColorDotsTexture(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangle area. Circle is
+ * rendered using texture paint.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleAreaHorizontalStripesTexturePaint(TestImage image, Graphics2D graphics2d)
+ {
+ // render clip rectangle
+ CommonClippingOperations.renderClipRectangle(image, graphics2d);
+ // set the texture
+ CommonRenderingStyles.setTextureFillUsingHorizontalStripesTexture(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangle area. Circle is
+ * rendered using texture paint.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleAreaVerticalStripesTexturePaint(TestImage image, Graphics2D graphics2d)
+ {
+ // render clip rectangle
+ CommonClippingOperations.renderClipRectangle(image, graphics2d);
+ // set the texture
+ CommonRenderingStyles.setTextureFillUsingVerticalStripesTexture(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangle area. Circle is
+ * rendered using texture paint.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleAreaDiagonalStripesTexturePaint(TestImage image, Graphics2D graphics2d)
+ {
+ // render clip rectangle
+ CommonClippingOperations.renderClipRectangle(image, graphics2d);
+ // set the texture
+ CommonRenderingStyles.setTextureFillUsingDiagonalStripesTexture(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangle area. Circle is
+ * rendered using texture paint.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleAreaHorizontalColorStripesTexturePaint(TestImage image, Graphics2D graphics2d)
+ {
+ // render clip rectangle
+ CommonClippingOperations.renderClipRectangle(image, graphics2d);
+ // set the texture
+ CommonRenderingStyles.setTextureFillUsingHorizontalColorStripesTexture(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangle area. Circle is
+ * rendered using texture paint.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleAreaVerticalColorStripesTexturePaint(TestImage image, Graphics2D graphics2d)
+ {
+ // render clip rectangle
+ CommonClippingOperations.renderClipRectangle(image, graphics2d);
+ // set the texture
+ CommonRenderingStyles.setTextureFillUsingVerticalColorStripesTexture(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -343,14 +530,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set the texture
CommonRenderingStyles.setTextureFillUsingRGBTexture1(image, graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -369,14 +552,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set the texture
CommonRenderingStyles.setTextureFillUsingRGBTexture2(image, graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
@@ -395,14 +574,10 @@
{
// render clip rectangle
CommonClippingOperations.renderClipRectangle(image, graphics2d);
- // set stroke color
- CommonRenderingStyles.setStrokeColor(graphics2d);
// set the texture
CommonRenderingStyles.setTextureFillUsingRGBTexture3(image, graphics2d);
- // create clip area
- CommonClippingOperations.createClipUsingRectangleArea(image, graphics2d);
- // fill the area
- CommonShapesRenderer.drawFilledCircle(image, graphics2d);
+ // set clip region and render filled circle
+ drawFilledCircleClippedByRectangleArea(image, graphics2d);
// test result
return TestResult.PASSED;
}
From omajid at redhat.com Wed Nov 9 09:22:44 2011
From: omajid at redhat.com (Omair Majid)
Date: Wed, 09 Nov 2011 12:22:44 -0500
Subject: [RFC][icedtea-web][rhino] added tests for corner cases of
dateRange and enabled testWeekdayRange
In-Reply-To: <4EB92EFA.9000601@redhat.com>
References: <4EB92EFA.9000601@redhat.com>
Message-ID: <4EBAB6E4.3030606@redhat.com>
On 11/08/2011 08:30 AM, Jiri Vanek wrote:
> Hi!
> This tests pickup and covers rhino tests failures, which occurs at the
> start/end of each week.
> eg bottoms of:
> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320037429/index.html
> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320123820/index.html
> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320210219/index.html
> and see regeressions in Rhino tests
>
Thanks for these. Some of the links, like 'Rhino tests' which leads to
http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320037429/ICWDR_1320037429/check_o.log,
look broken.
> More then bug in netx itself, I suspect quite strange functions incDate
> and decDate in tests/netx/pac/pac-funcs-test.js
> Note, that new tests of first day in month are falling all, and tests of
> last day in month are falling only for 31 days long months.
>
Just to be clear, the patch does not change this behaviour, right?
I suspect you might have to replace incDate/decDate (and related
methods) to increment the date, month, year tuple (and return that)
instead of just the date or the month or the year by itself.
> Also I have noticed, taht testWeekdayRange (in same test file) have
> missing runTests, so this test is never call. I adddd this call, and
> it's three tests are now in and passing
Nice catch!
> I had sorted call of this test *behind* "all currently running tests",
> because I want to keep rhino statistics (which are order-of-test
> dependent) untouched.
>
> To test dateRange properly against specific dates, I had to modify also
> netx/net/sourceforge/jnlp/runtime/pac-funcs.js. I have moved logic of
> dateRange into new function isDateInRange which an be called against
> any date.
> DateRange then preserve api compatibilty and is wrapper for "today"
> upon isDateInRange
>
Good idea.
> diff -r 89b7a28ccafb netx/net/sourceforge/jnlp/runtime/pac-funcs.js
> --- a/netx/net/sourceforge/jnlp/runtime/pac-funcs.js Mon Oct 31 16:31:41 2011 -0400
> +++ b/netx/net/sourceforge/jnlp/runtime/pac-funcs.js Tue Nov 08 14:27:33 2011 +0100
> @@ -325,20 +325,22 @@
> * of the above ways of calling.
> */
> function dateRange() {
> +switch (arguments.length) {
Indentation looks a little wrong here.
> + case 1: return isDateInRange(new Date(),arguments[0]);
> + case 2: return isDateInRange(new Date(),arguments[0],arguments[1]);
> + case 3: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2]);
> + case 4: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3]);
> + case 5: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);
> + case 6: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);
> + case 7: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]); //GMT
> + default:
> + return false;
> + }
> +}
>
> - // note: watch out for wrapping around of dates. date ranges, like
> - // month=9 to month=8, wrap around and cover the entire year. this
> - // makes everything more interesting
> +function isDateInRange() {
>
> - var gmt;
> - if (arguments.length> 1) {
> - if (arguments[arguments.length-1] === "GMT") {
> - gmt = true;
> - arguments.splice(0,arguments.length-1);
> - }
> - }
> -
> - function isDate(date) {
> + function isDate(date) {
Why the change in indentation?
> if (typeof(date) === 'number'&& (date<= 31&& date>= 1)) {
> return true;
> }
> @@ -578,8 +580,19 @@
> }
> }
>
> + // note: watch out for wrapping around of dates. date ranges, like
> + // month=9 to month=8, wrap around and cover the entire year. this
> + // makes everything more interesting
> +
> + var gmt;
> + if (arguments.length> 2) {
> + if (arguments[arguments.length-1] === "GMT") {
> + gmt = true;
> + arguments.splice(0,arguments.length-1);
> + }
> + }
> // TODO: change date to gmt, whatever
> - var today = new Date();
> + var today = arguments[0]
>
> var arg1;
> var arg2;
> @@ -588,9 +601,9 @@
> var arg5;
> var arg6;
>
> - switch (arguments.length) {
> + switch (arguments.length-1) {
> case 1:
> - var arg = arguments[0];
> + var arg = arguments[1];
> if (isDate(arg)) {
> if (today.getDate() === arg) {
> return true;
> @@ -611,8 +624,8 @@
> }
> }
> case 2:
> - arg1 = arguments[0];
> - arg2 = arguments[1];
> + arg1 = arguments[1];
> + arg2 = arguments[2];
> if (isDate(arg1)&& isDate(arg2)) {
> var date1 = arg1;
> var date2 = arg2;
> @@ -634,10 +647,10 @@
> return false;
> }
> case 4:
> - arg1 = arguments[0];
> - arg2 = arguments[1];
> - arg3 = arguments[2];
> - arg4 = arguments[3];
> + arg1 = arguments[1];
> + arg2 = arguments[2];
> + arg3 = arguments[3];
> + arg4 = arguments[4];
>
> if (isDate(arg1)&& isMonth(arg2)&& isDate(arg3)&& isMonth(arg4)) {
> var date1 = arg1;
> @@ -658,12 +671,12 @@
> return false;
> }
> case 6:
> - arg1 = arguments[0];
> - arg2 = arguments[1];
> - arg3 = arguments[2];
> - arg4 = arguments[3];
> - arg5 = arguments[4];
> - arg6 = arguments[5];
> + arg1 = arguments[1];
> + arg2 = arguments[2];
> + arg3 = arguments[3];
> + arg4 = arguments[4];
> + arg5 = arguments[5];
> + arg6 = arguments[6];
> if (isDate(arg1)&& isMonth(arg2)&& isYear(arg3)&&
> isDate(arg4)&& isMonth(arg5)&& isYear(arg6)) {
> var day1 = arg1;
> diff -r 89b7a28ccafb tests/netx/pac/pac-funcs-test.js
> --- a/tests/netx/pac/pac-funcs-test.js Mon Oct 31 16:31:41 2011 -0400
> +++ b/tests/netx/pac/pac-funcs-test.js Tue Nov 08 14:27:33 2011 +0100
> @@ -21,9 +21,11 @@
> testDnsResolve();
> testDnsDomainLevels();
> testShExpMatch();
> - testWeekdayRange();
> testDateRange();
> testTimeRange();
> + testWeekdayRange();
> + testDateRange2();
> + testDateRange3();
>
> java.lang.System.out.println("Test results: passed: " + testsPassed + "; failed: " + testsFailed + ";");
> }
> @@ -235,11 +237,11 @@
> [ false, dayToStr(day+1) ],
> [ false, dayToStr(day-1) ],
> ];
> +
> + runTests(weekdayRange, tests);
> }
>
> -function testDateRange() {
> -
> - function incDate(date) {
> +function incDate(date) {
> return (date + 1 - 1) % 31 +1 ;
> }
>
Indentation looks wrong here.
> @@ -267,6 +269,9 @@
> }
> }
>
> +function testDateRange() {
> +
> +
> var today = new Date();
> var date = today.getDate();
> var month = today.getMonth();
> @@ -369,6 +374,80 @@
>
> }
>
> +function testDateRange2() {
> +
> +var dates = [
> + new Date("January 31, 2011 3:33:33"),
> + new Date("February 28, 2011 3:33:33"),
> + new Date("February 29, 2012 3:33:33"),
> + new Date("March 31, 2011 3:33:33"),
> + new Date("April 30, 2011 3:33:33"),
> + new Date("May 31, 2011 3:33:33"),
> + new Date("June 30, 2011 3:33:33"),
> + new Date("July 31, 2011 3:33:33"),
> + new Date("August 31, 2011 3:33:33"),
> + new Date("September 30, 2011 3:33:33"),
> + new Date("October 31, 2011 3:33:33"),
> + new Date("November 30, 2011 3:33:33"),
> + new Date("December 31, 2011 3:33:33"),
> +
> +]
> +for (var i = 0; i< dates.length; i++) {
> + var today = dates[i];
> + var date = today.getDate();
> + var month = today.getMonth();
> + var year = today.getYear();
> +
> + var tests = [
> +
> + [ true, today, date, monthToStr(month) , incDate(date), monthToStr(month) ],
> + [ true, today, decDate(date), monthToStr(month) , incDate(date), monthToStr(month) ],
> + [ true, today, decDate(date), monthToStr(month), year, incDate(date), monthToStr(month), year ],
> + [ false, today, incDate(date), monthToStr(month), year, incDate(date), monthToStr(month+1), year+1 ],
> +
> + ];
> +
> + runTests(isDateInRange, tests);
> +}
> +
> +}
Also weird indentation here.
> +
> +function testDateRange3() {
> +var dates = [
> + new Date("January 1, 2011 1:11:11"),
> + new Date("February 1, 2011 1:11:11"),
> + new Date("March 1, 2011 1:11:11"),
> + new Date("April 1, 2011 1:11:11"),
> + new Date("May 1, 2011 1:11:11"),
> + new Date("June 1, 2011 1:11:11"),
> + new Date("July 1, 2011 1:11:11"),
> + new Date("August 1, 2011 1:11:11"),
> + new Date("September 1, 2011 1:11:11"),
> + new Date("October 1, 2011 1:11:11"),
> + new Date("November 1, 2011 1:11:11"),
> + new Date("December 1, 2011 1:11:11"),
> +
> +]
> +
> +
> +
> +for (var i = 0; i< dates.length; i++) {
> + var today = dates[i]
> + var date = today.getDate();
> + var month = today.getMonth();
> + var year = today.getYear();
> +
> + var tests = [
> + [ true, today, decDate(date), monthToStr(month) , date, monthToStr(month) ],
> + [ true, today, decDate(date), monthToStr(month) , incDate(date), monthToStr(month) ],
> + [ true, today, decDate(date), monthToStr(month), year, incDate(date), monthToStr(month), year ],
> +
> + ];
> +
> + runTests(isDateInRange, tests);
> +}
> +}
And likewise.
> +
> function testTimeRange() {
> var now = new Date();
>
>
The tests themselves look fine to me.
Thanks again for catching this and creating a patch!
Cheers,
Omair
From bugzilla-daemon at icedtea.classpath.org Wed Nov 9 11:46:16 2011
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Wed, 09 Nov 2011 19:46:16 +0000
Subject: [Bug 816] New: # A fatal error has been detected by the Java Runtime
Environment: running soapui
Message-ID:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=816
Bug #: 816
Summary: # A fatal error has been detected by the Java Runtime
Environment: running soapui
Classification: Unclassified
Product: IcedTea
Version: unspecified
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P3
Component: IcedTea6
AssignedTo: unassigned at icedtea.classpath.org
ReportedBy: dan_cunningham at byu.edu
Created attachment 603
--> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=603
Pid log
[akuankka at dscfc bin]$ sudo ./soapui.sh
[sudo] password for akuankka:
================================
=
= SOAPUI_HOME = /home/akuankka/Downloads/soapui-4.0.1
=
================================
Configuring log4j from
[/home/akuankka/Downloads/soapui-4.0.1/bin/soapui-log4j.xml]
12:34:27,915 INFO [DefaultSoapUICore] initialized soapui-settings from
[/home/akuankka/Downloads/soapui-4.0.1/soapui-settings.xml]
12:34:28,802 INFO [SoapUI] Used java version: 1.6.0_22
(process:10622): GLib-GObject-CRITICAL **: gtype.c:2708: You forgot to call
g_type_init()
(process:10622): GLib-GObject-CRITICAL **: g_object_new: assertion
`G_TYPE_IS_OBJECT (object_type)' failed
(process:10622): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT
(object)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000003ce18199d1, pid=10622, tid=140730217981696
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK 64-Bit Server VM (20.0-b11 mixed mode linux-amd64 compressed
oops)
# Derivative: IcedTea6 1.10.4
# Distribution: Fedora release 16 (Verne), package fedora-60.1.10.4.fc16-x86_64
# Problematic frame:
# C [libgconf-2.so.4+0x199d1] g_intern_static_string+0x199d1
#
# An error report file with more information is saved as:
# /home/akuankka/Downloads/soapui-4.0.1/bin/hs_err_pid10622.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
#
./soapui.sh: line 141: 10622 Aborted (core dumped) java
$JAVA_OPTS -cp $SOAPUI_CLASSPATH com.eviware.soapui.SoapUI "$@"
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
From bugzilla-daemon at icedtea.classpath.org Wed Nov 9 12:34:05 2011
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Wed, 09 Nov 2011 20:34:05 +0000
Subject: [Bug 816] # A fatal error has been detected by the Java Runtime
Environment: running soapui
In-Reply-To:
References:
Message-ID:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=816
Deepak Bhole changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dbhole at redhat.com
Resolution| |INVALID
--- Comment #1 from Deepak Bhole 2011-11-09 20:34:05 UTC ---
According to the stack trace, this is a bug in JxBrowser code:
j org.mozilla.xpcom.internal.GREImpl.notifyProfile()V+0
j org.mozilla.xpcom.Mozilla.notifyProfile()V+4
j com.teamdev.xpcom.a.a()V+691
j com.teamdev.xpcom.b$a.run()V+13
v ~StubRoutines::call_stub
Please open this bug with them as there is nothing IcedTea can do about it.
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
From omajid at redhat.com Wed Nov 9 12:57:55 2011
From: omajid at redhat.com (Omair Majid)
Date: Wed, 09 Nov 2011 15:57:55 -0500
Subject: [visualvm] RFC: add support for building visualvm-1.3.3
In-Reply-To: <4EB0F672.7050000@redhat.com>
References: <4EB0569D.8010608@redhat.com> <4EB0F672.7050000@redhat.com>
Message-ID: <4EBAE953.3070001@redhat.com>
On 11/02/2011 03:51 AM, Jiri Vanek wrote:
> Looks Ok for me. I have uploaded sources for you to classpath, so you
> can get rid of upstream url.
The urls
http://icedtea.classpath.org/download/visualvm/visualvm_133-src.tar.gz
and
http://icedtea.classpath.org/download/visualvm/netbeans-profiler-visualvm_release701.tar.gz
give me a permission denied error.
Could someone please fix the file permissions? Or tell me how I can fix
them myself?
Thanks,
Omair
From mark at klomp.org Wed Nov 9 14:01:14 2011
From: mark at klomp.org (Mark Wielaard)
Date: Wed, 9 Nov 2011 23:01:14 +0100 (CET)
Subject: [visualvm] RFC: add support for building visualvm-1.3.3
In-Reply-To: <4EBAE953.3070001@redhat.com>
References: <4EB0569D.8010608@redhat.com> <4EB0F672.7050000@redhat.com>
<4EBAE953.3070001@redhat.com>
Message-ID: <47609.80.101.103.228.1320876074.squirrel@gnu.wildebeest.org>
On Wed, November 9, 2011 21:57, Omair Majid wrote:
> The urls
> http://icedtea.classpath.org/download/visualvm/visualvm_133-src.tar.gz
> and
> http://icedtea.classpath.org/download/visualvm/netbeans-profiler-visualvm_release701.tar.gz
> give me a permission denied error.
>
> Could someone please fix the file permissions? Or tell me how I can fix
> them myself?
The files needed read permission set for others.
Fixed on the server by doing:
find /var/lib/public-download -not -perm -o=r | xargs sudo chmod o+r
From omajid at icedtea.classpath.org Wed Nov 9 14:24:19 2011
From: omajid at icedtea.classpath.org (omajid at icedtea.classpath.org)
Date: Wed, 09 Nov 2011 22:24:19 +0000
Subject: /hg/visualvm: Add support for visualvm 1.3.3
Message-ID:
changeset bc76c6cb587c in /hg/visualvm
details: http://icedtea.classpath.org/hg/visualvm?cmd=changeset;node=bc76c6cb587c
author: Omair Majid
date: Wed Nov 09 17:23:22 2011 -0500
Add support for visualvm 1.3.3
2011-11-09 Omair Majid
* NEWS: Update.
* Makefile.am: Add NETBEANS_701_PROFILER_URL,
NETBEANS_701_PROFILER_SRC_ZIP, NETBEANS_701_PROFILER_SHA256SUM,
VISUALVM_133_URL, VISUALVM_133_SRC_ZIP, VISUALVM_133_SHA256SUM.
Initialize variable if VVVERSION_133 is set.
* acinclude.m4 (VV_CHECK_FOR_NETBEANS): Check for platform13 dir.
diffstat:
ChangeLog | 9 +++++++++
Makefile.am | 21 +++++++++++++++++++++
NEWS | 3 +++
acinclude.m4 | 6 +++++-
4 files changed, 38 insertions(+), 1 deletions(-)
diffs (104 lines):
diff -r 5b9565081674 -r bc76c6cb587c ChangeLog
--- a/ChangeLog Tue Mar 22 13:10:03 2011 +0100
+++ b/ChangeLog Wed Nov 09 17:23:22 2011 -0500
@@ -1,3 +1,12 @@
+2011-11-09 Omair Majid
+
+ * NEWS: Update.
+ * Makefile.am: Add NETBEANS_701_PROFILER_URL,
+ NETBEANS_701_PROFILER_SRC_ZIP, NETBEANS_701_PROFILER_SHA256SUM,
+ VISUALVM_133_URL, VISUALVM_133_SRC_ZIP, VISUALVM_133_SHA256SUM.
+ Initialize variables if VVVERSION_133 is set.
+ * acinclude.m4 (VV_CHECK_FOR_NETBEANS): Check for platform13 dir.
+
2011-03-15 Jiri Vanek
* Makefile.am: support for downloading files from
classpath.org server
diff -r 5b9565081674 -r bc76c6cb587c Makefile.am
--- a/Makefile.am Tue Mar 22 13:10:03 2011 +0100
+++ b/Makefile.am Wed Nov 09 17:23:22 2011 -0500
@@ -16,6 +16,10 @@
NETBEANS_691_1_PROFILER_SRC_ZIP = netbeans-profiler-visualvm_release691_1.tar.gz
NETBEANS_691_1_PROFILER_SHA256SUM = ee083f4417435ba7f398f1c3e65433a8a983aa68ef90d27385688991fab1c493
+NETBEANS_701_PROFILER_URL = $(BASE_CLASSPATH_URL)
+NETBEANS_701_PROFILER_SRC_ZIP = netbeans-profiler-visualvm_release701.tar.gz
+NETBEANS_701_PROFILER_SHA256SUM = 0056c6b7da3fa9499b87319caa6b431b935b48f9579f7c94ec169777ecd2c238
+
VISUALVM_122_URL = $(BASE_CLASSPATH_URL)
VISUALVM_122_SRC_ZIP = visualvm_122-src.tar.gz
VISUALVM_122_SHA256SUM = 1b1cd77354757d64ca902722bb9481e1292a88c4884ffea8af7bb47f8ae24af5
@@ -32,6 +36,22 @@
VISUALVM_132_SRC_ZIP = visualvm_132-src.tar.gz
VISUALVM_132_SHA256SUM = 1ad1b87a1d8ce7ce1bb1700c10942c4fd2afd47e3f024448c593abc0dff8e163
+VISUALVM_133_URL = $(BASE_CLASSPATH_URL)
+VISUALVM_133_SRC_ZIP = visualvm_133-src.tar.gz
+VISUALVM_133_SHA256SUM = 43f4d5c892d3654ada9d07f2a8dc1c1b98db671f558a5c7fa7e9db7e86b7ca81
+
+if VVVERSION_133
+ NETBEANS_PROFILER_URL=$(NETBEANS_701_PROFILER_URL)
+ NETBEANS_PROFILER_SRC_ZIP=$(NETBEANS_701_PROFILER_SRC_ZIP)
+ NETBEANS_PROFILER_SHA256SUM=$(NETBEANS_701_PROFILER_SHA256SUM)
+ VISUALVM_URL=$(VISUALVM_133_URL)
+ VISUALVM_SRC_ZIP=$(VISUALVM_133_SRC_ZIP)
+ VISUALVM_SHA256SUM=$(VISUALVM_133_SHA256SUM)
+ NBPLATFORM_DIR=netbeans/nbbuild/netbeans_visualvm/platform
+ NBBUILD_PROPERTIES=-Dpermit.jdk6.builds=true -Dpermit.jdk7.builds=true
+ ADDITIONAL_DIRS=profiler.oql
+ PROFILER=profiler
+else
if VVVERSION_132
NETBEANS_PROFILER_URL=$(NETBEANS_691_1_PROFILER_URL)
NETBEANS_PROFILER_SRC_ZIP=$(NETBEANS_691_1_PROFILER_SRC_ZIP)
@@ -77,6 +97,7 @@
endif
endif
endif
+endif
all: visualvm
diff -r 5b9565081674 -r bc76c6cb587c NEWS
--- a/NEWS Tue Mar 22 13:10:03 2011 +0100
+++ b/NEWS Wed Nov 09 17:23:22 2011 -0500
@@ -8,6 +8,9 @@
CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY
+New in release 1.3 (2011-XX-XX):
+* Support for VisualVM 1.3.3
+
New in release 1.2 (2011-03-09):
* Support for VisualVM 1.3.2
diff -r 5b9565081674 -r bc76c6cb587c acinclude.m4
--- a/acinclude.m4 Tue Mar 22 13:10:03 2011 +0100
+++ b/acinclude.m4 Wed Nov 09 17:23:22 2011 -0500
@@ -129,6 +129,7 @@
AM_CONDITIONAL([VVVERSION_13], [test "$VVVERSION" = "1.3"])
AM_CONDITIONAL([VVVERSION_131], [test "$VVVERSION" = "1.3.1"])
AM_CONDITIONAL([VVVERSION_132], [test "$VVVERSION" = "1.3.2"])
+ AM_CONDITIONAL([VVVERSION_133], [test "$VVVERSION" = "1.3.3"])
])
AC_DEFUN_ONCE([VV_CHECK_FOR_NETBEANS],
@@ -151,7 +152,9 @@
])
AC_MSG_RESULT([${SYSTEM_NETBEANS_DIR}])
AC_SUBST(SYSTEM_NETBEANS_DIR)
-if test "$VVVERSION" = "1.3.2"; then
+if test "$VVVERSION" = "1.3.3"; then
+ NB_PLATFORM=platform13;
+else if test "$VVVERSION" = "1.3.2"; then
NB_PLATFORM=platform12;
else if test "$VVVERSION" = "1.3.1"; then
NB_PLATFORM=platform12;
@@ -162,6 +165,7 @@
fi
fi
fi
+fi
if ! test -d ${SYSTEM_NETBEANS_DIR}/${NB_PLATFORM} ; then
AC_MSG_ERROR([Couldn't find NetBeans platform directory: ${SYSTEM_NETBEANS_DIR}/${NB_PLATFORM}])
fi
From ahughes at redhat.com Thu Nov 10 01:23:24 2011
From: ahughes at redhat.com (Dr Andrew John Hughes)
Date: Thu, 10 Nov 2011 09:23:24 +0000
Subject: Build of IcedTea6 HEAD broken
Message-ID: <20111110092324.GB31481@rivendell.middle-earth.co.uk>
Our nightly builder reports:
Linking vm...
vmError.o: In function `ps':
/notnfs/nighttester/icedtea6-target-testing/openjdk/hotspot/src/share/vm/utilities/vmError.cpp:241:
multiple definition of `ps'
debug.o:/notnfs/nighttester/icedtea6-target-testing/openjdk/hotspot/src/share/vm/utilities/debug.cpp
:464: first defined here
collect2: ld returned 1 exit status
I presume this is caused by:
2011-10-28 Andrew Haley
* Makefile.am (ICEDTEA_PATCHES): Add patches/arm-debug.patch.
Can this please be fixed?
Thanks,
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111110/b8e42010/attachment.bin
From mark at klomp.org Thu Nov 10 02:09:23 2011
From: mark at klomp.org (Mark Wielaard)
Date: Thu, 10 Nov 2011 11:09:23 +0100
Subject: Build of IcedTea6 HEAD broken
In-Reply-To: <20111110092324.GB31481@rivendell.middle-earth.co.uk>
References: <20111110092324.GB31481@rivendell.middle-earth.co.uk>
Message-ID: <1320919763.3298.33.camel@springer.wildebeest.org>
Hi Andrew,
On Thu, 2011-11-10 at 09:23 +0000, Dr Andrew John Hughes wrote:
> Our nightly builder reports:
>
> Linking vm...
> vmError.o: In function `ps':
> /notnfs/nighttester/icedtea6-target-testing/openjdk/hotspot/src/share/vm/utilities/vmError.cpp:241:
> multiple definition of `ps'
> debug.o:/notnfs/nighttester/icedtea6-target-testing/openjdk/hotspot/src/share/vm/utilities/debug.cpp
> :464: first defined here
> collect2: ld returned 1 exit status
Can you give a bit more information about how your nightly builder is
setup/configured? Most of the public buildbots for icedtea6 are green at
the moment: http://builder.classpath.org/icedtea/buildbot/waterfall
Thanks,
Mark
From aph at redhat.com Thu Nov 10 02:25:42 2011
From: aph at redhat.com (Andrew Haley)
Date: Thu, 10 Nov 2011 10:25:42 +0000
Subject: Build of IcedTea6 HEAD broken
In-Reply-To: <1320919763.3298.33.camel@springer.wildebeest.org>
References: <20111110092324.GB31481@rivendell.middle-earth.co.uk>
<1320919763.3298.33.camel@springer.wildebeest.org>
Message-ID: <4EBBA6A6.8040900@redhat.com>
On 11/10/2011 10:09 AM, Mark Wielaard wrote:
> Can you give a bit more information about how your nightly builder is
> setup/configured?
Yes, please. I'll fix it as soon as I can duplicate it. I wonder
if it's a debug build.
Andrew.
From jvanek at redhat.com Thu Nov 10 03:12:24 2011
From: jvanek at redhat.com (Jiri Vanek)
Date: Thu, 10 Nov 2011 12:12:24 +0100
Subject: [RFC][icedtea-web][rhino] added tests for corner cases of
dateRange and enabled testWeekdayRange
In-Reply-To: <4EBAB6E4.3030606@redhat.com>
References: <4EB92EFA.9000601@redhat.com> <4EBAB6E4.3030606@redhat.com>
Message-ID: <4EBBB198.4080400@redhat.com>
On 11/09/2011 06:22 PM, Omair Majid wrote:
> On 11/08/2011 08:30 AM, Jiri Vanek wrote:
>> Hi!
>> This tests pickup and covers rhino tests failures, which occurs at the
>> start/end of each week.
>> eg bottoms of:
>> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320037429/index.html
>> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320123820/index.html
>> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320210219/index.html
>> and see regeressions in Rhino tests
>>
>
> Thanks for these. Some of the links, like 'Rhino tests' which leads to
> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320037429/ICWDR_1320037429/check_o.log, look broken.
Yap, I',m aware of this. Those links are used in three levels.. In this deepest one they are not fixed, (because I'm lazy) because the logs themselves are available in the logs list at the top.
>
>> More then bug in netx itself, I suspect quite strange functions incDate
>> and decDate in tests/netx/pac/pac-funcs-test.js
>> Note, that new tests of first day in month are falling all, and tests of
>> last day in month are falling only for 31 days long months.
>>
>
> Just to be clear, the patch does not change this behaviour, right?
True. Most of new tests (all except X.30) are falling. The fix will probably lay inside incDate/decDate. I will fix them when this patch will be in. Probably the best way is to use Date javascript functionality setDate
var date=new Date();
function incDate(d){
var date2=new Date();
date2.setDate(d.getDate()+30);
return date2;
}
function f1()
{
document.writeln(" 1 "+date.toLocaleDateString());
document.writeln(" 2 "+incDate(date));
document.writeln(" 3 "+date.toLocaleDateString());
}
will output
1 11/10/2011
2 Sat Dec 10 2011 12:06:47 GMT+0100 (CET)
3 11/10/2011
which is correct.
So this should do the work but will need quite a typing in tests.
>
> I suspect you might have to replace incDate/decDate (and related methods) to increment the date, month, year tuple (and return that) instead of just the date or the month or the year by itself.
...
>
> Good idea.
>
>> diff -r 89b7a28ccafb netx/net/sourceforge/jnlp/runtime/pac-funcs.js
...to much indentation problems ...
>>
>
> The tests themselves look fine to me.
>
> Thanks again for catching this and creating a patch!
>
Attached is patch with fixed indentation
Regards
J.
> Cheers,
> Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RhinoDateRAngeCornerCasesTests.diff
Type: text/x-patch
Size: 7368 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111110/0bcb8c4d/RhinoDateRAngeCornerCasesTests.diff
From xranby at icedtea.classpath.org Thu Nov 10 03:37:04 2011
From: xranby at icedtea.classpath.org (xranby at icedtea.classpath.org)
Date: Thu, 10 Nov 2011 11:37:04 +0000
Subject: /hg/buildbot: Some jdk jtreg tests takes 7200s to timeout, incre...
Message-ID:
changeset afcfe8947eac in /hg/buildbot
details: http://icedtea.classpath.org/hg/buildbot?cmd=changeset;node=afcfe8947eac
author: Xerxes Ranby
date: Thu Nov 10 12:59:53 2011 +0100
Some jdk jtreg tests takes 7200s to timeout, increase check-jdk
timeout to 7500 to prevent race.
diffstat:
icedtea/master.cfg | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (129 lines):
diff -r a7ab5cbae580 -r afcfe8947eac icedtea/master.cfg
--- a/icedtea/master.cfg Tue Nov 08 11:01:27 2011 +0100
+++ b/icedtea/master.cfg Thu Nov 10 12:59:53 2011 +0100
@@ -398,7 +398,7 @@
workdir="build", timeout=2400))
f3an.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3an.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -428,7 +428,7 @@
workdir="build", timeout=2400))
f3an7.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3an7.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -459,7 +459,7 @@
workdir="build", timeout=2400))
f3anc.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3anc.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -490,7 +490,7 @@
workdir="build", timeout=2400))
f3anj.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3anj.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -521,7 +521,7 @@
workdir="build", timeout=2400))
f3ans.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3ans.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -552,7 +552,7 @@
workdir="build", timeout=2400))
f3lz.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3lz.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -583,7 +583,7 @@
workdir="build", timeout=2400))
f3ls.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3ls.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -614,7 +614,7 @@
workdir="build", timeout=2400))
f3lc.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3lc.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -644,7 +644,7 @@
workdir="build", timeout=2400))
f3lj.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3lj.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -675,7 +675,7 @@
workdir="build", timeout=2400))
f3a5.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3a5.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -708,7 +708,7 @@
workdir="build"))
f3a5c.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3a5c.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -739,7 +739,7 @@
workdir="build", timeout=2400))
f3a5j.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3a5j.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -769,7 +769,7 @@
workdir="build", timeout=2400))
f3a5s.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build", timeout=7200))
+ workdir="build", timeout=7500))
f3a5s.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL", "java"],
workdir=".",
flunkOnFailure=False,
@@ -902,7 +902,7 @@
workdir="build"))
f4.addStep(JTRegCheck(command=["make", "check-jdk"],
description="check-jdk",
- workdir="build"))
+ workdir="build", timeout=7500))
icedtea6_builder_full = { 'name': "icedtea6-squeeze-x86_64-full",
'slavenames': ["squeeze-x86_64"],
From omajid at redhat.com Thu Nov 10 06:56:30 2011
From: omajid at redhat.com (Omair Majid)
Date: Thu, 10 Nov 2011 09:56:30 -0500
Subject: [visualvm] RFC: add support for building visualvm-1.3.3
In-Reply-To: <47609.80.101.103.228.1320876074.squirrel@gnu.wildebeest.org>
References: <4EB0569D.8010608@redhat.com> <4EB0F672.7050000@redhat.com>
<4EBAE953.3070001@redhat.com>
<47609.80.101.103.228.1320876074.squirrel@gnu.wildebeest.org>
Message-ID: <4EBBE61E.10800@redhat.com>
On 11/09/2011 05:01 PM, Mark Wielaard wrote:
> On Wed, November 9, 2011 21:57, Omair Majid wrote:
>> The urls
>> http://icedtea.classpath.org/download/visualvm/visualvm_133-src.tar.gz
>> and
>> http://icedtea.classpath.org/download/visualvm/netbeans-profiler-visualvm_release701.tar.gz
>> give me a permission denied error.
>>
>> Could someone please fix the file permissions? Or tell me how I can fix
>> them myself?
>
> The files needed read permission set for others.
> Fixed on the server by doing:
> find /var/lib/public-download -not -perm -o=r | xargs sudo chmod o+r
>
Thanks Mark!
Omair
From omajid at redhat.com Thu Nov 10 06:58:31 2011
From: omajid at redhat.com (Omair Majid)
Date: Thu, 10 Nov 2011 09:58:31 -0500
Subject: [RFC][icedtea-web][rhino] added tests for corner cases of
dateRange and enabled testWeekdayRange
In-Reply-To: <4EBBB198.4080400@redhat.com>
References: <4EB92EFA.9000601@redhat.com> <4EBAB6E4.3030606@redhat.com>
<4EBBB198.4080400@redhat.com>
Message-ID: <4EBBE697.70308@redhat.com>
On 11/10/2011 06:12 AM, Jiri Vanek wrote:
> On 11/09/2011 06:22 PM, Omair Majid wrote:
>> On 11/08/2011 08:30 AM, Jiri Vanek wrote:
>>> Hi!
>>> This tests pickup and covers rhino tests failures, which occurs at the
>>> start/end of each week.
>>> eg bottoms of:
>>> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320037429/index.html
>>> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320123820/index.html
>>> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320210219/index.html
>>> and see regeressions in Rhino tests
>>>
>>
>> Thanks for these. Some of the links, like 'Rhino tests' which leads to
>> http://10.34.2.200/icedtea-web-dailyreport/ICWDR_1320037429/ICWDR_1320037429/check_o.log,
>> look broken.
> Yap, I',m aware of this. Those links are used in three levels.. In this
> deepest one they are not fixed, (because I'm lazy) because the logs
> themselves are available in the logs list at the top.
>>
>>> More then bug in netx itself, I suspect quite strange functions incDate
>>> and decDate in tests/netx/pac/pac-funcs-test.js
>>> Note, that new tests of first day in month are falling all, and tests of
>>> last day in month are falling only for 31 days long months.
>>>
>>
>> Just to be clear, the patch does not change this behaviour, right?
>
> True. Most of new tests (all except X.30) are falling. The fix will
> probably lay inside incDate/decDate. I will fix them when this patch
> will be in. Probably the best way is to use Date javascript
> functionality setDate
> var date=new Date();
>
> function incDate(d){
> var date2=new Date();
> date2.setDate(d.getDate()+30);
> return date2;
> }
> function f1()
> {
> document.writeln(" 1 "+date.toLocaleDateString());
> document.writeln(" 2 "+incDate(date));
> document.writeln(" 3 "+date.toLocaleDateString());
> }
>
> will output
> 1 11/10/2011
> 2 Sat Dec 10 2011 12:06:47 GMT+0100 (CET)
> 3 11/10/2011
> which is correct.
>
> So this should do the work but will need quite a typing in tests.
>>
>> I suspect you might have to replace incDate/decDate (and related
>> methods) to increment the date, month, year tuple (and return that)
>> instead of just the date or the month or the year by itself.
> ...
>>
>> Good idea.
>>
>>> diff -r 89b7a28ccafb netx/net/sourceforge/jnlp/runtime/pac-funcs.js
> ...to much indentation problems ...
>>>
>>
>> The tests themselves look fine to me.
>>
>> Thanks again for catching this and creating a patch!
>>
> Attached is patch with fixed indentation
>
Looks good to me.
Cheers,
Omair
From omajid at redhat.com Thu Nov 10 07:17:57 2011
From: omajid at redhat.com (Omair Majid)
Date: Thu, 10 Nov 2011 10:17:57 -0500
Subject: ping? [RFC] [icedtea-web] reproducer for handling spaces
In-Reply-To: <4EB8DE24.9070002@redhat.com>
References: <4EB023B8.5080905@redhat.com> <4EB2C2BB.6070202@redhat.com>
<4EB2DE72.5070800@redhat.com> <4EB2E60A.2080901@redhat.com>
<4EB2F69B.5000400@redhat.com> <4EB2F8E1.5030902@redhat.com>
<4EB2FD2D.9010007@redhat.com> <4EB3F724.4070108@redhat.com>
<4EB8DE24.9070002@redhat.com>
Message-ID: <4EBBEB25.3070601@redhat.com>
On 11/08/2011 02:45 AM, Jiri Vanek wrote:
> On 11/04/2011 03:31 PM, Omair Majid wrote:
>> On 11/03/2011 04:44 PM, Jiri Vanek wrote:
> ....
>>
>>>>> Because it is so easy to run single reproducer from IDE, then i
>>>>> believe
>>>>> that the only problem to run it from commandline is correct setting of
>>>>> classpath.
>>>>>>
>>>>>> As for restoring IFS, you can do simple assignments in the
>>>>>> makefile to
>>>>>> restore IFS:
>>>>>
>>>>> Actually, you can't. I do not know why, but inside mkefile, the IFS
>>>>> variable is different from shell (just space in my case, whether in
>>>>> shell contains space,\t and \n). If I'm changing it in "shell", then I
>>>>> prefer to restore it by the same way. The line you wrote, was my
>>>>> exactly
>>>>> first idea:)
>>>>>
>>>>
>>>> Well if IFS has a different value when running under make, how is that
>>>> a problem? As long as you set it back to the old IFS, I would expect
>>>> things to work fine.
>>>
>>> Ok. Unless it cause some catastrophe I will do this as you suggested.
>>>
>>
>> Please let us know how it goes.
>
> It seems it is working as you expected.
> The only change is assignment IFS="$$IFS_BACKUP" ; \ instead of
> restoreIFS() function ( which I still like more ;) )
>
> diff -r 89b7a28ccafb tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java
> --- a/tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java Mon Oct 31 16:31:41 2011 -0400
> +++ b/tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java Tue Nov 08 08:36:59 2011 +0100
> @@ -64,9 +64,12 @@
>
> for (int i = 0; i< simpleContent.length; i++) {
> File file = simpleContent[i];
> - System.err.println(file.getName());
> + System.err.print(file.getName());
> + URI u = new URI((String)null,(String)null,(String)null,server.getPort(),file.getName(),(String)null,null);
It seems rather strange that the URI has the server port, but not the
server address. Not sure if this may or may not be a problem.
> + System.err.println(" ("+u.toString()+")");
> + String fname=u.toString();
> if (file.getName().toLowerCase().endsWith(".jnlp")) {
> - String c = server.getResourceAsString("/" + file.getName());
> + String c = server.getResourceAsString("/" + fname);
> Assert.assertTrue(c.contains("<"));
> Assert.assertTrue(c.contains(">"));
> Assert.assertTrue(c.contains("jnlp"));
Everything else looks fine to me.
Cheers,
Omair
From ptisnovs at icedtea.classpath.org Thu Nov 10 07:22:36 2011
From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org)
Date: Thu, 10 Nov 2011 15:22:36 +0000
Subject: /hg/gfx-test: 2011-11-10 Pavel Tisnovsky
Message-ID:
changeset 2d45a6c76b6a in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=2d45a6c76b6a
author: Pavel Tisnovsky
date: Thu Nov 10 16:24:44 2011 +0100
2011-11-10 Pavel Tisnovsky
* Makefile: updated
* src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java:
Changed JavaDoc.
* src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java:
* src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java:
* src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java:
* src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java:
Created stubs for new test suites.
diffstat:
ChangeLog | 11 +
Makefile | 12 +-
src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java | 75 ++++++++++
src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java | 75 ++++++++++
src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java | 4 +-
src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java | 75 ++++++++++
src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java | 75 ++++++++++
7 files changed, 323 insertions(+), 4 deletions(-)
diffs (377 lines):
diff -r 7bbb18623f9e -r 2d45a6c76b6a ChangeLog
--- a/ChangeLog Wed Nov 09 10:15:54 2011 +0100
+++ b/ChangeLog Thu Nov 10 16:24:44 2011 +0100
@@ -1,3 +1,14 @@
+2011-11-10 Pavel Tisnovsky
+
+ * Makefile: updated
+ * src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java:
+ Changed JavaDoc.
+ * src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java:
+ * src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java:
+ * src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java:
+ * src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java:
+ Created stubs for new test suites.
+
2011-11-09 Pavel Tisnovsky
* Makefile: updated
diff -r 7bbb18623f9e -r 2d45a6c76b6a Makefile
--- a/Makefile Wed Nov 09 10:15:54 2011 +0100
+++ b/Makefile Thu Nov 10 16:24:44 2011 +0100
@@ -147,7 +147,11 @@
$(CLASSES)/$(TESTSUITE_DIR)/CAGOperationsOnCircleAndRectangle.class \
$(CLASSES)/$(TESTSUITE_DIR)/TexturePaint.class \
$(CLASSES)/$(TESTSUITE_DIR)/Clipping.class \
- $(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRectangleArea.class
+ $(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRectangleArea.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByEllipseShape.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByPolygonalShape.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRectangleShape.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRoundRectangleShape.class
COMPARE_RESULTS = \
$(RESULTS)/Areas \
@@ -197,7 +201,11 @@
$(RESULTS)/CAGOperationsOnCircleAndRectangle \
$(RESULTS)/TexturePaint \
$(RESULTS)/Clipping \
- $(RESULTS)/ClippingCircleByRectangleArea
+ $(RESULTS)/ClippingCircleByRectangleArea \
+ $(RESULTS)/ClippingCircleByEllipseShape.class \
+ $(RESULTS)/ClippingCircleByPolygonalShape.class \
+ $(RESULTS)/ClippingCircleByRectangleShape.class \
+ $(RESULTS)/ClippingCircleByRoundRectangleShape.class
# targets for all test suites
TESTSUITES = $(shell ls -1 src/org/gfxtest/testsuites | sed -n -e 's/\([A-Za-z0-9]*\)\.java/\1/p')
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java Thu Nov 10 16:24:44 2011 +0100
@@ -0,0 +1,75 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea 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 for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.testsuites;
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+/**
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by an ellipse shape.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at Transformation(Transformations.NONE)
+ at GraphicsPrimitive(GraphicsPrimitives.CIRCLE)
+ at Zoom(1)
+public class ClippingCircleByEllipseShape extends GfxTest
+{
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * graphics test configuration
+ */
+ public static void main(String[] args)
+ {
+ new ClippingCircleByEllipseShape().runTestSuite(args);
+ }
+}
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java Thu Nov 10 16:24:44 2011 +0100
@@ -0,0 +1,75 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea 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 for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.testsuites;
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+/**
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by a polygonal shape.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at Transformation(Transformations.NONE)
+ at GraphicsPrimitive(GraphicsPrimitives.CIRCLE)
+ at Zoom(1)
+public class ClippingCircleByPolygonalShape extends GfxTest
+{
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * graphics test configuration
+ */
+ public static void main(String[] args)
+ {
+ new ClippingCircleByPolygonalShape().runTestSuite(args);
+ }
+}
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java
--- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Wed Nov 09 10:15:54 2011 +0100
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Thu Nov 10 16:24:44 2011 +0100
@@ -59,8 +59,8 @@
import org.gfxtest.framework.annotations.Zoom;
/**
- * This test check if clipping is working correctly for various types of clips
- * and various types of rendered shapes.
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by a rectangle area.
*
* @author Pavel Tisnovsky
*/
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Thu Nov 10 16:24:44 2011 +0100
@@ -0,0 +1,75 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea 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 for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.testsuites;
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+/**
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by a rectangular shape (not rectangular area!).
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at Transformation(Transformations.NONE)
+ at GraphicsPrimitive(GraphicsPrimitives.CIRCLE)
+ at Zoom(1)
+public class ClippingCircleByRectangleShape extends GfxTest
+{
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * graphics test configuration
+ */
+ public static void main(String[] args)
+ {
+ new ClippingCircleByRectangleShape().runTestSuite(args);
+ }
+}
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java Thu Nov 10 16:24:44 2011 +0100
@@ -0,0 +1,75 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea 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 for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.testsuites;
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+/**
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by round rectangle shape.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at Transformation(Transformations.NONE)
+ at GraphicsPrimitive(GraphicsPrimitives.CIRCLE)
+ at Zoom(1)
+public class ClippingCircleByRoundRectangleShape extends GfxTest
+{
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * graphics test configuration
+ */
+ public static void main(String[] args)
+ {
+ new ClippingCircleByRoundRectangleShape().runTestSuite(args);
+ }
+}
From jvanek at redhat.com Thu Nov 10 08:04:36 2011
From: jvanek at redhat.com (Jiri Vanek)
Date: Thu, 10 Nov 2011 17:04:36 +0100
Subject: [RFC][icedtea-web] emma and testcoveragefor testsuites
Message-ID: <4EBBF614.9000601@redhat.com>
This patch add code-coverage of our testsuits functionality into makefile. It is adding optional dependence for emma.jar, which is providing whole functionality of arround investigating coverage and generate reports.
It add three new top level targets into makefile.am It run-test-code-coverage, run-reproducers-test-code-coverage and run-unit-test-code-coverage. Except this, it is modifying touch $@ of several more targets. The reason is as follows.
*run-reproducers-test-code-coverage and run-unit-test-code-coverage:
* each must run all tests again, with (by emma) marrked code (so the results can not be as correct as we can wish)
* it depends on all preparations which proceed normal testing
* when they are run after this tests, they do not invoke them again (just run the marrked version)
* when they are run without previoous make check or make run-netx-dist-tests they invoke them
* all four make check , make run-netx-dist-tests run-reproducers-test-code-coverage and run-unit-test-code-coverage are considered as top level targets
*run-test-code-coverage, on the other side just merges results generated by run-reproducers-test-code-coverage and run-unit-test-code-coverage. When it is run after this two targets, then he just reuse the results. If he ie run without, then he invoke them. It ia lso to be considered top level target.
*Each code-coverege target creates html report.
Reproducer tests are not covered 100% they will need more hacking, which I will post as new patch. (in some longer time, it will not be easy)
Best regards
J.
changelog:
2011-11-10 Jiri Vanek
Added code-coverage generation targets
* configure.ac: added search for optional emma.jar
* makefile.am: added UNIT_CLASS_NAMES and REPRODUCERS_CLASS_NAMES variables
to store tests clases for reuse in emmarun
(run-netx-dist-tests): made dependent on reused stamped version
(stamps/run-netx-dist-tests): stamped rusable version of run-netx-dist-tests
($(NETX_UNIT_TEST_DIR)/coverage.es) and (run-unit-test-code-coverage) targets
to generate report from unit-tests. Both result binary file and html report in
tests.build/netx/unit
($(JNLP_TESTS_ENGINE_DIR)/coverage.es) and (run-reproducers-test-code-coverage)
targets to generate report from reproducers-test. Both result binary file
and html report in tests.build/netx/jnlp_testsengine
(run-test-code-coverage): merges binary results from unit and reproducers
code-coverage runs and save html report in abs_top_builddir
(clean-netx-dist-tests) removes REPRODUCERS_CLASS_NAMES file, and
run-reproducers-test-code-coverage and stamps/run-netx-dist-tests stamps
(clean-netx-unit-tests) remove UNIT_CLASS_NAMES fiel and
run-unit-test-code-coverage and run-netx-unit-tests stamps
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codeCoverage.diff
Type: text/x-patch
Size: 7864 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111110/78c5e9d4/codeCoverage.diff
From vanaltj at icedtea.classpath.org Thu Nov 10 08:42:02 2011
From: vanaltj at icedtea.classpath.org (vanaltj at icedtea.classpath.org)
Date: Thu, 10 Nov 2011 16:42:02 +0000
Subject: /hg/buildbot: Add Fedora15&16 x86 slave configuration stanzas.
Message-ID:
changeset f01ccf3f2780 in /hg/buildbot
details: http://icedtea.classpath.org/hg/buildbot?cmd=changeset;node=f01ccf3f2780
author: Jon VanAlten
date: Thu Nov 10 11:14:54 2011 -0500
Add Fedora15&16 x86 slave configuration stanzas.
diffstat:
icedtea/master.cfg | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r afcfe8947eac -r f01ccf3f2780 icedtea/master.cfg
--- a/icedtea/master.cfg Thu Nov 10 12:59:53 2011 +0100
+++ b/icedtea/master.cfg Thu Nov 10 11:14:54 2011 -0500
@@ -42,6 +42,12 @@
max_builds=1),
BuildSlave("squeeze-armv5tel",
getpw("squeeze-armv5tel"),
+ max_builds=1),
+ BuildSlave("fedora16-x86",
+ getpw("vanaltj"),
+ max_builds=1),
+ BuildSlave("fedora15-x86",
+ getpw("vanaltj"),
max_builds=1)]
c['slavePortnum'] = 9989
From aph at redhat.com Thu Nov 10 09:00:09 2011
From: aph at redhat.com (Andrew Haley)
Date: Thu, 10 Nov 2011 17:00:09 +0000
Subject: Argh
In-Reply-To: <4EAFF894.8000902@redhat.com>
References: <4EA0285F.9010104@redhat.com> <4EAEC63D.9030104@redhat.com>
<4EAFF894.8000902@redhat.com>
Message-ID: <4EBC0319.30301@redhat.com>
So, I'm trawling through jtreg failures to see which ones really
are VM bugs,and I notice that some java.util.concurrent tests are
failing, and even some really simple ones. "Ah well," I thought,
"there must be some problem with the memory barrier code." So, I
read through the source looking for the barriers.
And that was the problem. There are no barriers. None, nada,
zilch. On ARM this is a really big problem: memory barriers are
essential.
I'm testing this patch.
Andrew.
2011-11-10 Andrew Haley
* openjdk-ecj/hotspot/src/cpu/zero/vm/thumb2.cpp (fullBarrier): New.
(storeBarrier): New.
(Thumb2_Accessor, Thumb2_codegen): Emit barriers for volatile
fields.
* arm_port/hotspot/src/cpu/zero/vm/cppInterpreter_arm.S
(TEST_VOLATILE, MAYBE_VOLATILE): New macros.
* arm_port/hotspot/src/cpu/zero/vm/bytecodes_arm.def (igetfield)
(bgetfield, cgetfield, sgetfield, lgetfield, iputfield, cputfield)
(bputfield, lputfield, getstatic, putstatic): Check for volatile
fields.
diff -r 0e1ae9c38563 arm_port/hotspot/src/cpu/zero/vm/asm_helper.cpp
--- a/arm_port/hotspot/src/cpu/zero/vm/asm_helper.cpp Tue Nov 08 06:03:17 2011 -0500
+++ b/arm_port/hotspot/src/cpu/zero/vm/asm_helper.cpp Thu Nov 10 16:46:20 2011 +0000
@@ -489,6 +489,8 @@
print_def("CONSTANTPOOL_CACHE", offset_of(constantPoolOopDesc, _cache));
print_def("CONSTANTPOOL_POOL_HOLDER", offset_of(constantPoolOopDesc, _pool_holder));
print_def("CONSTANTPOOL_BASE", sizeof(constantPoolOopDesc));
+ print_def("CP_CACHE_VOLATILE_FIELD_FLAG_BIT", ConstantPoolCacheEntry::volatileField);
+ print_def("CP_CACHE_FLAGS", offset_of(ConstantPoolCacheEntry, _flags));
nl();
print_def("CP_OFFSET", in_bytes(constantPoolCacheOopDesc::base_offset()));
nl();
diff -r 0e1ae9c38563 arm_port/hotspot/src/cpu/zero/vm/bytecodes_arm.def
--- a/arm_port/hotspot/src/cpu/zero/vm/bytecodes_arm.def Tue Nov 08 06:03:17 2011 -0500
+++ b/arm_port/hotspot/src/cpu/zero/vm/bytecodes_arm.def Thu Nov 10 16:46:20 2011 +0000
@@ -1573,10 +1573,12 @@
DISPATCH_NEXT
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r3, tmp2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
.abortentry78:
ldr tmp2, [tmp1, tmp2]
+ MAYBE_VOLATILE r3
DISPATCH_NEXT
DISPATCH_NEXT
PUSH tmp2
@@ -1592,10 +1594,12 @@
DISPATCH_NEXT
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r3, tmp2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
.abortentry79:
ldrsb tmp2, [tmp1, tmp2]
+ MAYBE_VOLATILE r3
DISPATCH_NEXT
DISPATCH_NEXT
PUSH tmp2
@@ -1611,10 +1615,12 @@
DISPATCH_NEXT
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r3, tmp2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
.abortentry80:
ldrh tmp2, [tmp1, tmp2]
+ MAYBE_VOLATILE r3
DISPATCH_NEXT
DISPATCH_NEXT
PUSH tmp2
@@ -1630,10 +1636,12 @@
DISPATCH_NEXT
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r3, tmp2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
.abortentry81:
ldrsh tmp2, [tmp1, tmp2]
+ MAYBE_VOLATILE r3
DISPATCH_NEXT
DISPATCH_NEXT
PUSH tmp2
@@ -1649,15 +1657,18 @@
DISPATCH_NEXT
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r3, tmp2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
add tmp2, tmp1, tmp2
DISPATCH_NEXT
.abortentry82:
ldmia tmp2, {tmp2, tmp1}
+ MAYBE_VOLATILE r3
DISPATCH_NEXT
PUSH tmp2, tmp1
DISPATCH_FINISH
+ .ltorg
}
(iputfield) iputfield {
@@ -1669,6 +1680,8 @@
DISPATCH_NEXT
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r2, tmp2
+ MAYBE_VOLATILE r2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
DISPATCH_NEXT
@@ -1687,6 +1700,8 @@
DISPATCH_NEXT
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r2, tmp2
+ MAYBE_VOLATILE r2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
DISPATCH_NEXT
@@ -1705,6 +1720,8 @@
DISPATCH_NEXT
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r2, tmp2
+ MAYBE_VOLATILE r2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
DISPATCH_NEXT
@@ -1721,6 +1738,8 @@
add tmp2, tmp2, r2, lsl #4
SW_NPC cmp tmp1, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r2, tmp2
+ MAYBE_VOLATILE r2
ldr tmp2, [tmp2, #CP_OFFSET+8]
.abortentry113:
str r3, [tmp1, tmp2]
@@ -1738,6 +1757,8 @@
DISPATCH_NEXT
SW_NPC cmp lr, #0
SW_NPC beq null_ptr_exception_jpc_3
+ TEST_VOLATILE r2, tmp2
+ MAYBE_VOLATILE r2
ldr tmp2, [tmp2, #CP_OFFSET+8]
DISPATCH_NEXT
add tmp2, lr, tmp2
@@ -1746,6 +1767,7 @@
.abortentry86:
stm tmp2, {r3, tmp1}
DISPATCH_FINISH
+ .ltorg
}
#endif // FAST_BYTECODES
@@ -1763,6 +1785,7 @@
ldr r3, [tmp2, #CP_OFFSET+4]
ldr r2, [tmp2, #CP_OFFSET+12]
ldr lr, [tmp2, #CP_OFFSET+8]
+ mov r1, r2 @ R1 saved for MAYBE_VOLATILE
movs r2, r2, lsr #29
bhi getstatic_w @ C = 1, Z = 0 => R2 == 3, 5, 7
bcs getstatic_h @ C = 1 => R2 = 1
@@ -1784,6 +1807,7 @@
blne resolve_get_put
ldr r3, [tmp2, #CP_OFFSET+4] @ r3 = object
ldr lr, [tmp2, #CP_OFFSET+12] @ lr = tos_type
+ MAYBE_VOLATILE lr
ldr r2, [tmp2, #CP_OFFSET+8] @ r2 = offset
movs lr, lr, lsr #29
bhi putstatic_w @ C = 1, Z = 0 => R2 == 3, 5, 7
@@ -1792,6 +1816,7 @@
tst lr, #2
bne putstatic_dw
b putstatic_sh
+ .ltorg
}
#ifdef NOTICE_SAFEPOINTS
diff -r 0e1ae9c38563 arm_port/hotspot/src/cpu/zero/vm/cppInterpreter_arm.S
--- a/arm_port/hotspot/src/cpu/zero/vm/cppInterpreter_arm.S Tue Nov 08 06:03:17 2011 -0500
+++ b/arm_port/hotspot/src/cpu/zero/vm/cppInterpreter_arm.S Thu Nov 10 16:46:20 2011 +0000
@@ -585,6 +585,21 @@
.fpu softvfp
#endif // HW_FP
+
+ .macro TEST_VOLATILE flags, cp_cache
+ ldr \flags, [\cp_cache, #CP_OFFSET+CP_CACHE_FLAGS]
+ .endm
+
+ .macro MAYBE_VOLATILE flags
+ tst \flags, #(1<codebuf, ARM_R0, ARM_R0, field_offset, 1, 0);
str_imm(jinfo->codebuf, ARM_R0, ARM_R1, 0, 1, 0);
+
+ if (cache->is_volatile())
+ fullBarrier(jinfo->codebuf);
+
// deoptimized_frames = 0
mov_imm(jinfo->codebuf, ARM_R0, 0);
mov_reg(jinfo->codebuf, ARM_PC, ARM_LR);
@@ -5589,6 +5605,10 @@
mov_imm(jinfo->codebuf, ARM_R1, index);
blx(jinfo->codebuf, handlers[handler]);
Thumb2_restore_locals(jinfo, bc_stackinfo[bci+len] & ~BC_FLAGS_MASK);
+
+ if (cache->is_volatile())
+ fullBarrier(jinfo->codebuf);
+
break;
}
@@ -5620,6 +5640,10 @@
else
ldr_imm(jinfo->codebuf, r, r_obj, field_offset, 1, 0);
}
+
+ if (cache->is_volatile())
+ fullBarrier(jinfo->codebuf);
+
break;
}
@@ -5652,6 +5676,10 @@
mov_imm(jinfo->codebuf, ARM_R1, index);
blx(jinfo->codebuf, handlers[handler]);
Thumb2_restore_locals(jinfo, bc_stackinfo[bci+len] & ~BC_FLAGS_MASK);
+
+ if (cache->is_volatile())
+ fullBarrier(jinfo->codebuf);
+
break;
}
@@ -5682,6 +5710,10 @@
else
ldr_imm(jinfo->codebuf, r, r, field_offset, 1, 0);
}
+
+ if (cache->is_volatile())
+ fullBarrier(jinfo->codebuf);
+
break;
}
@@ -5692,6 +5724,10 @@
Reg r_obj;
cache = cp->entry_at(index);
+
+ if (cache->is_volatile())
+ storeBarrier(jinfo->codebuf);
+
if (!cache->is_resolved((Bytecodes::Code)opcode)) {
int java_index = GET_NATIVE_U2(code_base+bci+1);
constantPoolOop pool = jinfo->method->constants();
@@ -5710,6 +5746,10 @@
mov_imm(jinfo->codebuf, ARM_R1, index);
blx(jinfo->codebuf, handlers[handler]);
Thumb2_restore_locals(jinfo, bc_stackinfo[bci+len] & ~BC_FLAGS_MASK);
+
+ if (cache->is_volatile())
+ fullBarrier(jinfo->codebuf);
+
break;
}
@@ -5741,6 +5781,10 @@
}
}
}
+
+ if (cache->is_volatile())
+ fullBarrier(jinfo->codebuf);
+
break;
}
@@ -5750,6 +5794,10 @@
int index = GET_NATIVE_U2(code_base+bci+1);
cache = cp->entry_at(index);
+
+ if (cache->is_volatile())
+ storeBarrier(jinfo->codebuf);
+
if (!cache->is_resolved((Bytecodes::Code)opcode)) {
int java_index = GET_NATIVE_U2(code_base+bci+1);
constantPoolOop pool = jinfo->method->constants();
@@ -5808,6 +5856,10 @@
}
}
}
+
+ if (cache->is_volatile())
+ fullBarrier(jinfo->codebuf);
+
break;
}
From stefan at complang.tuwien.ac.at Thu Nov 10 09:44:11 2011
From: stefan at complang.tuwien.ac.at (Stefan Ring)
Date: Thu, 10 Nov 2011 18:44:11 +0100
Subject: Argh
In-Reply-To: <4EBC0319.30301@redhat.com>
References: <4EA0285F.9010104@redhat.com> <4EAEC63D.9030104@redhat.com>
<4EAFF894.8000902@redhat.com> <4EBC0319.30301@redhat.com>
Message-ID:
On Thu, Nov 10, 2011 at 6:00 PM, Andrew Haley wrote:
> So, I'm trawling through jtreg failures to see which ones really
> are VM bugs,and I notice that some java.util.concurrent tests are
> failing, and even some really simple ones. ?"Ah well," I thought,
> "there must be some problem with the memory barrier code." ?So, I
> read through the source looking for the barriers.
>
> And that was the problem. ?There are no barriers. ?None, nada,
> zilch. ?On ARM this is a really big problem: memory barriers are
> essential.
CACAO also doesn't have any for ARM yet, IIRC - don't feel bad ;).
From bugzilla-daemon at icedtea.classpath.org Thu Nov 10 10:36:05 2011
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Thu, 10 Nov 2011 18:36:05 +0000
Subject: [Bug 809] Fails with USAA Deposit at Home
In-Reply-To:
References:
Message-ID:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=809
--- Comment #8 from Deepak Bhole 2011-11-10 18:36:05 UTC ---
I am unable to reproduce this locally if I create a sample applet (with the
parameters in comment #7 and the jars from comment #5.
Can you try clearing your cache (rm -rf ~/.icedtea/cache)? I doubt it will
help, but lets eliminate that before we start digging in deeper to find out why
it isn't reproducible..
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From mjw at icedtea.classpath.org Thu Nov 10 10:54:18 2011
From: mjw at icedtea.classpath.org (mjw at icedtea.classpath.org)
Date: Thu, 10 Nov 2011 18:54:18 +0000
Subject: /hg/buildbot: Hook up f15 and f16 builders to testrepo and icedt...
Message-ID:
changeset 32ff60cc1ae2 in /hg/buildbot
details: http://icedtea.classpath.org/hg/buildbot?cmd=changeset;node=32ff60cc1ae2
author: Mark Wielaard
date: Thu Nov 10 19:54:04 2011 +0100
Hook up f15 and f16 builders to testrepo and icedtea-web.
diffstat:
icedtea/master.cfg | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diffs (80 lines):
diff -r f01ccf3f2780 -r 32ff60cc1ae2 icedtea/master.cfg
--- a/icedtea/master.cfg Thu Nov 10 11:14:54 2011 -0500
+++ b/icedtea/master.cfg Thu Nov 10 19:54:04 2011 +0100
@@ -103,12 +103,16 @@
c['schedulers'].append(Scheduler(name="icedtea-web", branch="icedtea-web",
treeStableTimer=60,
builderNames=["icedtea-web-squeeze-x86_64",
+ "icedtea-web-f15-x86",
+ "icedtea-web-f16-x86",
"icedtea-web-squeeze-armv5tel",
"icedtea-web-natty-armv7l"]))
c['schedulers'].append(Scheduler(name="testrepo", branch="testrepo",
treeStableTimer=60,
builderNames=["testrepo-squeeze-x86_64",
+ "testrepo-f15-x86",
+ "testrepo-f16-x86",
"testrepo-natty-armv7l",
"testrepo-lucid-ia32",
"testrepo-squeeze-armv5tel"]))
@@ -206,6 +210,30 @@
'builddir': "icedtea-web",
'factory': f1 }
+f1f15 = factory.BuildFactory()
+f1f15.addStep(Mercurial(baseURL=hgrepo, workdir="src", mode="update"))
+f1f15.addStep(ShellCommand(command=["./autogen.sh"], workdir="src", description="autogen"))
+f1f15.addStep(ShellCommand(command=["rm", "-rf", "build"], workdir=".", description="clean build dir"))
+f1f15.addStep(Configure(command=["../src/configure"], workdir="build"))
+f1f15.addStep(Compile(command=["make", "-j4"], workdir="build"))
+f1f15.addStep(JTRegCheck(command=["make", "check"], workdir="build"))
+icedtea_web_builder_f15_x86 = { 'name': "icedtea-web-f15-x86",
+ 'slavenames': ["fedora15-x86"],
+ 'builddir': "f15-icedtea-web",
+ 'factory': f1f15 }
+
+f1f16 = factory.BuildFactory()
+f1f16.addStep(Mercurial(baseURL=hgrepo, workdir="src", mode="update"))
+f1f16.addStep(ShellCommand(command=["./autogen.sh"], workdir="src", description="autogen"))
+f1f16.addStep(ShellCommand(command=["rm", "-rf", "build"], workdir=".", description="clean build dir"))
+f1f16.addStep(Configure(command=["../src/configure"], workdir="build"))
+f1f16.addStep(Compile(command=["make", "-j4"], workdir="build"))
+f1f16.addStep(JTRegCheck(command=["make", "check"], workdir="build"))
+icedtea_web_builder_f16_x86 = { 'name': "icedtea-web-f16-x86",
+ 'slavenames': ["fedora16-x86"],
+ 'builddir': "f16-icedtea-web",
+ 'factory': f1f16 }
+
f1arm = factory.BuildFactory()
f1arm.addStep(Mercurial(baseURL=hgrepo, workdir="src", mode="update"))
f1arm.addStep(ShellCommand(command=["./autogen.sh"], workdir="src", description="autogen"))
@@ -233,6 +261,14 @@
'slavenames': ["squeeze-x86_64"],
'builddir': "testrepo",
'factory': f2 }
+testrepo_builder_f15_x86 = { 'name': "testrepo-f15-x86",
+ 'slavenames': ["fedora15-x86"],
+ 'builddir': "f15-testrepo",
+ 'factory': f2 }
+testrepo_builder_f16_x86 = { 'name': "testrepo-f16-x86",
+ 'slavenames': ["fedora16-x86"],
+ 'builddir': "f16-testrepo",
+ 'factory': f2 }
testrepo_builder_natty_armv7l = { 'name': "testrepo-natty-armv7l",
'slavenames': ["natty-armv7l"],
'builddir': "testrepo_natty_armv7l",
@@ -942,9 +978,13 @@
icedtea6_builder_full,
icedtea7_builder_full,
icedtea_web_builder_x86_64,
+ icedtea_web_builder_f15_x86,
+ icedtea_web_builder_f16_x86,
icedtea_web_builder_squeeze_armv5tel,
icedtea_web_builder_natty_armv7l,
testrepo_builder_x86_64,
+ testrepo_builder_f15_x86,
+ testrepo_builder_f16_x86,
testrepo_builder_natty_armv7l,
testrepo_builder_lucid_ia32,
testrepo_builder_squeeze_armv5tel ]
From ahughes at redhat.com Thu Nov 10 10:59:15 2011
From: ahughes at redhat.com (Dr Andrew John Hughes)
Date: Thu, 10 Nov 2011 18:59:15 +0000
Subject: Build of IcedTea6 HEAD broken
In-Reply-To: <4EBBA6A6.8040900@redhat.com>
References: <20111110092324.GB31481@rivendell.middle-earth.co.uk>
<1320919763.3298.33.camel@springer.wildebeest.org>
<4EBBA6A6.8040900@redhat.com>
Message-ID: <20111110185915.GE17686@rivendell.middle-earth.co.uk>
On 10:25 Thu 10 Nov , Andrew Haley wrote:
> On 11/10/2011 10:09 AM, Mark Wielaard wrote:
> > Can you give a bit more information about how your nightly builder is
> > setup/configured?
>
> Yes, please. I'll fix it as soon as I can duplicate it. I wonder
> if it's a debug build.
>
> Andrew.
>
I couldn't replicate it with a default build either, which probably explains
why no-one spotted it yet. The builder tests a number of targets (setup by
Omair IIRC) and indeed this failure occurs when it runs 'make icedtea-debug'.
Config for this build is:
./configure --disable-bootstrap --with-parallel-jobs=3 --with-openjdk-src-zip=/notnfs/nighttester/drops/openjdk-6-src-b23-05_jul_2011.tar.gz --with-cacao-src-zip=/notnfs/nighttester/drops/cacao-dd4532afd08a.tar.bz2 --with-hotspot-src-zip=/notnfs/nighttester/drops/hs20.tar.gz --with-jaxp-drop-zip=/notnfs/nighttester/drops/jaxp6.zip --with-jaf-drop-zip=/notnfs/nighttester/drops/jaf6.zip --with-jaxws-drop-zip=/notnfs/nighttester/drops/jaxws6.zip --enable-systemtap
so basically:
./configure --disable-bootstrap --enable-systemtap --with-parallel-jobs=3
plus pre-downloaded zips
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111110/2ada1c51/attachment.bin
From jvanek at icedtea.classpath.org Thu Nov 10 11:56:00 2011
From: jvanek at icedtea.classpath.org (jvanek at icedtea.classpath.org)
Date: Thu, 10 Nov 2011 19:56:00 +0000
Subject: /hg/icedtea-web: Enabled testWeekdayRange, added tests for star/...
Message-ID:
changeset 5860a2cbe221 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=5860a2cbe221
author: Jiri Vanek
date: Thu Nov 10 20:57:36 2011 +0100
Enabled testWeekdayRange, added tests for star/end of months for
dateRange pac function
diffstat:
ChangeLog | 15 ++++
netx/net/sourceforge/jnlp/runtime/pac-funcs.js | 65 +++++++++++-------
tests/netx/pac/pac-funcs-test.js | 85 +++++++++++++++++++++++++-
3 files changed, 136 insertions(+), 29 deletions(-)
diffs (255 lines):
diff -r f36e0b3fb9f0 -r 5860a2cbe221 ChangeLog
--- a/ChangeLog Tue Nov 08 11:06:52 2011 -0500
+++ b/ChangeLog Thu Nov 10 20:57:36 2011 +0100
@@ -1,3 +1,18 @@
+2011-11-10 Jiri Vanek
+
+ Added tests which covers corner cases or rhino support function dateRange
+ Enabled testWeekdayRange test
+ * tests/netx/pac/pac-funcs-test.js: (testWeekdayRange) - added mising
+ runTests call
+ (incDate) (decDate) (monthToStr) moved level up from function scope
+ to be shareable
+ (testDateRange2) new method, tests last days of months.
+ (testDateRange3) new method, tests first days of months
+ * netx/net/sourceforge/jnlp/runtime/pac-funcs.js:
+ (dateRange) logic of this method moved to isDateInRange. This one now serve
+ just as api using current date
+ (isDateInRange) logic of dateRange, can calculate ranges against any date
+
2011-10-31 Omair Majid
PR808: javaws is unable to start when missing jars are enumerated before
diff -r f36e0b3fb9f0 -r 5860a2cbe221 netx/net/sourceforge/jnlp/runtime/pac-funcs.js
--- a/netx/net/sourceforge/jnlp/runtime/pac-funcs.js Tue Nov 08 11:06:52 2011 -0500
+++ b/netx/net/sourceforge/jnlp/runtime/pac-funcs.js Thu Nov 10 20:57:36 2011 +0100
@@ -325,18 +325,20 @@
* of the above ways of calling.
*/
function dateRange() {
+ switch (arguments.length) {
+ case 1: return isDateInRange(new Date(),arguments[0]);
+ case 2: return isDateInRange(new Date(),arguments[0],arguments[1]);
+ case 3: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2]);
+ case 4: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3]);
+ case 5: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);
+ case 6: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);
+ case 7: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]); //GMT
+ default:
+ return false;
+ }
+}
- // note: watch out for wrapping around of dates. date ranges, like
- // month=9 to month=8, wrap around and cover the entire year. this
- // makes everything more interesting
-
- var gmt;
- if (arguments.length > 1) {
- if (arguments[arguments.length-1] === "GMT") {
- gmt = true;
- arguments.splice(0,arguments.length-1);
- }
- }
+ function isDateInRange() {
function isDate(date) {
if (typeof(date) === 'number' && (date <= 31 && date >= 1)) {
@@ -578,8 +580,19 @@
}
}
+ // note: watch out for wrapping around of dates. date ranges, like
+ // month=9 to month=8, wrap around and cover the entire year. this
+ // makes everything more interesting
+
+ var gmt;
+ if (arguments.length > 2) {
+ if (arguments[arguments.length-1] === "GMT") {
+ gmt = true;
+ arguments.splice(0,arguments.length-1);
+ }
+ }
// TODO: change date to gmt, whatever
- var today = new Date();
+ var today = arguments[0]
var arg1;
var arg2;
@@ -588,9 +601,9 @@
var arg5;
var arg6;
- switch (arguments.length) {
+ switch (arguments.length-1) {
case 1:
- var arg = arguments[0];
+ var arg = arguments[1];
if (isDate(arg)) {
if (today.getDate() === arg) {
return true;
@@ -611,8 +624,8 @@
}
}
case 2:
- arg1 = arguments[0];
- arg2 = arguments[1];
+ arg1 = arguments[1];
+ arg2 = arguments[2];
if (isDate(arg1) && isDate(arg2)) {
var date1 = arg1;
var date2 = arg2;
@@ -634,10 +647,10 @@
return false;
}
case 4:
- arg1 = arguments[0];
- arg2 = arguments[1];
- arg3 = arguments[2];
- arg4 = arguments[3];
+ arg1 = arguments[1];
+ arg2 = arguments[2];
+ arg3 = arguments[3];
+ arg4 = arguments[4];
if (isDate(arg1) && isMonth(arg2) && isDate(arg3) && isMonth(arg4)) {
var date1 = arg1;
@@ -658,12 +671,12 @@
return false;
}
case 6:
- arg1 = arguments[0];
- arg2 = arguments[1];
- arg3 = arguments[2];
- arg4 = arguments[3];
- arg5 = arguments[4];
- arg6 = arguments[5];
+ arg1 = arguments[1];
+ arg2 = arguments[2];
+ arg3 = arguments[3];
+ arg4 = arguments[4];
+ arg5 = arguments[5];
+ arg6 = arguments[6];
if (isDate(arg1) && isMonth(arg2) && isYear(arg3) &&
isDate(arg4) && isMonth(arg5) && isYear(arg6)) {
var day1 = arg1;
diff -r f36e0b3fb9f0 -r 5860a2cbe221 tests/netx/pac/pac-funcs-test.js
--- a/tests/netx/pac/pac-funcs-test.js Tue Nov 08 11:06:52 2011 -0500
+++ b/tests/netx/pac/pac-funcs-test.js Thu Nov 10 20:57:36 2011 +0100
@@ -21,9 +21,11 @@
testDnsResolve();
testDnsDomainLevels();
testShExpMatch();
- testWeekdayRange();
testDateRange();
testTimeRange();
+ testWeekdayRange();
+ testDateRange2();
+ testDateRange3();
java.lang.System.out.println("Test results: passed: " + testsPassed + "; failed: " + testsFailed + ";");
}
@@ -235,10 +237,10 @@
[ false, dayToStr(day+1) ],
[ false, dayToStr(day-1) ],
];
+
+ runTests(weekdayRange, tests);
}
-function testDateRange() {
-
function incDate(date) {
return (date + 1 - 1) % 31 +1 ;
}
@@ -267,6 +269,9 @@
}
}
+function testDateRange() {
+
+
var today = new Date();
var date = today.getDate();
var month = today.getMonth();
@@ -369,6 +374,80 @@
}
+function testDateRange2() {
+
+ var dates = [
+ new Date("January 31, 2011 3:33:33"),
+ new Date("February 28, 2011 3:33:33"),
+ new Date("February 29, 2012 3:33:33"),
+ new Date("March 31, 2011 3:33:33"),
+ new Date("April 30, 2011 3:33:33"),
+ new Date("May 31, 2011 3:33:33"),
+ new Date("June 30, 2011 3:33:33"),
+ new Date("July 31, 2011 3:33:33"),
+ new Date("August 31, 2011 3:33:33"),
+ new Date("September 30, 2011 3:33:33"),
+ new Date("October 31, 2011 3:33:33"),
+ new Date("November 30, 2011 3:33:33"),
+ new Date("December 31, 2011 3:33:33"),
+
+]
+ for (var i = 0; i < dates.length; i++) {
+ var today = dates[i];
+ var date = today.getDate();
+ var month = today.getMonth();
+ var year = today.getYear();
+
+ var tests = [
+
+ [ true, today, date, monthToStr(month) , incDate(date), monthToStr(month) ],
+ [ true, today, decDate(date), monthToStr(month) , incDate(date), monthToStr(month) ],
+ [ true, today, decDate(date), monthToStr(month), year, incDate(date), monthToStr(month), year ],
+ [ false, today, incDate(date), monthToStr(month), year, incDate(date), monthToStr(month+1), year+1 ],
+
+ ];
+
+ runTests(isDateInRange, tests);
+ }
+
+}
+
+function testDateRange3() {
+ var dates = [
+ new Date("January 1, 2011 1:11:11"),
+ new Date("February 1, 2011 1:11:11"),
+ new Date("March 1, 2011 1:11:11"),
+ new Date("April 1, 2011 1:11:11"),
+ new Date("May 1, 2011 1:11:11"),
+ new Date("June 1, 2011 1:11:11"),
+ new Date("July 1, 2011 1:11:11"),
+ new Date("August 1, 2011 1:11:11"),
+ new Date("September 1, 2011 1:11:11"),
+ new Date("October 1, 2011 1:11:11"),
+ new Date("November 1, 2011 1:11:11"),
+ new Date("December 1, 2011 1:11:11"),
+
+ ]
+
+
+
+ for (var i = 0; i < dates.length; i++) {
+ var today = dates[i]
+ var date = today.getDate();
+ var month = today.getMonth();
+ var year = today.getYear();
+
+ var tests = [
+ [ true, today, decDate(date), monthToStr(month) , date, monthToStr(month) ],
+ [ true, today, decDate(date), monthToStr(month) , incDate(date), monthToStr(month) ],
+ [ true, today, decDate(date), monthToStr(month), year, incDate(date), monthToStr(month), year ],
+
+ ];
+
+ runTests(isDateInRange, tests);
+ }
+}
+
function testTimeRange() {
var now = new Date();
From mjw at icedtea.classpath.org Thu Nov 10 12:38:48 2011
From: mjw at icedtea.classpath.org (mjw at icedtea.classpath.org)
Date: Thu, 10 Nov 2011 20:38:48 +0000
Subject: /hg/buildbot: Hook up icedtea6/7 builds to f15/16-x86 build slaves.
Message-ID:
changeset ec7d0609cbed in /hg/buildbot
details: http://icedtea.classpath.org/hg/buildbot?cmd=changeset;node=ec7d0609cbed
author: Mark Wielaard
date: Thu Nov 10 21:38:42 2011 +0100
Hook up icedtea6/7 builds to f15/16-x86 build slaves.
diffstat:
icedtea/master.cfg | 44 +++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 43 insertions(+), 1 deletions(-)
diffs (96 lines):
diff -r 32ff60cc1ae2 -r ec7d0609cbed icedtea/master.cfg
--- a/icedtea/master.cfg Thu Nov 10 19:54:04 2011 +0100
+++ b/icedtea/master.cfg Thu Nov 10 21:38:42 2011 +0100
@@ -2,7 +2,7 @@
# ex: set syntax=python:
# Python master.cfg program for IcedTea buildbot.
-# Copyright (C) 2010, Mark J. Wielaard
+# Copyright (C) 2010, 2011, Mark J. Wielaard
# This file is part of the IcedTea buildbot, and is free software.
# You can redistribute it and/or modify it under the terms of the GNU
@@ -76,6 +76,8 @@
"icedtea6-squeeze-x86_64-quick-jamvm",
"icedtea6-squeeze-x86_64-quick-cacao",
"icedtea6-squeeze-x86_64-quick-shark",
+ "icedtea6-f15-x86",
+ "icedtea6-f16-x86",
"icedtea6-natty-armv7l-quick",
"icedtea6-natty-armv7l-quick-cacao",
"icedtea6-natty-armv7l-quick-jamvm",
@@ -93,6 +95,8 @@
c['schedulers'].append(Scheduler(name="icedtea7-quick", branch="icedtea7",
treeStableTimer=5*60,
builderNames=["icedtea7-squeeze-x86_64-quick",
+ "icedtea7-f15-x86",
+ "icedtea7-f16-x86",
"icedtea7-squeeze-armv5tel-quick",
"icedtea7-natty-armv7l-quick"]
))
@@ -447,6 +451,24 @@
alwaysRun=True,
description="killall"))
+# Default build factory that just does autogen, configure, make and make check
+fdefault = factory.BuildFactory()
+fdefault.addStep(Mercurial(baseURL=hgrepo, workdir="src", mode="update"))
+fdefault.addStep(ShellCommand(command=["./autogen.sh"], workdir="src",
+ description="autogen"))
+fdefault.addStep(ShellCommand(command=["rm", "-rf", "build"], workdir=".",
+ description="clean build dir"))
+fdefault.addStep(Configure(command=["../src/configure",
+ "--with-parallel-jobs=2"],
+ workdir="build"))
+fdefault.addStep(Compile(workdir="build"))
+fdefault.addStep(JTRegCheck(command=["make", "check"], description="check",
+ workdir="build"))
+fdefault.addStep(ShellCommand(command=["killall", "-q", "-v", "-s", "KILL",
+ "java"], workdir=".",
+ flunkOnFailure=False, alwaysRun=True,
+ description="killall"))
+
f3an7 = factory.BuildFactory()
f3an7.addStep(Mercurial(baseURL=hgrepo, workdir="src", mode="update"))
f3an7.addStep(ShellCommand(command=["./autogen.sh"],
@@ -843,6 +865,22 @@
'slavenames': ["squeeze-x86_64"],
'builddir': "icedtea6-quick-shark",
'factory': f3s }
+icedtea6_builder_f15_x86 = { 'name': "icedtea6-f15-x86",
+ 'slavenames': ["fedora15-x86"],
+ 'builddir': "icedtea6-f15-x86",
+ 'factory': fdefault }
+icedtea6_builder_f16_x86 = { 'name': "icedtea6-f16-x86",
+ 'slavenames': ["fedora16-x86"],
+ 'builddir': "icedtea6-f16-x86",
+ 'factory': fdefault }
+icedtea7_builder_f15_x86 = { 'name': "icedtea7-f15-x86",
+ 'slavenames': ["fedora15-x86"],
+ 'builddir': "icedtea7-f15-x86",
+ 'factory': fdefault }
+icedtea7_builder_f16_x86 = { 'name': "icedtea7-f16-x86",
+ 'slavenames': ["fedora16-x86"],
+ 'builddir': "icedtea7-f16-x86",
+ 'factory': fdefault }
icedtea6_builder_quick_arm_natty = { 'name': "icedtea6-natty-armv7l-quick",
'slavenames': ["natty-armv7l"],
'builddir': "icedtea6-natty-armv7l-quick",
@@ -960,6 +998,8 @@
icedtea6_builder_quick_jamvm,
icedtea6_builder_quick_cacao,
icedtea6_builder_quick_shark,
+ icedtea6_builder_f15_x86,
+ icedtea6_builder_f16_x86,
icedtea6_builder_quick_arm_natty,
icedtea6_builder_quick_arm_natty_cacao,
icedtea6_builder_quick_arm_natty_jamvm,
@@ -973,6 +1013,8 @@
icedtea6_builder_quick_armv5tel_squeeze_jamvm,
icedtea6_builder_quick_armv5tel_squeeze_shark,
icedtea7_builder_quick,
+ icedtea7_builder_f15_x86,
+ icedtea7_builder_f16_x86,
icedtea7_builder_quick_armv5tel_squeeze,
icedtea7_builder_quick_arm_natty,
icedtea6_builder_full,
From ahughes at redhat.com Thu Nov 10 14:51:57 2011
From: ahughes at redhat.com (Dr Andrew John Hughes)
Date: Thu, 10 Nov 2011 22:51:57 +0000
Subject: Request to backport 7102369/709446/7100592 and 7092186
In-Reply-To: <4EBC4498.9000807@redhat.com>
References: <4EBC4498.9000807@redhat.com>
Message-ID: <20111110225157.GI17686@rivendell.middle-earth.co.uk>
On 16:39 Thu 10 Nov , Omair Majid wrote:
> Hi,
>
> The recent security changes breaks some applications as rmiregistry
> needs to be started with the java.rmi.server.codebase property set. I
> would like to backport the following two changesets from jdk7u to
> address this problem:
>
> http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/7ed2fd310470
> http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/2d10aa9d772a
>
> Does anyone have any thoughts or concerns?
>
Can you explain a bit more about these patches and why they are
needed/appropriate? The bugs don't give much detail and one isn't
even accessible.
Have you posted these to IcedTea?
> Thanks,
> Omair
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111110/1630353d/attachment.bin
From aph at redhat.com Fri Nov 11 03:15:59 2011
From: aph at redhat.com (Andrew Haley)
Date: Fri, 11 Nov 2011 11:15:59 +0000
Subject: Build of IcedTea6 HEAD broken
In-Reply-To: <20111110185915.GE17686@rivendell.middle-earth.co.uk>
References: <20111110092324.GB31481@rivendell.middle-earth.co.uk>
<1320919763.3298.33.camel@springer.wildebeest.org>
<4EBBA6A6.8040900@redhat.com>
<20111110185915.GE17686@rivendell.middle-earth.co.uk>
Message-ID: <4EBD03EF.9070207@redhat.com>
On 11/10/2011 06:59 PM, Dr Andrew John Hughes wrote:
> On 10:25 Thu 10 Nov , Andrew Haley wrote:
>> On 11/10/2011 10:09 AM, Mark Wielaard wrote:
>>> Can you give a bit more information about how your nightly builder is
>>> setup/configured?
>>
>> Yes, please. I'll fix it as soon as I can duplicate it. I wonder
>> if it's a debug build.
>
> I couldn't replicate it with a default build either, which probably explains
> why no-one spotted it yet. The builder tests a number of targets (setup by
> Omair IIRC) and indeed this failure occurs when it runs 'make icedtea-debug'.
Ah, OK. It should be really easy to fix that. Sorry for the breakage.
The build config for ARM is really messy at the moment, so I need
to tidy it up a bit.
Andrew.
From ptisnovs at icedtea.classpath.org Fri Nov 11 03:23:23 2011
From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org)
Date: Fri, 11 Nov 2011 11:23:23 +0000
Subject: /hg/gfx-test: 2011-11-11 Pavel Tisnovsky
Message-ID:
changeset ee567b76ecc2 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=ee567b76ecc2
author: Pavel Tisnovsky
date: Fri Nov 11 12:25:13 2011 +0100
2011-11-11 Pavel Tisnovsky
* Makefile: updated
* src/org/gfxtest/testsuites/AALines.java: Improved JavaDoc.
* src/org/gfxtest/testsuites/AAEllipses.java: Created new test
suite used for checking proper rendering of antialiased
ellipses.
diffstat:
ChangeLog | 9 +
Makefile | 2 +
src/org/gfxtest/testsuites/AAEllipses.java | 382 +++++++++++++++++++++++++++++
src/org/gfxtest/testsuites/AALines.java | 74 +++-
4 files changed, 442 insertions(+), 25 deletions(-)
diffs (truncated from 700 to 500 lines):
diff -r 2d45a6c76b6a -r ee567b76ecc2 ChangeLog
--- a/ChangeLog Thu Nov 10 16:24:44 2011 +0100
+++ b/ChangeLog Fri Nov 11 12:25:13 2011 +0100
@@ -1,3 +1,12 @@
+2011-11-11 Pavel Tisnovsky
+
+ * Makefile: updated
+ * src/org/gfxtest/testsuites/AALines.java:
+ Improved JavaDoc.
+ * src/org/gfxtest/testsuites/AAEllipses.java:
+ Created new test suite used for checking proper rendering
+ of antialiased ellipses.
+
2011-11-10 Pavel Tisnovsky
* Makefile: updated
diff -r 2d45a6c76b6a -r ee567b76ecc2 Makefile
--- a/Makefile Thu Nov 10 16:24:44 2011 +0100
+++ b/Makefile Fri Nov 11 12:25:13 2011 +0100
@@ -102,6 +102,7 @@
TESTSUITE_CLASSES = \
$(CLASSES)/$(TESTSUITE_DIR)/Areas.class \
$(CLASSES)/$(TESTSUITE_DIR)/AALines.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/AAEllipses.class \
$(CLASSES)/$(TESTSUITE_DIR)/AlphaComposite.class \
$(CLASSES)/$(TESTSUITE_DIR)/BlankImage.class \
$(CLASSES)/$(TESTSUITE_DIR)/ColorPaint.class \
@@ -156,6 +157,7 @@
COMPARE_RESULTS = \
$(RESULTS)/Areas \
$(RESULTS)/AALines \
+ $(RESULTS)/AAEllipses \
$(RESULTS)/AlphaComposite \
$(RESULTS)/BlankImage \
$(RESULTS)/ColorPaint \
diff -r 2d45a6c76b6a -r ee567b76ecc2 src/org/gfxtest/testsuites/AAEllipses.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/AAEllipses.java Fri Nov 11 12:25:13 2011 +0100
@@ -0,0 +1,382 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea 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 for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package org.gfxtest.testsuites;
+
+import java.awt.Color;
+import java.awt.Graphics2D;
+import java.awt.RenderingHints;
+import java.awt.image.BufferedImage;
+
+
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.TestImage;
+import org.gfxtest.framework.TestResult;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.RenderStyle;
+import org.gfxtest.framework.annotations.RenderStyles;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+
+
+/**
+ * This test check the rendering of antialiased circles and ellipses. All sample
+ * images and test images are zoomed to show the pixel-wide differences between
+ * both renderers. Zoom factor is set to 16.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.ELLIPSE)
+ at RenderStyle(RenderStyles.NORMAL_AA)
+ at Transformation(Transformations.NONE)
+ at Zoom(16)
+public class AAEllipses extends GfxTest
+{
+
+ /**
+ * Draw circle onto the image using given color and also highlights circle
+ * center point and four points at quadrants. Odd width and height is used
+ * for the test circle.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @param xc
+ * x-coordination of circle center
+ * @param yc
+ * y-coordination of circle center
+ * @param radius
+ * radius of circle
+ * @param color
+ * circle color
+ */
+ private static void drawCircleOddSize(BufferedImage image, Graphics2D graphics2d, int xc, int yc, int radius, Color color)
+ {
+ // rectangle around the circle
+ int x1 = xc - radius;
+ int y1 = yc - radius;
+ int x2 = xc + radius;
+ int y2 = yc + radius;
+
+ // circle size
+ int size = 1 + radius * 2;
+
+ // draw circle
+ graphics2d.setColor(color);
+ graphics2d.drawOval(x1, y1, size, size);
+
+ // draw interesting points for the circle
+ renderCircleCenter(image, xc, yc);
+ renderCircleQuadrant(image, xc, yc, x1, y1, x2, y2);
+ }
+
+ /**
+ * Draw circle onto the image using given color and also highlights circle
+ * center point and four points at quadrants. Even width and height is used
+ * for the test circle.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @param xc
+ * x-coordination of circle center
+ * @param yc
+ * y-coordination of circle center
+ * @param radius
+ * radius of circle
+ * @param color
+ * circle color
+ */
+ private static void drawCircleEvenSize(BufferedImage image, Graphics2D graphics2d, int xc, int yc, int radius, Color color)
+ {
+ // rectangle around the circle
+ int x1 = xc - radius;
+ int y1 = yc - radius;
+ int x2 = xc + radius;
+ int y2 = yc + radius;
+
+ // circle size
+ int size = radius * 2;
+
+ // draw circle
+ graphics2d.setColor(color);
+ graphics2d.drawOval(x1, y1, size, size);
+
+ // draw interesting points for the circle
+ renderCircleCenter(image, xc, yc);
+ renderCircleQuadrant(image, xc, yc, x1, y1, x2, y2);
+ }
+
+ /**
+ * Draw pixel which is in the center of circle.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param xc
+ * x-coordination of circle center
+ * @param yc
+ * y-coordination of circle center
+ */
+ private static void renderCircleCenter(BufferedImage image, int xc, int yc)
+ {
+ // pixes at the center of circle
+ image.setRGB(xc, yc, 0xff0000);
+ }
+
+ /**
+ * Draw pixel which is in the circle quadrant.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param xc
+ * x-coordination of circle center
+ * @param yc
+ * y-coordination of circle center
+ * @param x1
+ * leftmost part of circle
+ * @param y1
+ * topmost part of circle
+ * @param x2
+ * rightmost part of circle
+ * @param y2
+ * undermost part of circle
+ */
+ private static void renderCircleQuadrant(BufferedImage image, int xc, int yc, int x1, int y1, int x2, int y2)
+ {
+ renderCircleCenter(image, x1, yc);
+ renderCircleCenter(image, x2, yc);
+ renderCircleCenter(image, xc, y1);
+ renderCircleCenter(image, xc, y2);
+ }
+
+ /**
+ * Draw circles with odd size (width and height).
+ *
+ * @param image
+ * test image
+ * @param graphics2d
+ * graphics canvas
+ */
+ private void drawCirclesOddSize(TestImage image, Graphics2D graphics2d)
+ {
+ // compute center of circles
+ int xc = image.getCenterX();
+ int yc = image.getCenterY();
+ // image used for rendering
+ final BufferedImage bufferedImage = image.getImage();
+ // draw circles
+ drawCircleOddSize(bufferedImage, graphics2d, xc, yc, 2, Color.BLACK);
+ drawCircleOddSize(bufferedImage, graphics2d, xc, yc, 4, Color.YELLOW);
+ drawCircleOddSize(bufferedImage, graphics2d, xc, yc, 6, Color.MAGENTA);
+ drawCircleOddSize(bufferedImage, graphics2d, xc, yc, 9, Color.BLUE);
+ drawCircleOddSize(bufferedImage, graphics2d, xc, yc, 12, Color.GRAY);
+ }
+
+ /**
+ * Draw circles with even size (width and height).
+ * @param image
+ * test image
+ * @param graphics2d
+ * graphics canvas
+ */
+ private void drawCirclesEvenSize(TestImage image, Graphics2D graphics2d)
+ {
+ // compute center of circles
+ int xc = image.getCenterX();
+ int yc = image.getCenterY();
+ // image used for rendering
+ final BufferedImage bufferedImage = image.getImage();
+ // draw circles
+ drawCircleEvenSize(bufferedImage, graphics2d, xc, yc, 2, Color.BLACK);
+ drawCircleEvenSize(bufferedImage, graphics2d, xc, yc, 4, Color.YELLOW);
+ drawCircleEvenSize(bufferedImage, graphics2d, xc, yc, 6, Color.MAGENTA);
+ drawCircleEvenSize(bufferedImage, graphics2d, xc, yc, 9, Color.BLUE);
+ drawCircleEvenSize(bufferedImage, graphics2d, xc, yc, 12, Color.GRAY);
+ }
+
+ /**
+ * This method just enables antialiasing for the following rendering
+ * operation.
+ *
+ * @param graphics2d
+ * graphics canvas
+ */
+ private void setAA1(Graphics2D graphics)
+ {
+ graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
+ }
+
+ /**
+ * This method just enables antialiasing and fractional metrics for the
+ * following rendering operation.
+ *
+ * @param graphics2d
+ * graphics canvas
+ */
+ private void setAA2(Graphics2D graphics)
+ {
+ graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
+ graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
+ }
+
+ /**
+ * Test rendering of circles with various sizes, but the sizes are all odd.
+ *
+ * @param image
+ * test image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result
+ */
+ public TestResult testCircleOddSizeNoAA(TestImage image, Graphics2D graphics2d)
+ {
+ // draw test circles
+ drawCirclesOddSize(image, graphics2d);
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Test rendering of circles with various sizes, but the sizes are all even.
+ *
+ * @param image
+ * test image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result
+ */
+ public TestResult testCircleEvenSizeNoAA(TestImage image, Graphics2D graphics2d)
+ {
+ // draw test circles
+ drawCirclesEvenSize(image, graphics2d);
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Test rendering of circles with various sizes, but the sizes are all odd.
+ *
+ * @param image
+ * test image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result
+ */
+ public TestResult testCircleOddSizeAA1(TestImage image, Graphics2D graphics2d)
+ {
+ // enable antialiasing
+ setAA1(graphics2d);
+ // draw test circles
+ drawCirclesOddSize(image, graphics2d);
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Test rendering of circles with various sizes, but the sizes are all even.
+ *
+ * @param image
+ * test image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result
+ */
+ public TestResult testCircleEvenSizeAA1(TestImage image, Graphics2D graphics2d)
+ {
+ // enable antialiasing
+ setAA1(graphics2d);
+ // draw test circles
+ drawCirclesEvenSize(image, graphics2d);
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Test rendering of circles with various sizes, but the sizes are all odd.
+ *
+ * @param image
+ * test image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result
+ */
+ public TestResult testCircleOddSizeAA2(TestImage image, Graphics2D graphics2d)
+ {
+ // enable antialiasing and fractional metrics
+ setAA2(graphics2d);
+ // draw test circles
+ drawCirclesOddSize(image, graphics2d);
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Test rendering of circles with various sizes, but the sizes are all even.
+ *
+ * @param image
+ * test image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result
+ */
+ public TestResult testCircleEvenSizeAA2(TestImage image, Graphics2D graphics2d)
+ {
+ // enable antialiasing and fractional metrics
+ setAA2(graphics2d);
+ // draw test circles
+ drawCirclesEvenSize(image, graphics2d);
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new AAEllipses().runTestSuite(args);
+ }
+
+}
diff -r 2d45a6c76b6a -r ee567b76ecc2 src/org/gfxtest/testsuites/AALines.java
--- a/src/org/gfxtest/testsuites/AALines.java Thu Nov 10 16:24:44 2011 +0100
+++ b/src/org/gfxtest/testsuites/AALines.java Fri Nov 11 12:25:13 2011 +0100
@@ -48,11 +48,13 @@
import org.gfxtest.framework.*;
import org.gfxtest.framework.annotations.*;
+
+
/**
- * This test check the rendering of antialiased lines.
- * All sample images and test images are zoomed to show
- * the pixel-wide differences between both renderers.
- *
+ * This test check the proper rendering of antialiased lines. All sample images
+ * and test images are zoomed to show the pixel-wide differences between both
+ * renderers. Zoom factor is set to 16.
+ *
* @author Pavel Tisnovsky
*/
@TestType(TestTypes.RENDER_TEST)
@@ -83,13 +85,15 @@
*/
private static void drawLine(BufferedImage image, Graphics2D graphics2d, int x1, int y1, int x2, int y2, Color color)
{
+ // draw the line
graphics2d.setColor(color);
graphics2d.drawLine(x1, y1, x2, y2);
-
+
+ // highlight also both line endpoints
image.setRGB(x1, y1, 0xff0000);
image.setRGB(x2, y2, 0xff0000);
}
-
+
/**
* Draws various horizontal lines with end points having theirs
* y-coordinates changed by +- one pixel.
@@ -101,13 +105,18 @@
*/
private static void drawHorizontalJaggedLines(BufferedImage image, Graphics2D graphics)
{
+ // y-difference is +1 pixel
drawLine(image, graphics, 3, 3, 36, 4, Color.BLACK);
+ // y-difference is +1 pixel
drawLine(image, graphics, 3, 9, 36, 10, Color.YELLOW);
+ // y-difference is +1 pixel
drawLine(image, graphics, 3, 15, 36, 16, Color.MAGENTA);
+ // y-difference is -1 pixel
drawLine(image, graphics, 3, 21, 36, 20, Color.BLUE);
+ // y-difference is -1 pixel
drawLine(image, graphics, 3, 26, 36, 25, Color.GRAY);
}
-
+
/**
* Draws various vertical lines with end points having theirs x-coordinates
* changed by +- one pixel.
@@ -125,7 +134,7 @@
drawLine(image, graphics, 27, 3, 28, 26, Color.BLUE);
drawLine(image, graphics, 35, 3, 34, 26, Color.GRAY);
}
-
+
/**
* Draw color wheel, ie. lines with one common end point and other end point
* forming circle.
@@ -143,12 +152,14 @@
// draw color wheel
for (int i = 0; i < ANGLES; i++)
{
+ // compute color for each line
Color color = new Color(Color.HSBtoRGB((float)i/ANGLES, 1.0f, 1.0f));
graphics.setColor(color);
int majorRadius = (xc > yc ? yc : xc) - 2;
double angle = 2.0 * i / ANGLES * Math.PI;
double cos = Math.cos(angle);
double sin = Math.sin(angle);
From jvanek at icedtea.classpath.org Fri Nov 11 05:40:01 2011
From: jvanek at icedtea.classpath.org (jvanek at icedtea.classpath.org)
Date: Fri, 11 Nov 2011 13:40:01 +0000
Subject: /hg/icedtea-web: 3 new changesets
Message-ID:
changeset 1f74d3de726c in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=1f74d3de726c
author: Jiri Vanek
date: Fri Nov 11 14:33:29 2011 +0100
reproducers engine can now handle files and directories with spaces
changeset dc34e82d88d4 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=dc34e82d88d4
author: Jiri Vanek
date: Fri Nov 11 14:35:45 2011 +0100
Added reproducer for handling spaces by javaws both localy and
remotely
changeset 22db4e09bbc7 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=22db4e09bbc7
author: Jiri Vanek
date: Fri Nov 11 14:40:26 2011 +0100
chenglogs for spaces reproducers and for changes to engine because
of spaces
diffstat:
ChangeLog | 38 ++
Makefile.am | 26 +-
NEW_LINE_IFS | 8 +
tests/jnlp_tests/simple/Spaces can be everywhere/resources/Spaces can be everywhere1.jnlp | 53 +++
tests/jnlp_tests/simple/Spaces can be everywhere/resources/Spaces can be everywhere2.jnlp | 53 +++
tests/jnlp_tests/simple/Spaces can be everywhere/resources/SpacesCanBeEverywhere1.jnlp | 53 +++
tests/jnlp_tests/simple/Spaces can be everywhere/srcs/SpacesCanBeEverywhere.java | 43 ++
tests/jnlp_tests/simple/Spaces can be everywhere/testcases/SpacesCanBeEverywhereTests.java | 152 ++++++++++
tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java | 14 +-
tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ServerAccess.java | 27 +-
10 files changed, 449 insertions(+), 18 deletions(-)
diffs (truncated from 640 to 500 lines):
diff -r 5860a2cbe221 -r 22db4e09bbc7 ChangeLog
--- a/ChangeLog Thu Nov 10 20:57:36 2011 +0100
+++ b/ChangeLog Fri Nov 11 14:40:26 2011 +0100
@@ -1,3 +1,41 @@
+2011-11-11 Jiri Vanek
+
+ Added reproducer for PR804 and PR8011
+ * tests/jnlp_tests/simple/Spaces can be everywhere/resources/Spaces can be everywhere1.jnlp:
+ new jnlp file with space in name and with jar in resources which name does not contain
+ spaces
+ * tests/jnlp_tests/simple/Spaces can be everywhere/resources/Spaces can be everywhere2.jnlp:
+ new jnlp file with space in name and with jar in resources which name contains spaces
+ * tests/jnlp_tests/simple/Spaces can be everywhere/resources/SpacesCanBeEverywhere1.jnlp:
+ jnlp file without space in name but with jar in resources which name contains spaces
+ * tests/jnlp_tests/simple/Spaces can be everywhere/srcs/SpacesCanBeEverywhere.java:
+ new file containig simple main method of "Spaces can be everywhere.jar" jar
+ * tests/jnlp_tests/simple/Spaces can be everywhere/testcases/SpacesCanBeEverywhereTests.java
+ testcase for this reproducer. It is lunching each of this jnlp once locally from filesystem and
+ once remotely from server. Please note that except it's own jar, this reproducer is also
+ using simpletest1.jar
+
+2011-11-11 Jiri Vanek
+
+ Fixed reproducers engine to handle spaces in files and in urls
+ * Makefile.am: (stamps/netx-dist-tests-prepare-reproducers.stamp)
+ (stamps/netx-dist-tests-sign-some-reproducers.stamp)
+ (stamps/netx-dist-tests-compile-testcases.stamp):
+ added call to NEW_LINE_IFS to use line breake temporarily as parameter
+ separator while loading files from list and correct quoting
+ * NEW_LINE_IFS: new file, small separate script used in makefile as inline script
+ which backup original IFS variable and then set it to pure new line. It is in
+ separate file because it is reused and I do not know another way how to save a new
+ line variable in makefile. Restore to original vlaue is handled in Makefile
+ *tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java:
+ (testResourcesExists) filename is encoded to correct URL before requested from server
+ * tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ServerAccess.java:
+ "-headless" string extracted to variable HEADLES_OPTION
+ (executeProcess) and (ThreadedProcess) enhanced for variable dir to specify working
+ directory. Backward compatibility kept
+ (TinyHttpdImpl) now expects url on requests, so all requests are now decoded by
+ java.net.URLDecoder
+
2011-11-10 Jiri Vanek
Added tests which covers corner cases or rhino support function dateRange
diff -r 5860a2cbe221 -r 22db4e09bbc7 Makefile.am
--- a/Makefile.am Thu Nov 10 20:57:36 2011 +0100
+++ b/Makefile.am Fri Nov 11 14:40:26 2011 +0100
@@ -473,22 +473,24 @@
stamps/netx-dist-tests-prepare-reproducers.stamp: stamps/junit-jnlp-dist-dirs
types=(simple signed); \
for which in "$${types[@]}" ; do \
+ . $(abs_top_builddir)/NEW_LINE_IFS ; \
simpleReproducers=(`cat $(abs_top_builddir)/junit-jnlp-dist-$$which.txt `); \
+ IFS="$$IFS_BACKUP" ; \
for dir in "$${simpleReproducers[@]}" ; do \
echo "processing: $$dir" ; \
- mkdir -p $(JNLP_TESTS_DIR)/$$dir ; \
+ mkdir -p "$(JNLP_TESTS_DIR)/$$dir" ; \
d=`pwd` ; \
- cd $(JNLP_TESTS_SRCDIR)/$$which/$$dir/srcs/ ; \
+ cd "$(JNLP_TESTS_SRCDIR)/$$which/$$dir/srcs/" ; \
srcFiles=`find . -mindepth 1 -type f -name "*.java" | sed "s/.\/*//"` ; \
notSrcFiles=`find . -mindepth 1 -type f \! -name "*.java" | sed "s/.\/*//"` ; \
- $(BOOT_DIR)/bin/javac -d $(JNLP_TESTS_DIR)/$$dir/ $$srcFiles ; \
+ $(BOOT_DIR)/bin/javac -d "$(JNLP_TESTS_DIR)/$$dir/" $$srcFiles ; \
if [ -n "$$notSrcFiles" ] ; then \
- cp -R --parents $$notSrcFiles $(JNLP_TESTS_DIR)/$$dir/ ; \
+ cp -R --parents "$$notSrcFiles" "$(JNLP_TESTS_DIR)/$$dir/" ; \
fi ; \
- cd $(JNLP_TESTS_DIR)/$$dir/ ; \
- $(BOOT_DIR)/bin/jar cf $(JNLP_TESTS_SERVER_DEPLOYDIR)/$$dir.jar * ; \
- cd $$d ; \
- cp -R $(JNLP_TESTS_SRCDIR)/$$which/$$dir/resources/* $(JNLP_TESTS_SERVER_DEPLOYDIR)/ ; \
+ cd "$(JNLP_TESTS_DIR)/$$dir/" ; \
+ $(BOOT_DIR)/bin/jar cf "$(JNLP_TESTS_SERVER_DEPLOYDIR)/$$dir.jar" * ; \
+ cd "$$d" ; \
+ cp -R "$(JNLP_TESTS_SRCDIR)/$$which/$$dir/resources/"* $(JNLP_TESTS_SERVER_DEPLOYDIR)/ ; \
done ; \
done ; \
mkdir -p stamps && \
@@ -499,9 +501,11 @@
keystore=$(abs_top_builddir)/$(KEYSTORE_NAME); \
pass=123456789; \
$(BOOT_DIR)/bin/keytool -genkey -alias $$alias -keystore $$keystore -keypass $$pass -storepass $$pass -dname "cn=$$alias, ou=$$alias, o=$$alias, c=$$alias" ; \
+ . $(abs_top_builddir)/NEW_LINE_IFS ; \
signedReproducers=(`cat $(abs_top_builddir)/junit-jnlp-dist-signed.txt `); \
+ IFS="$$IFS_BACKUP" ; \
for dir in "$${signedReproducers[@]}" ; do \
- $(BOOT_DIR)/bin/jarsigner -keystore $$keystore -storepass $$pass -keypass $$pass $(JNLP_TESTS_SERVER_DEPLOYDIR)/$$dir.jar $$alias ; \
+ $(BOOT_DIR)/bin/jarsigner -keystore $$keystore -storepass $$pass -keypass $$pass "$(JNLP_TESTS_SERVER_DEPLOYDIR)/$$dir.jar" $$alias ; \
done ; \
mkdir -p stamps && \
touch $@
@@ -522,12 +526,14 @@
netx-dist-tests-source-files.txt stamps/netx-dist-tests-compile.stamp
types=(simple signed); \
for which in "$${types[@]}" ; do \
+ . $(abs_top_builddir)/NEW_LINE_IFS ; \
simpleReproducers=(`cat $(abs_top_builddir)/junit-jnlp-dist-$$which.txt `); \
+ IFS="$$IFS_BACKUP" ; \
for dir in "$${simpleReproducers[@]}" ; do \
$(BOOT_DIR)/bin/javac $(IT_JAVACFLAGS) \
-d $(JNLP_TESTS_ENGINE_DIR) \
-classpath $(JUNIT_JAR):$(NETX_DIR)/lib/classes.jar:$(JNLP_TESTS_ENGINE_DIR) \
- $(JNLP_TESTS_SRCDIR)/$$which/$$dir/testcases/* ; \
+ "$(JNLP_TESTS_SRCDIR)/$$which/$$dir/testcases/"* ; \
done ; \
done ; \
mkdir -p stamps && \
diff -r 5860a2cbe221 -r 22db4e09bbc7 NEW_LINE_IFS
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/NEW_LINE_IFS Fri Nov 11 14:40:26 2011 +0100
@@ -0,0 +1,8 @@
+#!/bin/sh
+NEW_LINE_IFS="
+"
+
+IFS_BACKUP="$IFS";
+#echo "1xx""$IFS""xx" ;
+IFS="$NEW_LINE_IFS" ;
+#echo "2xx""$IFS""xx" ;
diff -r 5860a2cbe221 -r 22db4e09bbc7 tests/jnlp_tests/simple/Spaces can be everywhere/resources/Spaces can be everywhere1.jnlp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/jnlp_tests/simple/Spaces can be everywhere/resources/Spaces can be everywhere1.jnlp Fri Nov 11 14:40:26 2011 +0100
@@ -0,0 +1,53 @@
+
+
+
+
+ Spaces can be everywhere1
+ NetX
+
+ Spaces can be everywhere1
+
+
+
+
+
+
+
+
+
diff -r 5860a2cbe221 -r 22db4e09bbc7 tests/jnlp_tests/simple/Spaces can be everywhere/resources/Spaces can be everywhere2.jnlp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/jnlp_tests/simple/Spaces can be everywhere/resources/Spaces can be everywhere2.jnlp Fri Nov 11 14:40:26 2011 +0100
@@ -0,0 +1,53 @@
+
+
+
+
+ Spaces can be everywhere2
+ NetX
+
+ Spaces can be everywhere2
+
+
+
+
+
+
+
+
+
diff -r 5860a2cbe221 -r 22db4e09bbc7 tests/jnlp_tests/simple/Spaces can be everywhere/resources/SpacesCanBeEverywhere1.jnlp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/jnlp_tests/simple/Spaces can be everywhere/resources/SpacesCanBeEverywhere1.jnlp Fri Nov 11 14:40:26 2011 +0100
@@ -0,0 +1,53 @@
+
+
+
+
+ simpletest1
+ NetX
+
+ simpletest1
+
+
+
+
+
+
+
+
+
diff -r 5860a2cbe221 -r 22db4e09bbc7 tests/jnlp_tests/simple/Spaces can be everywhere/srcs/SpacesCanBeEverywhere.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/jnlp_tests/simple/Spaces can be everywhere/srcs/SpacesCanBeEverywhere.java Fri Nov 11 14:40:26 2011 +0100
@@ -0,0 +1,43 @@
+/* SpacesCanBeEverywhere.java
+Copyright (C) 2011 Red Hat, Inc.
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License as published by
+the Free Software Foundation, version 2.
+
+IcedTea 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 for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to
+the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+public class SpacesCanBeEverywhere{
+
+ public static void main(String[] args){
+ System.out.println("Spaces can be everywhere.jsr was launched correctly");
+ }
+}
diff -r 5860a2cbe221 -r 22db4e09bbc7 tests/jnlp_tests/simple/Spaces can be everywhere/testcases/SpacesCanBeEverywhereTests.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/jnlp_tests/simple/Spaces can be everywhere/testcases/SpacesCanBeEverywhereTests.java Fri Nov 11 14:40:26 2011 +0100
@@ -0,0 +1,152 @@
+/* SpacesCanBeEverywhereTests.java
+Copyright (C) 2011 Red Hat, Inc.
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License as published by
+the Free Software Foundation, version 2.
+
+IcedTea 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 for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to
+the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+import net.sourceforge.jnlp.ServerAccess;
+import org.junit.Assert;
+
+import org.junit.Test;
+
+public class SpacesCanBeEverywhereTests {
+
+ private static ServerAccess server = new ServerAccess();
+
+ @Test
+ public void SpacesCanBeEverywhereRemoteTests1() throws Exception {
+ System.out.println("connecting SpacesCanBeEverywhereRemoteTests1 request");
+ System.err.println("connecting SpacesCanBeEverywhereRemoteTests1 request");
+ ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/Spaces%20can%20be%20everywhere1.jnlp");
+ System.out.println(pr.stdout);
+ System.err.println(pr.stderr);
+ String s = "Good simple javaws exapmle";
+ Assert.assertTrue("stdout should contains `" + s + "`, but did not", pr.stdout.contains(s));
+ String cc = "ClassNotFoundException";
+ Assert.assertFalse("stderr should NOT contains `" + cc + "`, but did", pr.stderr.contains(cc));
+ Assert.assertFalse("should not be terminated, but was", pr.wasTerminated);
+ Assert.assertEquals((Integer) 0, pr.returnValue);
+ }
+
+ @Test
+ public void SpacesCanBeEverywhereRemoteTests2() throws Exception {
+ System.out.println("connecting SpacesCanBeEverywhereRemoteTests2 request");
+ System.err.println("connecting SpacesCanBeEverywhereRemoteTests2 request");
+ ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/Spaces%20can%20be%20everywhere2.jnlp");
+ System.out.println(pr.stdout);
+ System.err.println(pr.stderr);
+ String s="Spaces can be everywhere.jsr was launched correctly";
+ Assert.assertTrue("stdout should contains `"+s+"`, but did not",pr.stdout.contains(s));
+ String cc = "ClassNotFoundException";
+ Assert.assertFalse("stderr should NOT contains `" + cc + "`, but did", pr.stderr.contains(cc));
+ Assert.assertFalse("should not be terminated, but was", pr.wasTerminated);
+ Assert.assertEquals((Integer) 0, pr.returnValue);
+ }
+
+ @Test
+ public void SpacesCanBeEverywhereRemoteTests3() throws Exception {
+ System.out.println("connecting SpacesCanBeEverywhereRemoteTests3 request");
+ System.err.println("connecting SpacesCanBeEverywhereRemoteTests3 request");
+ ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/SpacesCanBeEverywhere1.jnlp");
+ System.out.println(pr.stdout);
+ System.err.println(pr.stderr);
+ String s="Spaces can be everywhere.jsr was launched correctly";
+ Assert.assertTrue("stdout should contains `"+s+"`, but did not",pr.stdout.contains(s));
+ String cc = "ClassNotFoundException";
+ Assert.assertFalse("stderr should NOT contains `" + cc + "`, but did", pr.stderr.contains(cc));
+ Assert.assertFalse("should not be terminated, but was", pr.wasTerminated);
+ Assert.assertEquals((Integer) 0, pr.returnValue);
+ }
+
+
+ @Test
+ public void SpacesCanBeEverywhereLocalTests1() throws Exception {
+ System.out.println("connecting SpacesCanBeEverywhereLocalTests1 request");
+ System.err.println("connecting SpacesCanBeEverywhereLocalTests1 request");
+ List commands=new ArrayList(4);
+ commands.add(server.getJavawsLocation());
+ commands.add(ServerAccess.HEADLES_OPTION);
+ commands.add("Spaces can be everywhere1.jnlp");
+ ServerAccess.ProcessResult pr = ServerAccess.executeProcess(commands,server.getDir());
+ System.out.println(pr.stdout);
+ System.err.println(pr.stderr);
+ String s = "Good simple javaws exapmle";
+ Assert.assertTrue("stdout should contains `" + s + "`, but did not", pr.stdout.contains(s));
+ String cc = "ClassNotFoundException";
+ Assert.assertFalse("stderr should NOT contains `" + cc + "`, but did", pr.stderr.contains(cc));
+ Assert.assertFalse("should not be terminated, but was", pr.wasTerminated);
+ Assert.assertEquals((Integer) 0, pr.returnValue);
+ }
+
+ @Test
+ public void SpacesCanBeEverywhereLocalTests2() throws Exception {
+ System.out.println("connecting SpacesCanBeEverywhereLocalTests2 request");
+ System.err.println("connecting SpacesCanBeEverywhereLocalTests2 request");
+ List commands=new ArrayList(4);
+ commands.add(server.getJavawsLocation());
+ commands.add(ServerAccess.HEADLES_OPTION);
+ commands.add("Spaces can be everywhere2.jnlp");
+ ServerAccess.ProcessResult pr = ServerAccess.executeProcess(commands,server.getDir());
+ System.out.println(pr.stdout);
+ System.err.println(pr.stderr);
+ String s="Spaces can be everywhere.jsr was launched correctly";
+ Assert.assertTrue("stdout should contains `"+s+"`, but did not",pr.stdout.contains(s));
+ String cc = "ClassNotFoundException";
+ Assert.assertFalse("stderr should NOT contains `" + cc + "`, but did", pr.stderr.contains(cc));
+ Assert.assertFalse("should not be terminated, but was", pr.wasTerminated);
+ Assert.assertEquals((Integer) 0, pr.returnValue);
+ }
+
+ @Test
+ public void SpacesCanBeEverywhereLocalTests3() throws Exception {
+ System.out.println("connecting SpacesCanBeEverywhereLocalTests3 request");
+ System.err.println("connecting SpacesCanBeEverywhereLocalTests3 request");
+ List commands=new ArrayList(4);
+ commands.add(server.getJavawsLocation());
+ commands.add(ServerAccess.HEADLES_OPTION);
+ commands.add("SpacesCanBeEverywhere1.jnlp");
+ ServerAccess.ProcessResult pr = ServerAccess.executeProcess(commands,server.getDir());
+ System.out.println(pr.stdout);
+ System.err.println(pr.stderr);
+ String s="Spaces can be everywhere.jsr was launched correctly";
+ Assert.assertTrue("stdout should contains `"+s+"`, but did not",pr.stdout.contains(s));
+ String cc = "ClassNotFoundException";
+ Assert.assertFalse("stderr should NOT contains `" + cc + "`, but did", pr.stderr.contains(cc));
+ Assert.assertFalse("should not be terminated, but was", pr.wasTerminated);
+ Assert.assertEquals((Integer) 0, pr.returnValue);
+ }
+}
diff -r 5860a2cbe221 -r 22db4e09bbc7 tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java
--- a/tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java Thu Nov 10 20:57:36 2011 +0100
+++ b/tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java Fri Nov 11 14:40:26 2011 +0100
@@ -38,6 +38,7 @@
From omajid at redhat.com Fri Nov 11 07:07:05 2011
From: omajid at redhat.com (Omair Majid)
Date: Fri, 11 Nov 2011 10:07:05 -0500
Subject: Request to backport 7102369/709446/7100592 and 7092186
In-Reply-To: <20111110225157.GI17686@rivendell.middle-earth.co.uk>
References: <4EBC4498.9000807@redhat.com>
<20111110225157.GI17686@rivendell.middle-earth.co.uk>
Message-ID: <4EBD3A19.8030605@redhat.com>
On 11/10/2011 05:51 PM, Dr Andrew John Hughes wrote:
> On 16:39 Thu 10 Nov , Omair Majid wrote:
>> Hi,
>>
>> The recent security changes breaks some applications as rmiregistry
>> needs to be started with the java.rmi.server.codebase property set. I
>> would like to backport the following two changesets from jdk7u to
>> address this problem:
>>
>> http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/7ed2fd310470
>> http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/2d10aa9d772a
>>
>> Does anyone have any thoughts or concerns?
>>
>
> Can you explain a bit more about these patches and why they are
> needed/appropriate? The bugs don't give much detail and one isn't
> even accessible.
>
Here is a bug report of a user who now has to start rmiregistry with
-J-Djava.rmi.server.codebase= option for his code to continue working
after the security update:
https://bugzilla.redhat.com/show_bug.cgi?id=751203
As you can see, one of the patches removes the need for explicitly
setting this property (and reverts back to the pre-security-update
condition). I dont know about you, but I think security fixes should not
be causing any change in behaviour of valid applications (as far as
possible).
Also, the jtreg test sun/tools/jstatd/jstatdExternalRegistry.sh has been
failing ever since the security fixes were added; applying these two
patches makes that test pass too.
> Have you posted these to IcedTea?
I was expecting IcedTea7 to get these when it merges OpenJDK 7u
changesets. I will be adding this to IcedTea6 when it is approved for
OpenJDK6. Of course, unless people want otherwise and I will be happy to
accommodate that.
Cheers,
Omair
From bugzilla-daemon at icedtea.classpath.org Mon Nov 14 00:32:23 2011
From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org)
Date: Mon, 14 Nov 2011 08:32:23 +0000
Subject: [Bug 817] New: IcedTea7-2.0 fails to build on PaX enabled kernels.
Message-ID:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=817
Bug #: 817
Summary: IcedTea7-2.0 fails to build on PaX enabled kernels.
Classification: Unclassified
Product: IcedTea
Version: 2.0
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: IcedTea7
AssignedTo: ahughes at redhat.com
ReportedBy: sera at gentoo.org
CC: unassigned at icedtea.classpath.org
IcedTea7-2.0 fails to build on a PaX enabled kernel due to the gamma tests. The
corresponding Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=389751
This bug was fixed by Andrew for IcedTea6
http://icedtea.classpath.org/hg/icedtea6/rev/cb463b94b82d. The original bug was
https://bugs.gentoo.org/show_bug.cgi?id=244901.
Please consider applying the same fix to IcedTea7.
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From xerxes at zafena.se Mon Nov 14 01:54:43 2011
From: xerxes at zafena.se (=?UTF-8?B?WGVyeGVzIFLDpW5ieQ==?=)
Date: Mon, 14 Nov 2011 10:54:43 +0100
Subject: Argh
In-Reply-To:
References: <4EA0285F.9010104@redhat.com> <4EAEC63D.9030104@redhat.com>
<4EAFF894.8000902@redhat.com> <4EBC0319.30301@redhat.com>
Message-ID: <4EC0E563.5060105@zafena.se>
2011-11-10 18:44, Stefan Ring skrev:
> On Thu, Nov 10, 2011 at 6:00 PM, Andrew Haley wrote:
>> So, I'm trawling through jtreg failures to see which ones really
>> are VM bugs,and I notice that some java.util.concurrent tests are
>> failing, and even some really simple ones. "Ah well," I thought,
>> "there must be some problem with the memory barrier code." So, I
>> read through the source looking for the barriers.
>>
>> And that was the problem. There are no barriers. None, nada,
>> zilch. On ARM this is a really big problem: memory barriers are
>> essential.
Yes, thank you Andrew for adding them. i will test your work as soon as possibe.
>
> CACAO also doesn't have any for ARM yet, IIRC - don't feel bad ;).
Hum, i thought you added memory barriers for ARM into CACAO HEAD:
http://mips.complang.tuwien.ac.at/hg/cacao/rev/c7bf150bfa46
or are these barriers not used by the rest of the code?
Cheers
Xerxes
From jvanek at redhat.com Mon Nov 14 04:35:28 2011
From: jvanek at redhat.com (Jiri Vanek)
Date: Mon, 14 Nov 2011 13:35:28 +0100
Subject: [RFC][icedtea-web] emma and testcoveragefor testsuites
In-Reply-To: <4EBBF614.9000601@redhat.com>
References: <4EBBF614.9000601@redhat.com>
Message-ID: <4EC10B10.5060903@redhat.com>
On 11/10/2011 05:04 PM, Jiri Vanek wrote:
> This patch add code-coverage of our testsuits functionality into makefile. It is adding optional dependence for emma.jar, which is providing whole functionality of arround investigating coverage and generate reports.
> It add three new top level targets into makefile.am It run-test-code-coverage, run-reproducers-test-code-coverage and run-unit-test-code-coverage. Except this, it is modifying touch $@ of several more targets. The reason is as follows.
> *run-reproducers-test-code-coverage and run-unit-test-code-coverage:
> * each must run all tests again, with (by emma) marrked code (so the results can not be as correct as we can wish)
> * it depends on all preparations which proceed normal testing
> * when they are run after this tests, they do not invoke them again (just run the marrked version)
> * when they are run without previoous make check or make run-netx-dist-tests they invoke them
> * all four make check , make run-netx-dist-tests run-reproducers-test-code-coverage and run-unit-test-code-coverage are considered as top level targets
> *run-test-code-coverage, on the other side just merges results generated by run-reproducers-test-code-coverage and run-unit-test-code-coverage. When it is run after this two targets, then he just reuse the results. If he ie run without, then he invoke them. It ia lso to be considered top level target.
> *Each code-coverege target creates html report.
>
> Reproducer tests are not covered 100% they will need more hacking, which I will post as new patch. (in some longer time, it will not be easy)
>
> Best regards
> J.
>
>
> changelog:
>
> 2011-11-10 Jiri Vanek
> Added code-coverage generation targets
> * configure.ac: added search for optional emma.jar
> * makefile.am: added UNIT_CLASS_NAMES and REPRODUCERS_CLASS_NAMES variables
> to store tests clases for reuse in emmarun
> (run-netx-dist-tests): made dependent on reused stamped version
> (stamps/run-netx-dist-tests): stamped rusable version of run-netx-dist-tests
> ($(NETX_UNIT_TEST_DIR)/coverage.es) and (run-unit-test-code-coverage) targets
> to generate report from unit-tests. Both result binary file and html report in
> tests.build/netx/unit
> ($(JNLP_TESTS_ENGINE_DIR)/coverage.es) and (run-reproducers-test-code-coverage)
> targets to generate report from reproducers-test. Both result binary file
> and html report in tests.build/netx/jnlp_testsengine
> (run-test-code-coverage): merges binary results from unit and reproducers
> code-coverage runs and save html report in abs_top_builddir
> (clean-netx-dist-tests) removes REPRODUCERS_CLASS_NAMES file, and
> run-reproducers-test-code-coverage and stamps/run-netx-dist-tests stamps
> (clean-netx-unit-tests) remove UNIT_CLASS_NAMES fiel and
> run-unit-test-code-coverage and run-netx-unit-tests stamps
>
Updated for head, added patching of javaws and netx as mentioned above
2011-11-14 Jiri Vanek
Added code-coverage generation targets
* configure.ac: added search for optional emma.jar
* makefile.am: added UNIT_CLASS_NAMES and REPRODUCERS_CLASS_NAMES variables
to store tests clases for reuse in emmarun
(run-netx-dist-tests): made dependent on reused stamped version
(stamps/run-netx-dist-tests): stamped rusable version of run-netx-dist-tests
($(NETX_UNIT_TEST_DIR)/coverage.es) and (run-unit-test-code-coverage) targets
to generate report from unit-tests. Both result binary file, xml and html report in
tests.build/netx/unit
($(JNLP_TESTS_ENGINE_DIR)/coverage.es) and (run-reproducers-test-code-coverage)
targets to generate report from reproducers-test. They also backup,
change javaws and netx.jar, run tests and restore them. Both result binary file, xml
and html report in tests.build/netx/jnlp_testsengine
(run-test-code-coverage): merges binary results from unit and reproducers
code-coverage runs and save xml and html report in abs_top_builddir
(clean-netx-dist-tests) removes REPRODUCERS_CLASS_NAMES file, and
run-reproducers-test-code-coverage and stamps/run-netx-dist-tests stamps
(clean-netx-unit-tests) remove UNIT_CLASS_NAMES file and
run-unit-test-code-coverage and run-netx-unit-tests stamps
* tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ServerAccess.java
(ProcessResult) added filtering on stdout to remove EMMA messages
(testsProcessResultFiltering) test for this behaviour
There are several things, I would like to pick up:
touch @$ (madness?) rmains
EMMA is very badly configurable in verbosity upon instructed classes and output file names.In fact - in its source codes there are todo marks:)
-verbosityl.level property is not working at all, so I'm filtering EMMA messages for reproducers - if not done so, then most of reproducers fail, and coverage is then not-so-according. Unfiltered output remains inside ProcessResult also. I have added small test for this behaviour.
-output fielnames, are working, but do not follow merging correctly. So instead of setting output filenames I'm mv-ing files after each run and using this moved versions (because -in is working correctly, and outputs will not override inputs (or better - will not fail)
Sample output can be found at http://10.34.2.200/icedtea-web/
-There is iso-88..1. encoding. In this patch I have already used utf-8, but still it was little bit pain to force Emma to encode properly :-/
Best regards
J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testCoverageUponHead.diff
Type: text/x-patch
Size: 15216 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111114/f9a866d5/testCoverageUponHead.diff
From ddadacha at redhat.com Mon Nov 14 14:39:57 2011
From: ddadacha at redhat.com (Danesh Dadachanji)
Date: Mon, 14 Nov 2011 17:39:57 -0500
Subject: [RFC][icedtea6] RH683768: Tray icons for applications are not
displayed in the GNOME notification bar.
Message-ID: <4EC198BD.3000706@redhat.com>
Hi,
Here's a patch to fix java tray icons not showing on GNOME 3. It fixes
RH683768[1]/part of another bug reported on Oracle's bug database[2].
It's been pushed into openjdk8 and I'm going to ask that it be
backported to 6 and 7. In the mean time, I'd like to get it into
icedtea{6,7} HEAD.
The attached patch is for icedtea6, tested on Fedora 15 with GNOME Shell
3.0.2. Once I sort out build issues, I'll post a (similar) patch for
icedtea7-forest/jdk.
ChangeLog:
+2011-11-14 Danesh Dadachanji
+
+ * Makefile.am:
+ (ICEDTEA_PATCHES): Add patches/openjdk/683768-System-tray-icon.patch
+ * NEWS: Updated.
+ * patches/openjdk/683768-System-tray-icon.patch: New file. Sets XAtoms
+ _NET_WM_PID and WM_CLIENT_MACHINE for X windows.
+
Regards,
Danesh
[1] https://bugzilla.redhat.com/show_bug.cgi?id=683768
[2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7103610
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea6-01.patch
Type: text/x-patch
Size: 4110 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20111114/7aabce80/icedtea6-01.patch
From stefan at complang.tuwien.ac.at Mon Nov 14 14:59:27 2011
From: stefan at complang.tuwien.ac.at (Stefan Ring)
Date: Mon, 14 Nov 2011 23:59:27 +0100
Subject: Argh
In-Reply-To: <4EC0E563.5060105@zafena.se>
References: <4EA0285F.9010104@redhat.com> <4EAEC63D.9030104@redhat.com>
<4EAFF894.8000902@redhat.com> <4EBC0319.30301@redhat.com>
<4EC0E563.5060105@zafena.se>
Message-ID:
>> CACAO also doesn't have any for ARM yet, IIRC - don't feel bad ;).
>
> Hum, i thought you added memory barriers for ARM into CACAO HEAD:
> http://mips.complang.tuwien.ac.at/hg/cacao/rev/c7bf150bfa46
> or are these barriers not used by the rest of the code?
Hmm, you're right about that, obviously. I already forgot about this
;). Unfortunately, that's not everything. JSR133 requires memory
barriers for volatiles, at least, and this is currently only
implemented for x86_64.
Depending on the processor's memory model, more might be needed. I'll
have to read up on ARM's memory model. This is on my ever-growing
to-do list.
Cheers
From aph at redhat.com Tue Nov 15 07:12:41 2011
From: aph at redhat.com (Andrew Haley)
Date: Tue, 15 Nov 2011 15:12:41 +0000
Subject: Argh
In-Reply-To:
References: <4EA0285F.9010104@redhat.com>
<4EAEC63D.9030104@redhat.com> <4EAFF894.8000902@redhat.com>
<4EBC0319.30301@redhat.com> <4EC0E563.5060105@zafena.se>
Message-ID: <4EC28169.60006@redhat.com>
On 11/14/2011 10:59 PM, Stefan Ring wrote:
> Depending on the processor's memory model, more might be needed. I'll
> have to read up on ARM's memory model.
It's all in Doug Lea's JSR133 cookbook.
Andrew.
From aph at redhat.com Tue Nov 15 07:13:27 2011
From: aph at redhat.com (Andrew Haley)
Date: Tue, 15 Nov 2011 15:13:27 +0000
Subject: Argh
In-Reply-To: <4EC0E563.5060105@zafena.se>
References: <4EA0285F.9010104@redhat.com> <4EAEC63D.9030104@redhat.com>
<4EAFF894.8000902@redhat.com> <4EBC0319.30301@redhat.com>
<4EC0E563.5060105@zafena.se>
Message-ID: <4EC28197.1020507@redhat.com>
On 11/14/2011 09:54 AM, Xerxes R?nby wrote:
>>> And that was the problem. There are no barriers. None, nada,
>>> >> zilch. On ARM this is a really big problem: memory barriers are
>>> >> essential.
> Yes, thank you Andrew for adding them. i will test your work as soon as possibe.
It's not all done yet; there are still bugs.
Andrew.
From stefan at complang.tuwien.ac.at Tue Nov 15 07:58:55 2011
From: stefan at complang.tuwien.ac.at (Stefan Ring)
Date: Tue, 15 Nov 2011 16:58:55 +0100
Subject: Argh
In-Reply-To: <4EC28169.60006@redhat.com>
References: <4EA0285F.9010104@redhat.com> <4EAEC63D.9030104@redhat.com>
<4EAFF894.8000902@redhat.com> <4EBC0319.30301@redhat.com>
<4EC0E563.5060105@zafena.se>
<4EC28169.60006@redhat.com>
Message-ID: