From bugzilla-daemon at icedtea.classpath.org Sun Jul 1 10:35:55 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Sun, 01 Jul 2012 17:35:55 +0000 Subject: [Bug 1064] New: hs_err_pid2132.log Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1064 Priority: P3 Bug ID: 1064 Assignee: unassigned at icedtea.classpath.org Summary: hs_err_pid2132.log Severity: normal Classification: Unclassified OS: Linux Reporter: marcustrautmann at yahoo.de Hardware: x86_64 Status: NEW Version: unspecified Component: IcedTea Product: IcedTea # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fe698f7c040, pid=2132, tid=140627679844096 # # JRE version: 6.0_24-b24 # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops) # Derivative: IcedTea6 1.11.1 # Distribution: Dummy Product (x86_64), package suse-3.1-x86_64 # Problematic frame: # C [libsvllx.so+0xab040] SvNumberFormatsSupplierObj::SetNumberFormatter(SvNumberFormatter*)+0x0 # # If you would like to submit a bug report, please include # instructions how to reproduce the bug and visit: # http://icedtea.classpath.org/bugzilla # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120701/fa14a44e/attachment.html From bugzilla-daemon at icedtea.classpath.org Sun Jul 1 15:13:22 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Sun, 01 Jul 2012 22:13:22 +0000 Subject: [Bug 1055] IllegalArgumentException if proxy for required type is not specified In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1055 --- Comment #1 from Hendrik --- Note: The game implemented a workaround, so it cannot be used to test this bug anylonger. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120701/5e842d63/attachment.html From ptisnovs at icedtea.classpath.org Mon Jul 2 02:07:17 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 02 Jul 2012 09:07:17 +0000 Subject: /hg/rhino-tests: Added simple test reporting framework. Message-ID: changeset ff6efa8d997f in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=ff6efa8d997f author: Pavel Tisnovsky date: Mon Jul 02 11:08:50 2012 +0200 Added simple test reporting framework. diffstat: ChangeLog | 15 + Makefile | 17 + src/org/RhinoTests/Reporter/CommandLineParameters.java | 158 ++++++++++ src/org/RhinoTests/Reporter/FileUtils.java | 251 +++++++++++++++++ src/org/RhinoTests/Reporter/GraphPagesGenerator.java | 58 +++ src/org/RhinoTests/Reporter/HistoryPagesGenerator.java | 56 +++ src/org/RhinoTests/Reporter/IndexPageGenerator.java | 108 +++++++ src/org/RhinoTests/Reporter/LogPagesGenerator.java | 170 +++++++++++ src/org/RhinoTests/Reporter/Reporter.java | 132 ++++++++ src/org/RhinoTests/Reporter/StringUtils.java | 82 +++++ src/org/RhinoTests/Reporter/TestResult.java | 101 ++++++ 11 files changed, 1148 insertions(+), 0 deletions(-) diffs (truncated from 1222 to 500 lines): diff -r e5efba84dc1c -r ff6efa8d997f ChangeLog --- a/ChangeLog Thu Jun 28 16:12:12 2012 +0200 +++ b/ChangeLog Mon Jul 02 11:08:50 2012 +0200 @@ -1,3 +1,18 @@ +2012-07-02 Pavel Tisnovsky + + * Makefile: Added new files to compile, added new targets + to make report. + * src/org/RhinoTests/Reporter/CommandLineParameters.java: + * src/org/RhinoTests/Reporter/FileUtils.java: + * src/org/RhinoTests/Reporter/GraphPagesGenerator.java: + * src/org/RhinoTests/Reporter/HistoryPagesGenerator.java: + * src/org/RhinoTests/Reporter/IndexPageGenerator.java: + * src/org/RhinoTests/Reporter/LogPagesGenerator.java: + * src/org/RhinoTests/Reporter/Reporter.java: + * src/org/RhinoTests/Reporter/StringUtils.java: + * src/org/RhinoTests/Reporter/TestResult.java: + Simple reporting framework. TODO: graph and history generation. + 2012-06-28 Pavel Tisnovsky * src/org/RhinoTests/InvocableTest.java: diff -r e5efba84dc1c -r ff6efa8d997f Makefile --- a/Makefile Thu Jun 28 16:12:12 2012 +0200 +++ b/Makefile Mon Jul 02 11:08:50 2012 +0200 @@ -47,6 +47,7 @@ JAVA=java TEST_PACKAGE=org/RhinoTests TEST_CLASSES_PACKAGE=org/RhinoTests/TestClasses +REPORTER_PACKAGE=org/RhinoTests/Reporter DATE=`date +%Y-%0m-%0d` TESTS = \ @@ -64,6 +65,15 @@ ALL_CLASSES = \ $(BUILD_DIR)/$(TEST_CLASSES_PACKAGE)/TestClass.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/CommandLineParameters.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/FileUtils.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/GraphPagesGenerator.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/HistoryPagesGenerator.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/IndexPageGenerator.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/LogPagesGenerator.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/StringUtils.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/TestResult.class \ + $(BUILD_DIR)/$(REPORTER_PACKAGE)/Reporter.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/Constants.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/BaseRhinoTest.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/BindingsTest.class \ @@ -101,6 +111,10 @@ $(JAVA) -cp $(BUILD_DIR) org.RhinoTests.$$tst 2>&1 | tee $(LOGS_DIR)/$(DATE)/$$tst.log ; \ done +report: $(ALL_CLASSES) + cp -u $(TEMPLATE_DIR)/style.css $(REPORT_DIR)/style.css + $(JAVA) -cp $(BUILD_DIR) org.RhinoTests.Reporter.Reporter -template-dir=$(TEMPLATE_DIR) -log-dir=$(LOGS_DIR) -report-dir=$(REPORT_DIR) -date=$(DATE) -tests="$(TESTS)" + clean: rm -rf $(BUILD_DIR)/org rmdir build @@ -116,6 +130,9 @@ $(BUILD_DIR)/$(TEST_PACKAGE)/%.class: $(SOURCE_DIR)/$(TEST_PACKAGE)/%.java $(JAVAC) -d $(BUILD_DIR) -sourcepath $(SOURCE_DIR)/ $< +$(BUILD_DIR)/$(REPORTER_PACKAGE)/%.class: $(SOURCE_DIR)/$(REPORTER_PACKAGE)/%.java + $(JAVAC) -d $(BUILD_DIR) -sourcepath $(SOURCE_DIR)/ $< + $(BUILD_DIR)/$(TEST_CLASSES_PACKAGE)/%.class: $(SOURCE_DIR)/$(TEST_CLASSES_PACKAGE)/%.java $(JAVAC) -d $(BUILD_DIR) -sourcepath $(SOURCE_DIR)/ $< diff -r e5efba84dc1c -r ff6efa8d997f src/org/RhinoTests/Reporter/CommandLineParameters.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/RhinoTests/Reporter/CommandLineParameters.java Mon Jul 02 11:08:50 2012 +0200 @@ -0,0 +1,158 @@ +/* + Rhino test framework + + Copyright (C) 2011, 2012 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.RhinoTests.Reporter; + + + +import java.util.Arrays; +import java.util.Set; +import java.util.TreeSet; + + + +/** + * + * @author Pavel Tisnovsky + */ +public class CommandLineParameters { + private static final String PARAM_NAME_TEST_PREFIX = "-tests="; + + private static final String PARAM_NAME_DATE_PREFIX = "-date="; + + private static final String PARAM_NAME_REPORT_DIR_PREFIX = "-report-dir="; + + private static final String PARAM_NAME_LOG_DIR_PREFIX = "-log-dir="; + + private static final String PARAM_NAME_TEMPLATE_DIR_PREFIX = "-template-dir="; + + private String templateDir = null; + private String logDir = null; + private String reportDir = null; + private String date = null; + private Set tests = new TreeSet(); + + public CommandLineParameters(String[] args) + { + processAllArgs(args); + checkAllArgs(); + } + + private void processAllArgs(String[] args) { + for (String arg : args) + { + if (arg.startsWith(PARAM_NAME_TEMPLATE_DIR_PREFIX)) { + this.templateDir = arg.substring(PARAM_NAME_TEMPLATE_DIR_PREFIX.length()); + } + else if (arg.startsWith(PARAM_NAME_LOG_DIR_PREFIX)) { + this.logDir = arg.substring(PARAM_NAME_LOG_DIR_PREFIX.length()); + } + else if (arg.startsWith(PARAM_NAME_REPORT_DIR_PREFIX)) { + this.reportDir = arg.substring(PARAM_NAME_REPORT_DIR_PREFIX.length()); + } + else if (arg.startsWith(PARAM_NAME_DATE_PREFIX)) { + this.date = arg.substring(PARAM_NAME_DATE_PREFIX.length()); + } + else if (arg.startsWith(PARAM_NAME_TEST_PREFIX)) { + String testString = arg.substring(PARAM_NAME_TEST_PREFIX.length()); + String[] testArray = testString.split(" "); + this.tests.addAll(Arrays.asList(testArray)); + } + } + } + + private void checkAllArgs() { + checkTemplateDir(); + checkLogDir(); + checkReportDir(); + checkDate(); + checkTestSet(); + } + + private void checkTemplateDir() { + if (this.templateDir == null) { + throw new RuntimeException("template dir is not set"); + } + } + + private void checkLogDir() { + if (this.logDir == null) { + throw new RuntimeException("log dir is not set"); + } + } + + private void checkReportDir() { + if (this.reportDir == null) { + throw new RuntimeException("report dir is not set"); + } + } + + private void checkDate() { + if (this.date == null) { + throw new RuntimeException("date is not set"); + } + } + + private void checkTestSet() { + if (this.tests.isEmpty()) { + throw new RuntimeException("test list are not set"); + } + } + + public String getLogDir() { + return this.logDir; + } + + public String getDate() { + return this.date; + } + + public String getTemplateDir() { + return this.templateDir; + } + + public String getReportDir() { + return this.reportDir; + } + + public Set getTests() { + return this.tests; + } +} diff -r e5efba84dc1c -r ff6efa8d997f src/org/RhinoTests/Reporter/FileUtils.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/RhinoTests/Reporter/FileUtils.java Mon Jul 02 11:08:50 2012 +0200 @@ -0,0 +1,251 @@ +/* + Rhino test framework + + Copyright (C) 2011, 2012 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.RhinoTests.Reporter; + + + +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.util.LinkedList; +import java.util.List; + + + +/** + * + * @author Pavel Tisnovsky + */ +public class FileUtils +{ + /** + * Default encoding used for all input/output operations. + */ + private static final String DEFAULT_ENCODING = "UTF-8"; + + /** + * Read content of given text file and return it as list of strings. No + * exception is thrown during reading. + * + * @param fileName + * name of file to be read + * @return list of string containing content of text file + */ + static List readTextFile(String fileName) + { + BufferedReader reader = null; + List out = new LinkedList(); + try + { + // try to open file for reading + reader = new BufferedReader(new InputStreamReader(new FileInputStream(fileName), DEFAULT_ENCODING)); + readAllLinesFromTextFile(reader, out); + } + catch (FileNotFoundException e) + { + // might happen - empty list is returned in this case + e.printStackTrace(); + } + catch (IOException e) + { + // might happen - empty list is returned in this case + // make sure the list is empty + out.clear(); + e.printStackTrace(); + } + finally + { + closeBufferedReader(reader); + } + // return list containing content of text file + return out; + } + + /** + * Write list of string to a file with given name. No exception is thrown + * during reading. + * + * @param fileName + * name of file to be read + * @param lines + * of string containing content of text file + */ + static void writeTextFile(String fileName, List lines) + { + BufferedWriter fout = null; + try + { + fout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileName), DEFAULT_ENCODING)); + // write all lines to a text file + writeAllLinesToTextFile(fout, lines); + } + catch (IOException e) + { + // might happen - empty list is returned in this case + e.printStackTrace(); + } + finally + { + closeBufferedWriter(fout); + } + } + + /** + * Write list of string to a file with given name. No exception is thrown + * during reading. + * + * @param reportDirectory + * @param string + * @param lines of string containing content of text file + */ + static void writeTextFile(String reportDirectory, String string, List lines) + { + writeTextFile(new File(reportDirectory, string), lines); + } + + /** + * Write list of string to a file with given name. No exception is thrown + * during reading. + * + * @param file + * representing file name + * @param lines + * of string containing content of text file + */ + static void writeTextFile(File file, List lines) + { + writeTextFile(file.getPath(), lines); + } + + /** + * Try to close buffered reader. + * + * @param bufferedReader instance of buffered reader or null + */ + private static void closeBufferedReader(BufferedReader bufferedReader) + { + // try to close the buffered reader + try + { + // for the easier use, it is possible to call this method with null parameter + if (bufferedReader != null) + { + bufferedReader.close(); + } + } + catch (IOException e) + { + e.printStackTrace(); + } + } + + /** + * Try to close buffered reader. + * + * @param bufferedWriter + * instance of buffered writer or null + */ + private static void closeBufferedWriter(BufferedWriter bufferedWriter) + { + // try to close the buffered writer + try + { + // for the easier use, it is possible to call this method with null parameter + if (bufferedWriter != null) + { + bufferedWriter.close(); + } + } + catch (IOException e) + { + e.printStackTrace(); + } + } + + /** + * Read all lines from text file and add them to a list of strings. + * + * @param bufferedReader + * instance of buffered reader + * @param lines + * list of string to be filled + * @throws IOException + * thrown if an I/O error occurs + */ + private static void readAllLinesFromTextFile(BufferedReader bufferedReader, List lines) throws IOException + { + String line; + // read lines from a text file + while ((line = bufferedReader.readLine()) != null) + { + lines.add(line); + } + } + + /** + * Write content of the list of strings to a file. + * + * @param bufferedWriter + * instance of buffered writer + * @param lines + * list of string + * @throws IOException + * thrown if an I/O error occurs + */ + private static void writeAllLinesToTextFile(BufferedWriter bufferedWriter, List lines) throws IOException + { + // for all lines + for (String line : lines) + { + bufferedWriter.write(line); + // new line character should be added after each string + bufferedWriter.write('\n'); + } + } + + +} diff -r e5efba84dc1c -r ff6efa8d997f src/org/RhinoTests/Reporter/GraphPagesGenerator.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/RhinoTests/Reporter/GraphPagesGenerator.java Mon Jul 02 11:08:50 2012 +0200 @@ -0,0 +1,58 @@ +/* + Rhino test framework + + Copyright (C) 2011, 2012 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 From ptisnovs at icedtea.classpath.org Mon Jul 2 02:16:46 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 02 Jul 2012 09:16:46 +0000 Subject: /hg/gfx-test: Added new tests to the test suite PrintTestRoundRe... Message-ID: changeset 6f8deba4ae11 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=6f8deba4ae11 author: Pavel Tisnovsky date: Mon Jul 02 11:19:23 2012 +0200 Added new tests to the test suite PrintTestRoundRectangles. diffstat: ChangeLog | 5 + src/org/gfxtest/testsuites/PrintTestRoundRectangles.java | 423 +++++++++++++++ 2 files changed, 428 insertions(+), 0 deletions(-) diffs (445 lines): diff -r c3217fb92eaf -r 6f8deba4ae11 ChangeLog --- a/ChangeLog Thu Jun 28 17:17:25 2012 +0200 +++ b/ChangeLog Mon Jul 02 11:19:23 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-02 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/PrintTestRoundRectangles.java: + Added new tests. + 2012-06-28 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestRectangles.java: diff -r c3217fb92eaf -r 6f8deba4ae11 src/org/gfxtest/testsuites/PrintTestRoundRectangles.java --- a/src/org/gfxtest/testsuites/PrintTestRoundRectangles.java Thu Jun 28 17:17:25 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestRoundRectangles.java Mon Jul 02 11:19:23 2012 +0200 @@ -351,6 +351,429 @@ } /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapButtJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapButtJoinMiter(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapButtJoinRound(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapRoundJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapRoundJoinMiter(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapRoundJoinRound(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapSquareJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapSquareJoinMiter(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapSquareJoinRound(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** * Entry point to the test suite. * * @param args not used in this case From bugzilla-daemon at icedtea.classpath.org Mon Jul 2 03:20:48 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 02 Jul 2012 10:20:48 +0000 Subject: [Bug 804] javaws launcher incorrectly handles file names with spaces In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=804 Julien Gouesse changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gouessej at orange.fr --- Comment #9 from Julien Gouesse --- Hi I use IcedTea6 1.10.8. In which version is it fixed? I still get this error message: gouessej at localhost:~/T?l?chargements$ javaws jfpsm\ \(1\).jnlp netx: Invalid jnlp file (1).jnlp This bug prevents Google Chrome and Chromium users to run Java application with Java Web Start: http://code.google.com/p/chromium/issues/detail?id=135363 Best regards. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120702/7f7ad70a/attachment.html From jvanek at icedtea.classpath.org Mon Jul 2 06:29:16 2012 From: jvanek at icedtea.classpath.org (jvanek at icedtea.classpath.org) Date: Mon, 02 Jul 2012 13:29:16 +0000 Subject: /hg/icedtea-web: 2 new changesets Message-ID: changeset 8c02af104d7e in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=8c02af104d7e author: Jiri Vanek date: Mon Jul 02 15:08:21 2012 +0200 Refactored reproducers directry structure changeset c0778c527131 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=c0778c527131 author: Jiri Vanek date: Mon Jul 02 15:14:00 2012 +0200 Added missing headers for some tests diffstat: ChangeLog | 82 + Makefile.am | 32 +- tests/jnlp_tests/README | 32 - tests/jnlp_tests/custom/AppletFolderInArchiveTag/resources/AppletFolderInArchiveTag.html | 42 - tests/jnlp_tests/custom/AppletFolderInArchiveTag/srcs/AppletFolderInArchiveTag.java | 58 - tests/jnlp_tests/custom/AppletFolderInArchiveTag/srcs/Makefile | 18 - tests/jnlp_tests/custom/AppletFolderInArchiveTag/testcases/AppletFolderInArchiveTagTests.java | 61 - tests/jnlp_tests/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedJAVAXJNLP.jnlp | 57 - tests/jnlp_tests/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedNETSF.jnlp | 57 - tests/jnlp_tests/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedSELF.jnlp | 57 - tests/jnlp_tests/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedSUNSEC.jnlp | 57 - tests/jnlp_tests/signed/AccessClassInPackageSigned/srcs/AccessClassInPackageSigned.java | 44 - tests/jnlp_tests/signed/AppletTestSigned/resources/AppletTestSigned.html | 46 - tests/jnlp_tests/signed/AppletTestSigned/resources/AppletTestSigned.jnlp | 63 - tests/jnlp_tests/signed/AppletTestSigned/srcs/AppletTestSigned.java | 82 - tests/jnlp_tests/signed/AppletTestSigned/testcases/AppletTestSignedTests.java | 94 - tests/jnlp_tests/signed/CacheReproducer/resources/CacheReproducer1.jnlp | 17 - tests/jnlp_tests/signed/CacheReproducer/resources/CacheReproducer1_1.jnlp | 17 - tests/jnlp_tests/signed/CacheReproducer/resources/CacheReproducer2.jnlp | 17 - tests/jnlp_tests/signed/CacheReproducer/resources/CacheReproducer2_1.jnlp | 17 - tests/jnlp_tests/signed/CacheReproducer/srcs/CacheReproducer.java | 47 - tests/jnlp_tests/signed/CacheReproducer/testcases/CacheReproducerTest.java | 478 -- tests/jnlp_tests/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-applet-hack.jnlp | 62 - tests/jnlp_tests/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-applet-new.jnlp | 62 - tests/jnlp_tests/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-hack.html | 48 - tests/jnlp_tests/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-hack.jnlp | 57 - tests/jnlp_tests/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-new.html | 48 - tests/jnlp_tests/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-new.jnlp | 57 - tests/jnlp_tests/signed/InternalClassloaderWithDownloadedResource/srcs/InternalClassloaderWithDownloadedResource.java | 164 - tests/jnlp_tests/signed/InternalClassloaderWithDownloadedResource/testcases/InternalClassloaderWithDownloadedResourceTest.java | 140 - tests/jnlp_tests/signed/MissingJar/resources/MissingJar.jnlp | 21 - tests/jnlp_tests/signed/MissingJar/resources/MissingJar2.jnlp | 19 - tests/jnlp_tests/signed/MissingJar/resources/MissingJar3.jnlp | 19 - tests/jnlp_tests/signed/MissingJar/resources/MissingJar4.jnlp | 21 - tests/jnlp_tests/signed/MissingJar/srcs/MissingJar.java | 42 - tests/jnlp_tests/signed/MissingJar/testcases/MissingJarTest.java | 84 - tests/jnlp_tests/signed/ReadPropertiesBySignedHack/resources/ReadPropertiesBySignedHack.jnlp | 19 - tests/jnlp_tests/signed/ReadPropertiesBySignedHack/srcs/ReadPropertiesBySignedHack.java | 63 - tests/jnlp_tests/signed/ReadPropertiesBySignedHack/testcases/ReadPropertiesBySignedHackTest.java | 65 - tests/jnlp_tests/signed/ReadPropertiesSigned/resources/ReadPropertiesSigned1.jnlp | 15 - tests/jnlp_tests/signed/ReadPropertiesSigned/resources/ReadPropertiesSigned2.jnlp | 18 - tests/jnlp_tests/signed/ReadPropertiesSigned/srcs/ReadPropertiesSigned.java | 45 - tests/jnlp_tests/signed/ReadPropertiesSigned/testcases/ReadPropertiesSignedTest.java | 91 - tests/jnlp_tests/signed/SignedJnlpApplication/resources/SignedJnlpApplication1.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpApplication/resources/SignedJnlpApplication2.jnlp | 65 - tests/jnlp_tests/signed/SignedJnlpApplication/resources/SignedJnlpApplication3.jnlp | 61 - tests/jnlp_tests/signed/SignedJnlpApplication/srcs/JNLP-INF/APPLICATION.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpApplication/srcs/SignedJnlpApplication.java | 43 - tests/jnlp_tests/signed/SignedJnlpApplication/testcases/SignedJnlpApplicationTest.java | 77 - tests/jnlp_tests/signed/SignedJnlpCaseTestOne/resources/SignedJnlpCaseTestOne1.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpCaseTestOne/resources/SignedJnlpCaseTestOne2.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpCaseTestOne/srcs/JNLP-INF/aPpLiCaTioN.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpCaseTestOne/srcs/SignedJnlpCase.java | 43 - tests/jnlp_tests/signed/SignedJnlpCaseTestOne/testcases/SignedJnlpCaseOneTest.java | 65 - tests/jnlp_tests/signed/SignedJnlpCaseTestTwo/resources/SignedJnlpCaseTestTwo1.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpCaseTestTwo/resources/SignedJnlpCaseTestTwo2.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpCaseTestTwo/srcs/JNLP-INF/aPpLiCaTiOn_tEmPlAte.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpCaseTestTwo/srcs/SignedJnlpCase.java | 43 - tests/jnlp_tests/signed/SignedJnlpCaseTestTwo/testcases/SignedJnlpCaseTwoTest.java | 65 - tests/jnlp_tests/signed/SignedJnlpTemplate/resources/SignedJnlpTemplate1.jnlp | 66 - tests/jnlp_tests/signed/SignedJnlpTemplate/resources/SignedJnlpTemplate2.jnlp | 64 - tests/jnlp_tests/signed/SignedJnlpTemplate/resources/SignedJnlpTemplate3.jnlp | 71 - tests/jnlp_tests/signed/SignedJnlpTemplate/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp | 62 - tests/jnlp_tests/signed/SignedJnlpTemplate/srcs/SignedJnlpTemplate.java | 43 - tests/jnlp_tests/signed/SignedJnlpTemplate/testcases/SignedJnlpTemplateTest.java | 77 - tests/jnlp_tests/signed/SimpletestSigned1/resources/SimpletestSigned1.jnlp | 53 - tests/jnlp_tests/signed/SimpletestSigned1/srcs/SimpletestSigned1.java | 43 - tests/jnlp_tests/signed/Spaces can be everywhere signed/resources/NotOnly spaces can kill ?????????? too signed.jnlp | 61 - tests/jnlp_tests/signed/Spaces can be everywhere signed/resources/Spaces can be everywhere1 signed.jnlp | 53 - tests/jnlp_tests/signed/Spaces can be everywhere signed/resources/Spaces can be everywhere2 signed.jnlp | 53 - tests/jnlp_tests/signed/Spaces can be everywhere signed/resources/SpacesCanBeEverywhere1signed.jnlp | 53 - tests/jnlp_tests/signed/Spaces can be everywhere signed/resources/spaces applet Tests signed.html | 42 - tests/jnlp_tests/signed/Spaces can be everywhere signed/srcs/SpacesCanBeEverywhereSigned.java | 76 - tests/jnlp_tests/signed/Spaces can be everywhere signed/testcases/SpacesCanBeEverywhereTestsSigned.java | 245 - tests/jnlp_tests/simple/AccessClassInPackage/resources/AccessClassInPackageJAVAXJNLP.jnlp | 54 - tests/jnlp_tests/simple/AccessClassInPackage/resources/AccessClassInPackageNETSF.jnlp | 54 - tests/jnlp_tests/simple/AccessClassInPackage/resources/AccessClassInPackageSELF.jnlp | 54 - tests/jnlp_tests/simple/AccessClassInPackage/resources/AccessClassInPackageSUNSEC.jnlp | 54 - tests/jnlp_tests/simple/AccessClassInPackage/srcs/AccessClassInPackage.java | 44 - tests/jnlp_tests/simple/AccessClassInPackage/testcases/AccessClassInPackageTest.java | 168 - tests/jnlp_tests/simple/AddShutdownHook/resources/AddShutdownHook.jnlp | 13 - tests/jnlp_tests/simple/AddShutdownHook/srcs/AddShutdownHook.java | 48 - tests/jnlp_tests/simple/AddShutdownHook/testcases/AddShutdownHookTest.java | 58 - tests/jnlp_tests/simple/AllStackTraces/resources/AllStackTraces.jnlp | 13 - tests/jnlp_tests/simple/AllStackTraces/srcs/AllStackTraces.java | 42 - tests/jnlp_tests/simple/AllStackTraces/testcases/AllStackTracesTest.java | 61 - tests/jnlp_tests/simple/AppletBaseURLTest/resources/AppletBaseURLTest.html | 48 - tests/jnlp_tests/simple/AppletBaseURLTest/resources/AppletBaseURLTest.jnlp | 58 - tests/jnlp_tests/simple/AppletBaseURLTest/resources/AppletJNLPHrefBaseURLTest.html | 46 - tests/jnlp_tests/simple/AppletBaseURLTest/srcs/AppletBaseURL.java | 64 - tests/jnlp_tests/simple/AppletBaseURLTest/testcases/AppletBaseURLTest.java | 89 - tests/jnlp_tests/simple/AppletReadsInvalidJar/resources/AppletReadsInvalidJar.html | 42 - tests/jnlp_tests/simple/AppletReadsInvalidJar/resources/AppletReadsInvalidJar.jnlp | 62 - tests/jnlp_tests/simple/AppletReadsInvalidJar/srcs/Valid.java | 58 - tests/jnlp_tests/simple/AppletReadsInvalidJar/testcases/AppletReadsInvalidJarTests.java | 69 - tests/jnlp_tests/simple/AppletTakesLastParam/resources/appletTakesLastParam.html | 44 - tests/jnlp_tests/simple/AppletTakesLastParam/resources/appletTakesLastParam.jnlp | 63 - tests/jnlp_tests/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java | 63 - tests/jnlp_tests/simple/AppletTakesLastParam/testcases/AppletTakesLastParamTests.java | 68 - tests/jnlp_tests/simple/AppletTest/resources/AppletTest.jnlp | 63 - tests/jnlp_tests/simple/AppletTest/resources/appletAutoTests.html | 44 - tests/jnlp_tests/simple/AppletTest/resources/appletAutoTests2.html | 44 - tests/jnlp_tests/simple/AppletTest/resources/appletViewTest.html | 52 - tests/jnlp_tests/simple/AppletTest/srcs/AppletTest.java | 82 - tests/jnlp_tests/simple/AppletTest/testcases/AppletTestTests.java | 141 - tests/jnlp_tests/simple/CheckServices/resources/CheckPluginServices.html | 46 - tests/jnlp_tests/simple/CheckServices/resources/CheckServices.jnlp | 57 - tests/jnlp_tests/simple/CheckServices/srcs/CheckServices.java | 109 - tests/jnlp_tests/simple/CheckServices/testcases/CheckServicesTests.java | 88 - tests/jnlp_tests/simple/CreateClassLoader/resources/CreateClassLoader.jnlp | 13 - tests/jnlp_tests/simple/CreateClassLoader/srcs/CreateClassLoader.java | 46 - tests/jnlp_tests/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java | 58 - tests/jnlp_tests/simple/InformationTitleVendorParser/resources/InformationParser.jnlp | 47 - tests/jnlp_tests/simple/InformationTitleVendorParser/resources/TitleParser.jnlp | 52 - tests/jnlp_tests/simple/InformationTitleVendorParser/resources/TitleVendorParser.jnlp | 51 - tests/jnlp_tests/simple/InformationTitleVendorParser/resources/VendorParser.jnlp | 52 - tests/jnlp_tests/simple/InformationTitleVendorParser/testcases/InformationTitleVendorParserTest.java | 77 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1main2mainAppDesc.jnlp | 53 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1main2mainNoAppDesc.jnlp | 54 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1main2nothingNoAppDesc.jnlp | 54 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1mainHaveAppDesc.jnlp | 54 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1mainNoAppDesc.jnlp | 53 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1noAppDesc.jnlp | 52 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1noAppDescAtAll.jnlp | 49 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1nothing2nothingAppDesc.jnlp | 54 - tests/jnlp_tests/simple/ManifestedJar1/resources/ManifestedJar-1nothing2nothingNoAppDesc.jnlp | 54 - tests/jnlp_tests/simple/ManifestedJar1/srcs/META-INF/MANIFEST.MF | 3 - tests/jnlp_tests/simple/ManifestedJar1/srcs/ManifestedJar1.java | 45 - tests/jnlp_tests/simple/ManifestedJar1/testcases/ManifestedJar1Test.java | 217 - tests/jnlp_tests/simple/ManifestedJar2/srcs/META-INF/MANIFEST.MF | 3 - tests/jnlp_tests/simple/ManifestedJar2/srcs/ManifestedJar2.java | 45 - tests/jnlp_tests/simple/ReadEnvironment/resources/ReadEnvironment.jnlp | 13 - tests/jnlp_tests/simple/ReadEnvironment/srcs/ReadEnvironment.java | 44 - tests/jnlp_tests/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java | 58 - tests/jnlp_tests/simple/ReadProperties/resources/ReadProperties1.jnlp | 17 - tests/jnlp_tests/simple/ReadProperties/resources/ReadProperties2.jnlp | 15 - tests/jnlp_tests/simple/ReadProperties/srcs/ReadProperties.java | 45 - tests/jnlp_tests/simple/ReadProperties/testcases/ReadPropertiesTest.java | 71 - tests/jnlp_tests/simple/RedirectStreams/resources/RedirectStreams.jnlp | 13 - tests/jnlp_tests/simple/RedirectStreams/srcs/RedirectStreams.java | 44 - tests/jnlp_tests/simple/RedirectStreams/testcases/RedirectStreamsTest.java | 57 - tests/jnlp_tests/simple/ReplaceSecurityManager/resources/ReplaceSecurityManager.jnlp | 13 - tests/jnlp_tests/simple/ReplaceSecurityManager/srcs/ReplaceSecurityManager.java | 43 - tests/jnlp_tests/simple/ReplaceSecurityManager/testcases/ReplaceSecurityManagerTest.java | 57 - tests/jnlp_tests/simple/SetContextClassLoader/resources/SetContextClassLoader.jnlp | 13 - tests/jnlp_tests/simple/SetContextClassLoader/srcs/SetContextClassLoader.java | 44 - tests/jnlp_tests/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java | 57 - tests/jnlp_tests/simple/Spaces can be everywhere/resources/NotOnly spaces can kill ?????????? too.jnlp | 61 - 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/resources/spaces applet Tests.html | 42 - tests/jnlp_tests/simple/Spaces can be everywhere/srcs/SpacesCanBeEverywhere.java | 76 - tests/jnlp_tests/simple/Spaces can be everywhere/testcases/SpacesCanBeEverywhereTests.java | 244 - tests/jnlp_tests/simple/UnsignedJnlpApplication/resources/UnsignedJnlpApplication1.jnlp | 54 - tests/jnlp_tests/simple/UnsignedJnlpApplication/resources/UnsignedJnlpApplication2.jnlp | 56 - tests/jnlp_tests/simple/UnsignedJnlpApplication/resources/UnsignedJnlpApplication3.jnlp | 57 - tests/jnlp_tests/simple/UnsignedJnlpApplication/srcs/JNLP-INF/APPLICATION.jnlp | 62 - tests/jnlp_tests/simple/UnsignedJnlpApplication/srcs/UnsignedJnlpApplication.java | 43 - tests/jnlp_tests/simple/UnsignedJnlpApplication/testcases/UnsignedJnlpApplicationTest.java | 68 - tests/jnlp_tests/simple/UnsignedJnlpTemplate/resources/UnsignedJnlpTemplate1.jnlp | 54 - tests/jnlp_tests/simple/UnsignedJnlpTemplate/resources/UnsignedJnlpTemplate2.jnlp | 56 - tests/jnlp_tests/simple/UnsignedJnlpTemplate/resources/UnsignedJnlpTemplate3.jnlp | 57 - tests/jnlp_tests/simple/UnsignedJnlpTemplate/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp | 62 - tests/jnlp_tests/simple/UnsignedJnlpTemplate/srcs/UnsignedJnlpTemplate.java | 43 - tests/jnlp_tests/simple/UnsignedJnlpTemplate/testcases/UnsignedJnlpTemplateTest.java | 68 - tests/jnlp_tests/simple/deadlocktest/resources/deadlocktest.jnlp | 53 - tests/jnlp_tests/simple/deadlocktest/resources/deadlocktest_1.jnlp | 53 - tests/jnlp_tests/simple/deadlocktest/srcs/DeadlockTest.java | 58 - tests/jnlp_tests/simple/deadlocktest/testcases/DeadLockTestTest.java | 267 - tests/jnlp_tests/simple/simpletest1/resources/simpletest1.jnlp | 53 - tests/jnlp_tests/simple/simpletest1/resources/simpletestCustomSplash.jnlp | 55 - tests/jnlp_tests/simple/simpletest1/resources/simpletestMegaSlow.jnlp | 53 - tests/jnlp_tests/simple/simpletest1/resources/simpletestSlow.jnlp | 53 - tests/jnlp_tests/simple/simpletest1/resources/simpletestSlowBrokenCustomSplash.jnlp | 54 - tests/jnlp_tests/simple/simpletest1/resources/simpletestSlowSlowCustomSplash.jnlp | 54 - tests/jnlp_tests/simple/simpletest1/srcs/SimpleTest1.java | 43 - tests/jnlp_tests/simple/simpletest1/testcases/SimpleTest1Test.java | 61 - tests/jnlp_tests/simple/simpletest2/resources/simpletest2.jnlp | 53 - tests/jnlp_tests/simple/simpletest2/srcs/SimpleTest2.java | 44 - tests/jnlp_tests/simple/simpletest2/testcases/SimpleTest2Test.java | 62 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ContentReaderListener.java | 8 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ResourcesTest.java | 389 -- tests/netx/jnlp_testsengine/net/sourceforge/jnlp/ServerAccess.java | 1764 ---------- tests/netx/jnlp_testsengine/net/sourceforge/jnlp/annotations/Bug.java | 32 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/annotations/KnownToFail.java | 24 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/annotations/NeedsDisplay.java | 18 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/annotations/TestInBrowsers.java | 18 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/Browser.java | 19 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/BrowserFactory.java | 189 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/BrowserTest.java | 23 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/BrowserTestRunner.java | 148 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/Browsers.java | 46 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/browsers/Chrome.java | 15 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/browsers/Chromium.java | 15 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/browsers/Epiphany.java | 18 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/browsers/Firefox.java | 29 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/browsers/LinuxBrowser.java | 60 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/browsers/Midory.java | 18 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/browsers/MozillaFamilyLinuxBrowser.java | 29 - tests/netx/jnlp_testsengine/net/sourceforge/jnlp/browsertesting/browsers/Opera.java | 37 - tests/reproducers/README | 32 + tests/reproducers/custom/AppletFolderInArchiveTag/resources/AppletFolderInArchiveTag.html | 42 + tests/reproducers/custom/AppletFolderInArchiveTag/srcs/AppletFolderInArchiveTag.java | 58 + tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile | 18 + tests/reproducers/custom/AppletFolderInArchiveTag/testcases/AppletFolderInArchiveTagTests.java | 61 + tests/reproducers/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedJAVAXJNLP.jnlp | 57 + tests/reproducers/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedNETSF.jnlp | 57 + tests/reproducers/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedSELF.jnlp | 57 + tests/reproducers/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedSUNSEC.jnlp | 57 + tests/reproducers/signed/AccessClassInPackageSigned/srcs/AccessClassInPackageSigned.java | 44 + tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned.html | 46 + tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned.jnlp | 63 + tests/reproducers/signed/AppletTestSigned/srcs/AppletTestSigned.java | 82 + tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java | 94 + tests/reproducers/signed/CacheReproducer/resources/CacheReproducer1.jnlp | 17 + tests/reproducers/signed/CacheReproducer/resources/CacheReproducer1_1.jnlp | 17 + tests/reproducers/signed/CacheReproducer/resources/CacheReproducer2.jnlp | 17 + tests/reproducers/signed/CacheReproducer/resources/CacheReproducer2_1.jnlp | 17 + tests/reproducers/signed/CacheReproducer/srcs/CacheReproducer.java | 47 + tests/reproducers/signed/CacheReproducer/testcases/CacheReproducerTest.java | 478 ++ tests/reproducers/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-applet-hack.jnlp | 62 + tests/reproducers/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-applet-new.jnlp | 62 + tests/reproducers/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-hack.html | 48 + tests/reproducers/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-hack.jnlp | 57 + tests/reproducers/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-new.html | 48 + tests/reproducers/signed/InternalClassloaderWithDownloadedResource/resources/InternalClassloaderWithDownloadedResource-new.jnlp | 57 + tests/reproducers/signed/InternalClassloaderWithDownloadedResource/srcs/InternalClassloaderWithDownloadedResource.java | 164 + tests/reproducers/signed/InternalClassloaderWithDownloadedResource/testcases/InternalClassloaderWithDownloadedResourceTest.java | 140 + tests/reproducers/signed/MissingJar/resources/MissingJar.jnlp | 21 + tests/reproducers/signed/MissingJar/resources/MissingJar2.jnlp | 19 + tests/reproducers/signed/MissingJar/resources/MissingJar3.jnlp | 19 + tests/reproducers/signed/MissingJar/resources/MissingJar4.jnlp | 21 + tests/reproducers/signed/MissingJar/srcs/MissingJar.java | 42 + tests/reproducers/signed/MissingJar/testcases/MissingJarTest.java | 84 + tests/reproducers/signed/ReadPropertiesBySignedHack/resources/ReadPropertiesBySignedHack.jnlp | 19 + tests/reproducers/signed/ReadPropertiesBySignedHack/srcs/ReadPropertiesBySignedHack.java | 63 + tests/reproducers/signed/ReadPropertiesBySignedHack/testcases/ReadPropertiesBySignedHackTest.java | 65 + tests/reproducers/signed/ReadPropertiesSigned/resources/ReadPropertiesSigned1.jnlp | 15 + tests/reproducers/signed/ReadPropertiesSigned/resources/ReadPropertiesSigned2.jnlp | 18 + tests/reproducers/signed/ReadPropertiesSigned/srcs/ReadPropertiesSigned.java | 45 + tests/reproducers/signed/ReadPropertiesSigned/testcases/ReadPropertiesSignedTest.java | 91 + tests/reproducers/signed/SignedJnlpApplication/resources/SignedJnlpApplication1.jnlp | 62 + tests/reproducers/signed/SignedJnlpApplication/resources/SignedJnlpApplication2.jnlp | 65 + tests/reproducers/signed/SignedJnlpApplication/resources/SignedJnlpApplication3.jnlp | 61 + tests/reproducers/signed/SignedJnlpApplication/srcs/JNLP-INF/APPLICATION.jnlp | 62 + tests/reproducers/signed/SignedJnlpApplication/srcs/SignedJnlpApplication.java | 43 + tests/reproducers/signed/SignedJnlpApplication/testcases/SignedJnlpApplicationTest.java | 77 + tests/reproducers/signed/SignedJnlpCaseTestOne/resources/SignedJnlpCaseTestOne1.jnlp | 62 + tests/reproducers/signed/SignedJnlpCaseTestOne/resources/SignedJnlpCaseTestOne2.jnlp | 62 + tests/reproducers/signed/SignedJnlpCaseTestOne/srcs/JNLP-INF/aPpLiCaTioN.jnlp | 62 + tests/reproducers/signed/SignedJnlpCaseTestOne/srcs/SignedJnlpCase.java | 43 + tests/reproducers/signed/SignedJnlpCaseTestOne/testcases/SignedJnlpCaseOneTest.java | 65 + tests/reproducers/signed/SignedJnlpCaseTestTwo/resources/SignedJnlpCaseTestTwo1.jnlp | 62 + tests/reproducers/signed/SignedJnlpCaseTestTwo/resources/SignedJnlpCaseTestTwo2.jnlp | 62 + tests/reproducers/signed/SignedJnlpCaseTestTwo/srcs/JNLP-INF/aPpLiCaTiOn_tEmPlAte.jnlp | 62 + tests/reproducers/signed/SignedJnlpCaseTestTwo/srcs/SignedJnlpCase.java | 43 + tests/reproducers/signed/SignedJnlpCaseTestTwo/testcases/SignedJnlpCaseTwoTest.java | 65 + tests/reproducers/signed/SignedJnlpTemplate/resources/SignedJnlpTemplate1.jnlp | 66 + tests/reproducers/signed/SignedJnlpTemplate/resources/SignedJnlpTemplate2.jnlp | 64 + tests/reproducers/signed/SignedJnlpTemplate/resources/SignedJnlpTemplate3.jnlp | 71 + tests/reproducers/signed/SignedJnlpTemplate/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp | 62 + tests/reproducers/signed/SignedJnlpTemplate/srcs/SignedJnlpTemplate.java | 43 + tests/reproducers/signed/SignedJnlpTemplate/testcases/SignedJnlpTemplateTest.java | 77 + tests/reproducers/signed/SimpletestSigned1/resources/SimpletestSigned1.jnlp | 53 + tests/reproducers/signed/SimpletestSigned1/srcs/SimpletestSigned1.java | 43 + tests/reproducers/signed/Spaces can be everywhere signed/resources/NotOnly spaces can kill ?????????? too signed.jnlp | 61 + tests/reproducers/signed/Spaces can be everywhere signed/resources/Spaces can be everywhere1 signed.jnlp | 53 + tests/reproducers/signed/Spaces can be everywhere signed/resources/Spaces can be everywhere2 signed.jnlp | 53 + tests/reproducers/signed/Spaces can be everywhere signed/resources/SpacesCanBeEverywhere1signed.jnlp | 53 + tests/reproducers/signed/Spaces can be everywhere signed/resources/spaces applet Tests signed.html | 42 + tests/reproducers/signed/Spaces can be everywhere signed/srcs/SpacesCanBeEverywhereSigned.java | 76 + tests/reproducers/signed/Spaces can be everywhere signed/testcases/SpacesCanBeEverywhereTestsSigned.java | 245 + tests/reproducers/simple/AccessClassInPackage/resources/AccessClassInPackageJAVAXJNLP.jnlp | 54 + tests/reproducers/simple/AccessClassInPackage/resources/AccessClassInPackageNETSF.jnlp | 54 + tests/reproducers/simple/AccessClassInPackage/resources/AccessClassInPackageSELF.jnlp | 54 + tests/reproducers/simple/AccessClassInPackage/resources/AccessClassInPackageSUNSEC.jnlp | 54 + tests/reproducers/simple/AccessClassInPackage/srcs/AccessClassInPackage.java | 44 + tests/reproducers/simple/AccessClassInPackage/testcases/AccessClassInPackageTest.java | 168 + tests/reproducers/simple/AddShutdownHook/resources/AddShutdownHook.jnlp | 13 + tests/reproducers/simple/AddShutdownHook/srcs/AddShutdownHook.java | 48 + tests/reproducers/simple/AddShutdownHook/testcases/AddShutdownHookTest.java | 58 + tests/reproducers/simple/AllStackTraces/resources/AllStackTraces.jnlp | 13 + tests/reproducers/simple/AllStackTraces/srcs/AllStackTraces.java | 42 + tests/reproducers/simple/AllStackTraces/testcases/AllStackTracesTest.java | 61 + tests/reproducers/simple/AppletBaseURLTest/resources/AppletBaseURLTest.html | 48 + tests/reproducers/simple/AppletBaseURLTest/resources/AppletBaseURLTest.jnlp | 58 + tests/reproducers/simple/AppletBaseURLTest/resources/AppletJNLPHrefBaseURLTest.html | 46 + tests/reproducers/simple/AppletBaseURLTest/srcs/AppletBaseURL.java | 64 + tests/reproducers/simple/AppletBaseURLTest/testcases/AppletBaseURLTest.java | 89 + tests/reproducers/simple/AppletReadsInvalidJar/resources/AppletReadsInvalidJar.html | 42 + tests/reproducers/simple/AppletReadsInvalidJar/resources/AppletReadsInvalidJar.jnlp | 62 + tests/reproducers/simple/AppletReadsInvalidJar/srcs/Valid.java | 58 + tests/reproducers/simple/AppletReadsInvalidJar/testcases/AppletReadsInvalidJarTests.java | 69 + tests/reproducers/simple/AppletTakesLastParam/resources/appletTakesLastParam.html | 44 + tests/reproducers/simple/AppletTakesLastParam/resources/appletTakesLastParam.jnlp | 63 + tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java | 63 + tests/reproducers/simple/AppletTakesLastParam/testcases/AppletTakesLastParamTests.java | 68 + tests/reproducers/simple/AppletTest/resources/AppletTest.jnlp | 63 + tests/reproducers/simple/AppletTest/resources/appletAutoTests.html | 44 + tests/reproducers/simple/AppletTest/resources/appletAutoTests2.html | 44 + tests/reproducers/simple/AppletTest/resources/appletViewTest.html | 52 + tests/reproducers/simple/AppletTest/srcs/AppletTest.java | 82 + tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java | 141 + tests/reproducers/simple/CheckServices/resources/CheckPluginServices.html | 46 + tests/reproducers/simple/CheckServices/resources/CheckServices.jnlp | 57 + tests/reproducers/simple/CheckServices/srcs/CheckServices.java | 109 + tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java | 88 + tests/reproducers/simple/CreateClassLoader/resources/CreateClassLoader.jnlp | 51 + tests/reproducers/simple/CreateClassLoader/srcs/CreateClassLoader.java | 46 + tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java | 58 + tests/reproducers/simple/InformationTitleVendorParser/resources/InformationParser.jnlp | 47 + tests/reproducers/simple/InformationTitleVendorParser/resources/TitleParser.jnlp | 52 + tests/reproducers/simple/InformationTitleVendorParser/resources/TitleVendorParser.jnlp | 51 + tests/reproducers/simple/InformationTitleVendorParser/resources/VendorParser.jnlp | 52 + tests/reproducers/simple/InformationTitleVendorParser/testcases/InformationTitleVendorParserTest.java | 77 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1main2mainAppDesc.jnlp | 53 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1main2mainNoAppDesc.jnlp | 54 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1main2nothingNoAppDesc.jnlp | 54 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1mainHaveAppDesc.jnlp | 54 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1mainNoAppDesc.jnlp | 53 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1noAppDesc.jnlp | 52 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1noAppDescAtAll.jnlp | 49 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1nothing2nothingAppDesc.jnlp | 54 + tests/reproducers/simple/ManifestedJar1/resources/ManifestedJar-1nothing2nothingNoAppDesc.jnlp | 54 + tests/reproducers/simple/ManifestedJar1/srcs/META-INF/MANIFEST.MF | 3 + tests/reproducers/simple/ManifestedJar1/srcs/ManifestedJar1.java | 45 + tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java | 217 + tests/reproducers/simple/ManifestedJar2/srcs/META-INF/MANIFEST.MF | 3 + tests/reproducers/simple/ManifestedJar2/srcs/ManifestedJar2.java | 45 + tests/reproducers/simple/ReadEnvironment/resources/ReadEnvironment.jnlp | 51 + tests/reproducers/simple/ReadEnvironment/srcs/ReadEnvironment.java | 44 + tests/reproducers/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java | 58 + tests/reproducers/simple/ReadProperties/resources/ReadProperties1.jnlp | 55 + tests/reproducers/simple/ReadProperties/resources/ReadProperties2.jnlp | 53 + tests/reproducers/simple/ReadProperties/srcs/ReadProperties.java | 45 + tests/reproducers/simple/ReadProperties/testcases/ReadPropertiesTest.java | 71 + tests/reproducers/simple/RedirectStreams/resources/RedirectStreams.jnlp | 51 + tests/reproducers/simple/RedirectStreams/srcs/RedirectStreams.java | 44 + tests/reproducers/simple/RedirectStreams/testcases/RedirectStreamsTest.java | 57 + tests/reproducers/simple/ReplaceSecurityManager/resources/ReplaceSecurityManager.jnlp | 51 + tests/reproducers/simple/ReplaceSecurityManager/srcs/ReplaceSecurityManager.java | 43 + tests/reproducers/simple/ReplaceSecurityManager/testcases/ReplaceSecurityManagerTest.java | 57 + tests/reproducers/simple/SetContextClassLoader/resources/SetContextClassLoader.jnlp | 51 + tests/reproducers/simple/SetContextClassLoader/srcs/SetContextClassLoader.java | 44 + tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java | 57 + tests/reproducers/simple/Spaces can be everywhere/resources/NotOnly spaces can kill ?????????? too.jnlp | 61 + tests/reproducers/simple/Spaces can be everywhere/resources/Spaces can be everywhere1.jnlp | 53 + tests/reproducers/simple/Spaces can be everywhere/resources/Spaces can be everywhere2.jnlp | 53 + tests/reproducers/simple/Spaces can be everywhere/resources/SpacesCanBeEverywhere1.jnlp | 53 + tests/reproducers/simple/Spaces can be everywhere/resources/spaces applet Tests.html | 42 + tests/reproducers/simple/Spaces can be everywhere/srcs/SpacesCanBeEverywhere.java | 76 + tests/reproducers/simple/Spaces can be everywhere/testcases/SpacesCanBeEverywhereTests.java | 244 + tests/reproducers/simple/UnsignedJnlpApplication/resources/UnsignedJnlpApplication1.jnlp | 54 + tests/reproducers/simple/UnsignedJnlpApplication/resources/UnsignedJnlpApplication2.jnlp | 56 + tests/reproducers/simple/UnsignedJnlpApplication/resources/UnsignedJnlpApplication3.jnlp | 57 + tests/reproducers/simple/UnsignedJnlpApplication/srcs/JNLP-INF/APPLICATION.jnlp | 62 + tests/reproducers/simple/UnsignedJnlpApplication/srcs/UnsignedJnlpApplication.java | 43 + tests/reproducers/simple/UnsignedJnlpApplication/testcases/UnsignedJnlpApplicationTest.java | 68 + tests/reproducers/simple/UnsignedJnlpTemplate/resources/UnsignedJnlpTemplate1.jnlp | 54 + tests/reproducers/simple/UnsignedJnlpTemplate/resources/UnsignedJnlpTemplate2.jnlp | 56 + tests/reproducers/simple/UnsignedJnlpTemplate/resources/UnsignedJnlpTemplate3.jnlp | 57 + tests/reproducers/simple/UnsignedJnlpTemplate/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp | 62 + tests/reproducers/simple/UnsignedJnlpTemplate/srcs/UnsignedJnlpTemplate.java | 43 + tests/reproducers/simple/UnsignedJnlpTemplate/testcases/UnsignedJnlpTemplateTest.java | 68 + tests/reproducers/simple/deadlocktest/resources/deadlocktest.jnlp | 53 + tests/reproducers/simple/deadlocktest/resources/deadlocktest_1.jnlp | 53 + tests/reproducers/simple/deadlocktest/srcs/DeadlockTest.java | 58 + tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java | 267 + tests/reproducers/simple/simpletest1/resources/simpletest1.jnlp | 53 + tests/reproducers/simple/simpletest1/resources/simpletestCustomSplash.jnlp | 55 + tests/reproducers/simple/simpletest1/resources/simpletestMegaSlow.jnlp | 53 + tests/reproducers/simple/simpletest1/resources/simpletestSlow.jnlp | 53 + tests/reproducers/simple/simpletest1/resources/simpletestSlowBrokenCustomSplash.jnlp | 54 + tests/reproducers/simple/simpletest1/resources/simpletestSlowSlowCustomSplash.jnlp | 54 + tests/reproducers/simple/simpletest1/srcs/SimpleTest1.java | 43 + tests/reproducers/simple/simpletest1/testcases/SimpleTest1Test.java | 61 + tests/reproducers/simple/simpletest2/resources/simpletest2.jnlp | 53 + tests/reproducers/simple/simpletest2/srcs/SimpleTest2.java | 44 + tests/reproducers/simple/simpletest2/testcases/SimpleTest2Test.java | 62 + tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java | 379 ++ tests/test-extensions-tests/net/sourceforge/jnlp/ServerAccessTest.java | 233 + tests/test-extensions/net/sourceforge/jnlp/ContentReader.java | 133 + tests/test-extensions/net/sourceforge/jnlp/ContentReaderListener.java | 45 + tests/test-extensions/net/sourceforge/jnlp/LogItem.java | 71 + tests/test-extensions/net/sourceforge/jnlp/LoggingBottleneck.java | 215 + tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java | 159 + tests/test-extensions/net/sourceforge/jnlp/ProcessResult.java | 69 + tests/test-extensions/net/sourceforge/jnlp/ResourcesTest.java | 389 ++ tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java | 828 ++++ tests/test-extensions/net/sourceforge/jnlp/ServerLauncher.java | 120 + tests/test-extensions/net/sourceforge/jnlp/TestsLogs.java | 85 + tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java | 140 + tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java | 174 + tests/test-extensions/net/sourceforge/jnlp/annotations/Bug.java | 69 + tests/test-extensions/net/sourceforge/jnlp/annotations/KnownToFail.java | 61 + tests/test-extensions/net/sourceforge/jnlp/annotations/NeedsDisplay.java | 55 + tests/test-extensions/net/sourceforge/jnlp/annotations/TestInBrowsers.java | 50 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browser.java | 56 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/BrowserFactory.java | 226 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/BrowserTest.java | 60 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/BrowserTestRunner.java | 185 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browsers.java | 83 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Chrome.java | 52 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Chromium.java | 52 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Epiphany.java | 55 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Firefox.java | 66 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/LinuxBrowser.java | 97 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Midory.java | 55 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/MozillaFamilyLinuxBrowser.java | 66 + tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Opera.java | 73 + 411 files changed, 15546 insertions(+), 13678 deletions(-) diffs (truncated from 30944 to 500 lines): diff -r 8f7e65f53eb6 -r c0778c527131 ChangeLog --- a/ChangeLog Fri Jun 29 10:43:51 2012 +0200 +++ b/ChangeLog Mon Jul 02 15:14:00 2012 +0200 @@ -1,3 +1,85 @@ +2012-07-02 Jiri Vanek + + Added missing headers + * tests/reproducers/simple/CreateClassLoader/resources/CreateClassLoader.jnlp: + * tests/reproducers/simple/ReadEnvironment/resources/ReadEnvironment.jnlp: + * tests/reproducers/simple/ReadProperties/resources/ReadProperties1.jnlp: + * tests/reproducers/simple/ReadProperties/resources/ReadProperties2.jnlp: + * tests/reproducers/simple/RedirectStreams/resources/RedirectStreams.jnlp: + * tests/reproducers/simple/ReplaceSecurityManager/resources/ReplaceSecurityManager.jnlp: + * tests/reproducers/simple/SetContextClassLoader/resources/SetContextClassLoader.jnlp: + * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: + * tests/test-extensions/net/sourceforge/jnlp/annotations/Bug.java: + * tests/test-extensions/net/sourceforge/jnlp/annotations/KnownToFail.java: + * tests/test-extensions/net/sourceforge/jnlp/annotations/NeedsDisplay.java: + * tests/test-extensions/net/sourceforge/jnlp/annotations/TestInBrowsers.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browser.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/BrowserFactory.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/BrowserTest.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/BrowserTestRunner.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browsers.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Chrome.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Chromium.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Epiphany.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Firefox.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/LinuxBrowser.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Midory.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/MozillaFamilyLinuxBrowser.java: + * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Opera.java: + added license headers + +2012-07-02 Jiri Vanek + + Makefile adapted to recent (three changelog items) refactoring + * Makefile.am: (JNLP_TESTS_ENGINE_SRCDIR) now points correctly to + test-extensions. (JNLP_TESTS_ENGINE_TESTS_SRCDIR) new variable for + test-extensions-tests. (JNLP_TESTS_SRCDIR) now points to reproducers. + (JNLP_TESTS_ENGINE_TESTS_DIR) new variable for built + JNLP_TESTS_ENGINE_TESTS_SRCDIR + (netx-dist-tests-tests-source-files.txt) new target for list of + content of JNLP_TESTS_ENGINE_TESTS_SRCDIR. + (stamps/netx-dist-tests-tests-compile.stamp) new target for compiling + netx-dist-tests-tests-source-files.txt + (netx-dist-tests-source-files.tx) now depends on + stamps/netx-dist-tests-tests-compile.stamp + ($(REPRODUCERS_CLASS_NAMES)) target is now working in JNLP_TESTS_ENGINE_TESTS_DIR + instead of JNLP_TESTS_ENGINE_DIR + (stamps/run-netx-dist-tests.stamp): added JNLP_TESTS_ENGINE_TESTS_DIR to classpath + (stamps/run-unit-test-code-coverage.stamp), (stamps/run-reproducers-test-code-coverage.stamp) + added JNLP_TESTS_ENGINE_TESTS_DIR to classpath and + JNLP_TESTS_ENGINE_TESTS_SRCDIR to sources path + +2012-07-02 Jiri Vanek + + All tests from test-extensions extracted to test-extensions-tests. + All inner classes in test-extensions extracted as outer classes + * tests/test-extensions/net/sourceforge/jnlp/ResourcesTest.java: + moved to test-extensions-tests + * tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java: + new file, copied from test-extensions + * tests/test-extensions-tests/net/sourceforge/jnlp/ServerAccessTest.java: + all tests from original ServerAccess.java + * tests/test-extensions/net/sourceforge/jnlp/ContentReader.java: + * tests/test-extensions/net/sourceforge/jnlp/LogItem.java: + * tests/test-extensions/net/sourceforge/jnlp/LoggingBottleneck.java: + * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java: + * tests/test-extensions/net/sourceforge/jnlp/ProcessResult.java: + * tests/test-extensions/net/sourceforge/jnlp/ServerLauncher.java: + * tests/test-extensions/net/sourceforge/jnlp/TestsLogs.java: + * tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java: + * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: + new files, extracted classes from ServerAccess + * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: + extracted tests and inner classes + +2012-07-02 Jiri Vanek + + hg move tests/netx/jnlp_testsengine/ tests/test-extensions + +2012-07-02 Jiri Vanek + + hg move tests/jnlp_tests/ tests/reproducers + 2012-06-29 Jiri Vanek Fixed resource tests and Browsers.none behavior diff -r 8f7e65f53eb6 -r c0778c527131 Makefile.am --- a/Makefile.am Fri Jun 29 10:43:51 2012 +0200 +++ b/Makefile.am Mon Jul 02 15:14:00 2012 +0200 @@ -17,9 +17,12 @@ export JUNIT_RUNNER_DIR=$(TESTS_DIR)/junit-runner export JUNIT_RUNNER_SRCDIR=$(TESTS_SRCDIR)/junit-runner -export JNLP_TESTS_ENGINE_SRCDIR=$(TESTS_SRCDIR)/netx/jnlp_testsengine -export JNLP_TESTS_SRCDIR=$(TESTS_SRCDIR)/jnlp_tests -export JNLP_TESTS_ENGINE_DIR=$(TESTS_DIR)/netx/jnlp_testsengine + +export JNLP_TESTS_ENGINE_SRCDIR=$(TESTS_SRCDIR)/test-extensions +export JNLP_TESTS_ENGINE_TESTS_SRCDIR=$(TESTS_SRCDIR)/test-extensions-tests +export JNLP_TESTS_SRCDIR=$(TESTS_SRCDIR)/reproducers +export JNLP_TESTS_ENGINE_DIR=$(TESTS_DIR)/jnlp_testsengine +export JNLP_TESTS_ENGINE_TESTS_DIR=$(TESTS_DIR)/netx/jnlp_testsengine_tests export JNLP_TESTS_SERVER_DEPLOYDIR=$(TESTS_DIR)/jnlp_test_server export JNLP_TESTS_DIR=$(TESTS_DIR)/jnlp_tests export PRIVATE_KEYSTORE_NAME=teststore.ks @@ -649,8 +652,20 @@ mkdir -p stamps && \ touch $@ +netx-dist-tests-tests-source-files.txt: + find $(JNLP_TESTS_ENGINE_TESTS_SRCDIR) -name '*.java' | sort > $@ + +stamps/netx-dist-tests-tests-compile.stamp: stamps/junit-jnlp-dist-dirs netx-dist-tests-tests-source-files.txt stamps/netx-dist-tests-compile.stamp + mkdir -p $(JNLP_TESTS_ENGINE_TESTS_DIR); + $(BOOT_DIR)/bin/javac $(IT_JAVACFLAGS) \ + -d $(JNLP_TESTS_ENGINE_TESTS_DIR) \ + -classpath $(JUNIT_JAR):$(NETX_DIR)/lib/classes.jar:$(JNLP_TESTS_ENGINE_DIR) \ + @netx-dist-tests-tests-source-files.txt && \ + mkdir -p stamps && \ + touch $@ + stamps/netx-dist-tests-compile-testcases.stamp: stamps/netx.stamp stamps/junit-jnlp-dist-dirs \ - netx-dist-tests-source-files.txt stamps/netx-dist-tests-compile.stamp + netx-dist-tests-source-files.txt stamps/netx-dist-tests-compile.stamp stamps/netx-dist-tests-tests-compile.stamp types=($(ALL_REPRODUCERS)); \ for which in "$${types[@]}" ; do \ . $(abs_top_srcdir)/NEW_LINE_IFS ; \ @@ -658,7 +673,7 @@ IFS="$$IFS_BACKUP" ; \ for dir in "$${simpleReproducers[@]}" ; do \ $(BOOT_DIR)/bin/javac $(IT_JAVACFLAGS) \ - -d $(JNLP_TESTS_ENGINE_DIR) \ + -d $(JNLP_TESTS_ENGINE_TESTS_DIR) \ -classpath $(JUNIT_JAR):$(NETX_DIR)/lib/classes.jar:$(JNLP_TESTS_ENGINE_DIR) \ "$(JNLP_TESTS_SRCDIR)/$$which/$$dir/testcases/"* ; \ done ; \ @@ -681,7 +696,7 @@ $(REPRODUCERS_CLASS_NAMES): $(REPRODUCERS_CLASS_WHITELIST) whiteListed=`cat $(REPRODUCERS_CLASS_WHITELIST)`; \ - cd $(JNLP_TESTS_ENGINE_DIR) ; \ + cd $(JNLP_TESTS_ENGINE_TESTS_DIR) ; \ class_names= ; \ for test in `find -type f` ; do \ class_name=`echo $$test | sed -e 's|\.class$$||' -e 's|^\./||'` ; \ @@ -710,7 +725,7 @@ $(TESTS_DIR)/$(REPORT_STYLES_DIRNAME) $(REPRODUCERS_CLASS_NAMES) stamps/process-custom-reproducers.stamp cd $(JNLP_TESTS_ENGINE_DIR) ; \ class_names=`cat $(REPRODUCERS_CLASS_NAMES)` ; \ - CLASSPATH=$(NETX_DIR)/lib/classes.jar:$(JUNIT_JAR):$(JUNIT_RUNNER_JAR):. \ + CLASSPATH=$(NETX_DIR)/lib/classes.jar:$(JUNIT_JAR):$(JUNIT_RUNNER_JAR):.:$(JNLP_TESTS_ENGINE_TESTS_DIR) \ $(BOOT_DIR)/bin/java $(REPRODUCERS_DPARAMETERS) \ -Xbootclasspath:$(RUNTIME) CommandLine $$class_names if WITH_XSLTPROC @@ -991,6 +1006,7 @@ -cp $(BOOT_DIR)/jre/lib/resources.jar \ -cp $(RHINO_RUNTIME) \ -cp . \ + -cp $(JNLP_TESTS_ENGINE_TESTS_DIR) \ -ix "-org.junit.*" \ -ix "-junit.*" \ CommandLine $$class_names ; \ @@ -1007,6 +1023,7 @@ -sp $(NETX_UNIT_TEST_SRCDIR) \ -sp $(JUNIT_RUNNER_SRCDIR) \ -sp $(JNLP_TESTS_ENGINE_SRCDIR) \ + -sp $(JNLP_TESTS_ENGINE_TESTS_SRCDIR) \ -r html \ -r xml \ "$${testcases_srcs[@]}" ; \ @@ -1053,6 +1070,7 @@ -sp $(NETX_UNIT_TEST_SRCDIR) \ -sp $(JUNIT_RUNNER_SRCDIR) \ -sp $(JNLP_TESTS_ENGINE_SRCDIR) \ + -sp $(JNLP_TESTS_ENGINE_TESTS_SRCDIR) \ "$${testcases_srcs[@]}" \ -r html \ -r xml ; diff -r 8f7e65f53eb6 -r c0778c527131 tests/jnlp_tests/README --- a/tests/jnlp_tests/README Fri Jun 29 10:43:51 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -Each file in directory simple must follows hierarchy conventions and is compiled/jared - automatically into server's working directory and content of resources likewise. - The name of jnlp is independent, and there can be even more jnlps for each future jar. -Directories are honored in srcs and in resources, but not in testcases. -Directories in signed handle their content in similar way as simple's content is handled, - but in addition final jars are signed with simple testkey. -Files in custom directory have to care about compilation/packaging and deploying of srcs - directory themselves. This can affect also testcase and resources, but testcases and - resources are still automatically prepared like they are in the other test types. -There are three reproducers ??? simpletest1, simpletest2 and deadlocktest, which tests - test???s suite itself and serve as examples of behaviour. - -Directory "signed" is listed in Makefile.am. You can specify as much to-be-signed -directories as you want. And jars in each of those signed directories will be -signed by their's own unique key (number of signed directories == number of certificates). -Do not forget to add each this directory into list n Makefile.am - -If the name of a folder in simple/signed is composed of dots, then its contents - are deployed from under a directory structure such that each part evaluates to - a folder. For example, my.dir.reproducer/ will be deployed as jnlp_test_server/my/dir/reproducer.jar. - -Inside custom directory are expected directories which are handling themselves. - The only strictly necessary file is custom/reproducerName/srcs/Makefile. Upon - all custom/*/srcs are then launched make prepare-reproducer and during cleaning make - clean-reproducer. Those targets are run after all simple and signed reproducers are - prepared, so they can reuse components of the simple and signed reproducers, eg - certificates or dependencies. to keep this custom makefiles as simple as possible. - Some comment in makefile or readme file is recommended for each custom reproducer - to tell dependencies and what it does. Some readme (or comment in classes) is good - advice for any reproducer anyway;) -Because of automake only small set of variables from icedtea-web Makefile is - available for custom makefiles, but feel free to export others if needed. diff -r 8f7e65f53eb6 -r c0778c527131 tests/jnlp_tests/custom/AppletFolderInArchiveTag/resources/AppletFolderInArchiveTag.html --- a/tests/jnlp_tests/custom/AppletFolderInArchiveTag/resources/AppletFolderInArchiveTag.html Fri Jun 29 10:43:51 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ - - -

-

- - diff -r 8f7e65f53eb6 -r c0778c527131 tests/jnlp_tests/custom/AppletFolderInArchiveTag/srcs/AppletFolderInArchiveTag.java --- a/tests/jnlp_tests/custom/AppletFolderInArchiveTag/srcs/AppletFolderInArchiveTag.java Fri Jun 29 10:43:51 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -import java.applet.Applet; - -/* -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 AppletFolderInArchiveTag extends Applet { - - private static class Killer extends Thread { - @Override - public void run() { - try { - int n = 2000; - Thread.sleep(n); - System.exit(0); - } catch (Exception ex) { - } - } - } - - @Override - public void init() { - new Killer().start(); - System.out.println("This was ran from a folder specified in the archive tag."); - } -} diff -r 8f7e65f53eb6 -r c0778c527131 tests/jnlp_tests/custom/AppletFolderInArchiveTag/srcs/Makefile --- a/tests/jnlp_tests/custom/AppletFolderInArchiveTag/srcs/Makefile Fri Jun 29 10:43:51 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -TESTNAME=AppletFolderInArchiveTag -ARCHIVE_TEST_FOLDER=archive_tag_folder_test -JAVAC_CLASSPATH=$(JNLP_TESTS_ENGINE_DIR):$(NETX_DIR)/lib/classes.jar -DEPLOY_SUBDIR=$(JNLP_TESTS_SERVER_DEPLOYDIR)/$(ARCHIVE_TEST_FOLDER) -INDEX_HTML_BODY="

Required to recognize folder structure

" - -prepare-reproducer: - echo PREPARING REPRODUCER $(TESTNAME) - mkdir -p $(DEPLOY_SUBDIR) - echo INDEX_HTML_BODY > $(DEPLOY_SUBDIR)/index.html - $(EXPORTED_JAVAC) -classpath $(JAVAC_CLASSPATH) -d $(DEPLOY_SUBDIR) $(TESTNAME).java - echo PREPARED REPRODUCER $(TESTNAME) - -clean-reproducer: - echo CLEANING REPRODUCER $(TESTNAME) - rm -rf $(DEPLOY_SUBDIR) - echo CLEANED REPRODUCER $(TESTNAME) - diff -r 8f7e65f53eb6 -r c0778c527131 tests/jnlp_tests/custom/AppletFolderInArchiveTag/testcases/AppletFolderInArchiveTagTests.java --- a/tests/jnlp_tests/custom/AppletFolderInArchiveTag/testcases/AppletFolderInArchiveTagTests.java Fri Jun 29 10:43:51 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -/* AppletFolderInArchiveTagTests.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 net.sourceforge.jnlp.ServerAccess.ProcessResult; -import net.sourceforge.jnlp.annotations.Bug; -import net.sourceforge.jnlp.annotations.NeedsDisplay; -import net.sourceforge.jnlp.annotations.TestInBrowsers; -import net.sourceforge.jnlp.browsertesting.BrowserTest; -import net.sourceforge.jnlp.browsertesting.Browsers; - -import org.junit.Assert; -import org.junit.Test; - -public class AppletFolderInArchiveTagTests extends BrowserTest{ - - - @NeedsDisplay - @Test - @TestInBrowsers(testIn={Browsers.all}) - @Bug(id="PR1011") - public void testClassInAppletFolder() throws Exception { - ProcessResult pr = server.executeBrowser("/AppletFolderInArchiveTag.html"); - - String s0 = "This was ran from a folder specified in the archive tag."; - Assert.assertTrue("Expected '"+s0+"', stdout was: " + pr.stdout, pr.stdout.contains(s0)); - } -} \ No newline at end of file diff -r 8f7e65f53eb6 -r c0778c527131 tests/jnlp_tests/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedJAVAXJNLP.jnlp --- a/tests/jnlp_tests/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedJAVAXJNLP.jnlp Fri Jun 29 10:43:51 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ - - - - - Test accessClassInPackage signed - IcedTea - - testing access to some javax.jnlp.* package by signed app - - - - - - javax.jnlp.ServiceManager - - - - - diff -r 8f7e65f53eb6 -r c0778c527131 tests/jnlp_tests/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedNETSF.jnlp --- a/tests/jnlp_tests/signed/AccessClassInPackageSigned/resources/AccessClassInPackageSignedNETSF.jnlp Fri Jun 29 10:43:51 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ - + + + + + + +

Rhino tests report - graph for ${TEST_COUNT} tests

+ + + + + + + + +
+
+
+ + +
+ + +${TABLE_DATA} +
#DatePassedFailedError
+
+
+ + diff -r ff6efa8d997f -r 7e2bc401aae8 templates/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/index.html Tue Jul 03 17:41:22 2012 +0200 @@ -0,0 +1,59 @@ + + + + Rhino tests report + + + + + + +

Rhino tests report

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Daily report
${DATE}Log location: + log_${DATE}.html
PassedFailedError
${PASSED}${FAILED}${ERROR}
 
Full history
 All tests (huge page!)
 Failed tests (more useful)
 Last n results: [10][20][30]
 
Graphs
 All tests
 Last n results: [10][20][30]
+ + diff -r ff6efa8d997f -r 7e2bc401aae8 templates/log.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/log.html Tue Jul 03 17:41:22 2012 +0200 @@ -0,0 +1,28 @@ + + + + Rhino tests log for date ${DATE} + + + + + + +

Rhino tests log for date ${DATE}

+ +
+ + + + ${SUMMARY} +
Summary
+ +
+
+ + + ${RESULTS} +
+ + diff -r ff6efa8d997f -r 7e2bc401aae8 templates/style.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/style.css Tue Jul 03 17:41:22 2012 +0200 @@ -0,0 +1,32 @@ +body {font-family: arial, helvetica, sans-serif; color:#000000; text-align:justify; background-color:#ffffff; margin-left: 0px; margin-top: 0px} +h1 {font-family: arial, helvetica, sans-serif; color:#000000; background:#80a0a0; text-align:center; padding-left: 1em; margin: 0} +h2 {font-family: arial, helvetica, sans-serif; color:#000000; background:#c0c060; padding-left: 1em; padding-right:1cm} +h3 {font-family: arial, helvetica, sans-serif; color:#000000; background:#a0a080; padding-left: 1em; padding-right:1cm} +h4 {font-family: arial, helvetica, sans-serif; color:#000000; background:#c0c0a0; padding-left: 1em; padding-right:1cm; margin-bottom: 5px} +a {font-family: arial, helvetica, sans-serif; color:#0000ff; text-decoration:none} +a:link {color:#0000ff} +a:visited {color:#0000ff} +a:visited {color:#0000ff} +a:hover {color:#ffffff; background:#404040} +p {font-family: arial, helvetica, sans-serif; color:#000000; text-align:justify; padding-left:1em; padding-right:1em} +li {font-family: arial, helvetica, sans-serif; color:#000000; text-align:justify} +pre {} +tr {font-family: arial, helvetica, sans-serif; text-align:left} +td {font-family: arial, helvetica, sans-serif; text-align:left} +td.center {font-family: arial, helvetica, sans-serif; text-align:center} +th.center {font-family: arial, helvetica, sans-serif; text-align:center} + +.forms {background-color: #f0f0dd; vertical-align: top; width: 720px; border-collapse: collapse; border-color:#808080; margin-left:32px} + +.group-id {background-color:#c0c0a0; border-color: black; border-width:2px; text-align:center;font-size:200%} +.table-header {background-color:#a0c0c0; font-size:120%} + +.passed-header {background-color:#80ff80} +.failed-header {background-color:#ff8080} +.error-header {background-color:#8080ff} + +.passed-text {color:#006000} +.failed-text {color:#600000} +.error-text {color:#000080} +.stack-trace {color:#604040} + From jvanek at redhat.com Tue Jul 3 11:59:25 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Tue, 03 Jul 2012 20:59:25 +0200 Subject: [rfc][icedtea-web] Ignore invalid .jar files in applets [resubmit] In-Reply-To: <1340030522.15698.24.camel@voip-10-15-18-79.yyz.redhat.com> References: <1340030522.15698.24.camel@voip-10-15-18-79.yyz.redhat.com> Message-ID: <4FF3410D.2060608@redhat.com> On 06/18/2012 04:42 PM, Adam Domurad wrote: > Hey all, re-submitting my patch, as Jiri requested. > > ChangeLog: > 2012-05-28 Adam Domurad > > Ignore invalid jar files in applets, like the oracle plugin does. > * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: > (isInvalidJar): New, checks for ZipException in new JarFile(...) > (shouldFilterInvalidJars): New, checks if we are in an applet > (initializeResources): if 'shouldFilterInvalidJars()' is true and a jar > is not a valid jar file, the jar is filtered out and normal execution > continues. > Looks very eell. Just few question inline > > > On Mon, 2012-05-28 at 15:26 -0400, Adam Domurad wrote: >> > Hey all. Second try at a patch to ignore invalid .jar files, this time >> > only affecting applets (ie, not pages that use jnlp_href). >> > >> > The proprietary plug-in seems to just skip over any malformed .jar files >> > and carry on loading in, while in applets. This patch emulates that >> > behaviour. Pages with jnlp_href still crash with a ZipException on jar >> > verification (the proprietary plugin also fatally errors). >> > >> > This alleviates some of the symptoms of >> > http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1011 >> > Once this patch has been accepted in some form, I hope to make it so >> > that the plugin will parse folders differently than jar files and look >> > for resources in folders like the proprietary plug-in does. >> > >> > Le ChangeLog: >> > 2012-05-28 Adam Domurad >> > >> > Ignore invalid jar files in applets, like the oracle plugin does. >> > * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: >> > (isValidJar): New, checks for ZipException in new JarFile(...) >> > (shouldIgnoreInvalidJars): New, checks if we are in an applet >> > (initializeResources): if 'shouldIgnoreInvalidJars()' is true and a jar >> > is not a valid jar file, the jar is filtered out and normal execution >> > continues. >> > > > > patch-attempt-3.patch > > > diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > @@ -42,6 +42,7 @@ import java.util.Collections; > import java.util.Enumeration; > import java.util.HashMap; > import java.util.HashSet; > +import java.util.Iterator; > import java.util.LinkedList; > import java.util.List; > import java.util.Map; > @@ -431,6 +432,39 @@ public class JNLPClassLoader extends URL > } > > /** > + * Check if a described jar file is invalid > + * @param jar the jar to check > + * @return true if file exists AND is an invalid jar, false otherwise > + */ > + private boolean isInvalidJar(JARDesc jar){ > + File cacheFile = tracker.getCacheFile(jar.getLocation()); > + if (cacheFile == null) > + return false;//File cannot be retrieved, do not claim it is an invalid jar > + boolean isInvalid = false; > + try { > + JarFile jarFile = new JarFile(cacheFile.getAbsolutePath()); > + jarFile.close(); > + } catch (IOException ioe){ > + //Catch a ZipException or any other read failure > + isInvalid = true; > + } > + return isInvalid; > + } > + > + /** > + * Determine how invalid jars should be handled > + * @return whether to filter invalid jars, or error later on > + */ > + private boolean shouldFilterInvalidJars(){ > + if (file instanceof PluginBridge){ > + PluginBridge pluginBridge = (PluginBridge)file; > + /*Ignore on applet, ie !useJNLPHref*/ > + return !pluginBridge.useJNLPHref(); > + } > + return false;//Error is default behaviour > + } > + > + /** > * Load all of the JARs used in this JNLP file into the > * ResourceTracker for downloading. > */ > @@ -467,10 +501,26 @@ public class JNLPClassLoader extends URL > if (strict) > fillInPartJars(initialJars); // add in each initial part's lazy jars > > + waitForJars(initialJars); //download the jars first. > + > + //A ZipException will propagate later on if the jar is invalid and not checked here > + if (shouldFilterInvalidJars()){ > + //We filter any invalid jars > + Iterator iterator = initialJars.iterator(); > + while (iterator.hasNext()){ > + JARDesc jar = iterator.next(); > + if (isInvalidJar(jar)) { > + //Remove this jar as an available jar > + iterator.remove(); > + tracker.removeResource(jar.getLocation()); > + available.remove(jar); > + } > + } > + } > + > if (JNLPRuntime.isVerifying()) { > > JarCertVerifier jcv; > - waitForJars(initialJars); //download the jars first. this removed line scares me a bit.... > > try { > jcv = verifyJars(initialJars); > @@ -533,6 +583,7 @@ public class JNLPClassLoader extends URL > > for (JARDesc jarDesc : file.getResources().getJARs()) { > try { > + > File cachedFile = tracker.getCacheFile(jarDesc.getLocation()); > > if (cachedFile == null) { > @@ -570,6 +621,10 @@ public class JNLPClassLoader extends URL > jarLocationSecurityMap.put(jarDesc.getLocation(), jarSecurity); > } catch (MalformedURLException mfe) { > System.err.println(mfe.getMessage()); > + } catch (IllegalArgumentException iae){ Do you think it is possible to caught this exception on better place and rethrow our custom one, which will be then catches here? IllegalaRgument one is pretty common one. > + //Caused by ignored resource being removed due to not being valid this should be in debug mode or message should go from Message.properties. > + System.err.println("JAR " + jarDesc.getLocation() + " is not a valid jar file. Continuing."); > + continue; > } > } > activateJars(initialJars); From adomurad at redhat.com Tue Jul 3 12:40:33 2012 From: adomurad at redhat.com (Adam Domurad) Date: Tue, 03 Jul 2012 15:40:33 -0400 Subject: [rfc][icedtea-web] Ignore invalid .jar files in applets [resubmit] In-Reply-To: <4FF3410D.2060608@redhat.com> References: <1340030522.15698.24.camel@voip-10-15-18-79.yyz.redhat.com> <4FF3410D.2060608@redhat.com> Message-ID: <1341344433.16030.3.camel@voip-10-15-18-79.yyz.redhat.com> On Tue, 2012-07-03 at 20:59 +0200, Jiri Vanek wrote: > On 06/18/2012 04:42 PM, Adam Domurad wrote: > > Hey all, re-submitting my patch, as Jiri requested. > > > > ChangeLog: > > 2012-05-28 Adam Domurad > > > > Ignore invalid jar files in applets, like the oracle plugin does. > > * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: > > (isInvalidJar): New, checks for ZipException in new JarFile(...) > > (shouldFilterInvalidJars): New, checks if we are in an applet > > (initializeResources): if 'shouldFilterInvalidJars()' is true and a jar > > is not a valid jar file, the jar is filtered out and normal execution > > continues. > > > > Looks very eell. Just few question inline > > > > > > On Mon, 2012-05-28 at 15:26 -0400, Adam Domurad wrote: > >> > Hey all. Second try at a patch to ignore invalid .jar files, this time > >> > only affecting applets (ie, not pages that use jnlp_href). > >> > > >> > The proprietary plug-in seems to just skip over any malformed .jar files > >> > and carry on loading in, while in applets. This patch emulates that > >> > behaviour. Pages with jnlp_href still crash with a ZipException on jar > >> > verification (the proprietary plugin also fatally errors). > >> > > >> > This alleviates some of the symptoms of > >> > http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1011 > >> > Once this patch has been accepted in some form, I hope to make it so > >> > that the plugin will parse folders differently than jar files and look > >> > for resources in folders like the proprietary plug-in does. > >> > > >> > Le ChangeLog: > >> > 2012-05-28 Adam Domurad > >> > > >> > Ignore invalid jar files in applets, like the oracle plugin does. > >> > * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: > >> > (isValidJar): New, checks for ZipException in new JarFile(...) > >> > (shouldIgnoreInvalidJars): New, checks if we are in an applet > >> > (initializeResources): if 'shouldIgnoreInvalidJars()' is true and a jar > >> > is not a valid jar file, the jar is filtered out and normal execution > >> > continues. > >> > > > > > > > patch-attempt-3.patch > > > > > > diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > > --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > > +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > > @@ -42,6 +42,7 @@ import java.util.Collections; > > import java.util.Enumeration; > > import java.util.HashMap; > > import java.util.HashSet; > > +import java.util.Iterator; > > import java.util.LinkedList; > > import java.util.List; > > import java.util.Map; > > @@ -431,6 +432,39 @@ public class JNLPClassLoader extends URL > > } > > > > /** > > + * Check if a described jar file is invalid > > + * @param jar the jar to check > > + * @return true if file exists AND is an invalid jar, false otherwise > > + */ > > + private boolean isInvalidJar(JARDesc jar){ > > + File cacheFile = tracker.getCacheFile(jar.getLocation()); > > + if (cacheFile == null) > > + return false;//File cannot be retrieved, do not claim it is an invalid jar > > + boolean isInvalid = false; > > + try { > > + JarFile jarFile = new JarFile(cacheFile.getAbsolutePath()); > > + jarFile.close(); > > + } catch (IOException ioe){ > > + //Catch a ZipException or any other read failure > > + isInvalid = true; > > + } > > + return isInvalid; > > + } > > + > > + /** > > + * Determine how invalid jars should be handled > > + * @return whether to filter invalid jars, or error later on > > + */ > > + private boolean shouldFilterInvalidJars(){ > > + if (file instanceof PluginBridge){ > > + PluginBridge pluginBridge = (PluginBridge)file; > > + /*Ignore on applet, ie !useJNLPHref*/ > > + return !pluginBridge.useJNLPHref(); > > + } > > + return false;//Error is default behaviour > > + } > > + > > + /** > > * Load all of the JARs used in this JNLP file into the > > * ResourceTracker for downloading. > > */ > > @@ -467,10 +501,26 @@ public class JNLPClassLoader extends URL > > if (strict) > > fillInPartJars(initialJars); // add in each initial part's lazy jars > > > > + waitForJars(initialJars); //download the jars first. > > + > > + //A ZipException will propagate later on if the jar is invalid and not checked here > > + if (shouldFilterInvalidJars()){ > > + //We filter any invalid jars > > + Iterator iterator = initialJars.iterator(); > > + while (iterator.hasNext()){ > > + JARDesc jar = iterator.next(); > > + if (isInvalidJar(jar)) { > > + //Remove this jar as an available jar > > + iterator.remove(); > > + tracker.removeResource(jar.getLocation()); > > + available.remove(jar); > > + } > > + } > > + } > > + > > if (JNLPRuntime.isVerifying()) { > > > > JarCertVerifier jcv; > > - waitForJars(initialJars); //download the jars first. > > this removed line scares me a bit.... It was moved to the top. Confirmed OK with Omair. > > > > try { > > jcv = verifyJars(initialJars); > > @@ -533,6 +583,7 @@ public class JNLPClassLoader extends URL > > > > for (JARDesc jarDesc : file.getResources().getJARs()) { > > try { > > + > > File cachedFile = tracker.getCacheFile(jarDesc.getLocation()); > > > > if (cachedFile == null) { > > @@ -570,6 +621,10 @@ public class JNLPClassLoader extends URL > > jarLocationSecurityMap.put(jarDesc.getLocation(), jarSecurity); > > } catch (MalformedURLException mfe) { > > System.err.println(mfe.getMessage()); > > + } catch (IllegalArgumentException iae){ > > Do you think it is possible to caught this exception on better place and rethrow our custom one, which will be then catches here? IllegalaRgument one is pretty common one. > > > + //Caused by ignored resource being removed due to not being valid > > this should be in debug mode or message should go from Message.properties. > > > + System.err.println("JAR " + jarDesc.getLocation() + " is not a valid jar file. Continuing."); > > + continue; This seems consistent with the follow message slightly at the top: if(cachedFile == null) { System.err.println("JAR " + jarDesc.getLocation() + " not found. Continuing."); continue; // JAR not found. Keep going. } If the other message makes sense, this makes sense... Both or none imo > > } > > } > > activateJars(initialJars); > I have fixed the locality of the exception. It is now clearly to handle an exception in getting the resource, which was removed. Good catch. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-attempt-4.patch Type: text/x-patch Size: 3775 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120703/ca952296/patch-attempt-4.patch From adomurad at redhat.com Tue Jul 3 12:52:33 2012 From: adomurad at redhat.com (Adam Domurad) Date: Tue, 03 Jul 2012 15:52:33 -0400 Subject: [RFC][icedtea-web]: Fix for PR1040, PR1041, PR1042 w/ reproducers In-Reply-To: <4FEE08A8.7000201@redhat.com> References: <4FDF9513.1070708@redhat.com> <4FE1AE9E.4030907@redhat.com> <4FE239C0.6020401@redhat.com> <1340388180.10565.55.camel@voip-10-15-18-79.yyz.redhat.com> <4FE4E8DE.4050102@redhat.com> <1340726153.27220.23.camel@voip-10-15-18-79.yyz.redhat.com> <4FEA117C.6070509@redhat.com> <1340914057.14922.50.camel@voip-10-15-18-79.yyz.redhat.com> <4FEE08A8.7000201@redhat.com> Message-ID: <1341345153.16030.4.camel@voip-10-15-18-79.yyz.redhat.com> Thanks, looks good :) Reproducers & bugfixes OK for HEAD. Remember to fix my little nitpick with the bugfix patch though :). Cheers, Adam. On Fri, 2012-06-29 at 15:57 -0400, Saad Mohammad wrote: > Hi Adam, > > Thanks for looking over the reproducers. I attached the new patch with > the Changelog. > > On 06/28/2012 04:07 PM, Adam Domurad wrote: > > Hi Saad. I think I would still prefer the at least ExtensionJnlp1-5.jnlp > > be given unique names. > I renamed all the jnlp files. Sorry for all the confusion, hopefully > it's much more legible now. > [snip] > >> +public class ExtensionJnlpTest { > >> + > >> + private static ServerAccess server = new ServerAccess(); > >> + private final List l = > >> Collections.unmodifiableList(Arrays.asList(new String[] > >> { "-Xtrustall" })); > >> + private final String jarOutput = "Running SignedJarResource.."; > >> + private final String signedJnlpException = > >> "net.sourceforge.jnlp.LaunchException: Fatal: Application Error:" > >> + + "The signed JNLP file did not match the launching JNLP > >> file. Missing Resource: Signed Application " > >> + + "did not match launching JNLP File"; > >> + > >> + @Test > >> + public void checkingForRequiredResources() throws Exception { > >> + ServerAccess.ProcessResult pr = > >> server.executeJavawsHeadless(l, "/ExtensionJnlp4.jnlp"); > >> + Assert.assertTrue("Could not locate SignedJarResource", > >> pr.stdout.contains(jarOutput)); > > Theoretically the reproducer could locate SignedJarResource & still > > break this assert. > >> + > >> + String s = "Running SignedJnlpResource.."; > >> + pr = server.executeJavawsHeadless(l, "/ExtensionJnlp5.jnlp"); > >> + Assert.assertTrue("Could not locate SignedJnlpResource", > >> pr.stdout.contains(s)); > > As above > I changed the assert message to a much precise explanation. > [snip] > >> a/tests/jnlp_tests/signed/SignedJnlpResource/resources/SignedJnlpResource1.jnlp b/tests/jnlp_tests/signed/SignedJnlpResource/resources/SignedJnlpResource1.jnlp > >> new file mode 100644 > >> --- /dev/null > >> +++ > >> b/tests/jnlp_tests/signed/SignedJnlpResource/resources/SignedJnlpResource1.jnlp > >> @@ -0,0 +1,62 @@ > >> + + + + + UsesSignedJar + IcedTea + + UsesSignedJar + + + + + + + + + + + + + + + diff -r cbb73b27594b -r f7191afb7ab9 tests/reproducers/signed/ExtensionJnlp/resources/UsesSignedJarExtension.jnlp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ExtensionJnlp/resources/UsesSignedJarExtension.jnlp Tue Jul 03 17:00:49 2012 -0400 @@ -0,0 +1,62 @@ + + + + + UseSignedJarExtension + IcedTea + + UseSignedJarExtension + + + + + + + + + + + + + + + diff -r cbb73b27594b -r f7191afb7ab9 tests/reproducers/signed/ExtensionJnlp/resources/UsesSignedJnlp.jnlp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ExtensionJnlp/resources/UsesSignedJnlp.jnlp Tue Jul 03 17:00:49 2012 -0400 @@ -0,0 +1,62 @@ + + + + + UsesSignedJnlp + IcedTea + + UsesSignedJnlp + + + + + + + + + + + + + + + diff -r cbb73b27594b -r f7191afb7ab9 tests/reproducers/signed/ExtensionJnlp/resources/UsesSignedJnlpExtension.jnlp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ExtensionJnlp/resources/UsesSignedJnlpExtension.jnlp Tue Jul 03 17:00:49 2012 -0400 @@ -0,0 +1,62 @@ + http://icedtea.classpath.org/bugzilla/attachment.cgi?id=726&action=edit log file mentioned above I had a suspicion that the .ods in question was corrupt as there were some key functions like merge and center that just wouldn't work regardless. So I tried to save it as a new ods(ie: filenameA.ods instead of filename.ods) and it crashes libre completely without saving the new document. Here's the error message I received from cli # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f3edea86a30, pid=17614, tid=139908481664800 # # JRE version: 6.0_18-b18 # Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 ) # Derivative: IcedTea6 1.8.13 # Distribution: Debian GNU/Linux 6.0.4 (squeeze), package 6b18-1.8.13-0+squeeze1 # Problematic frame: # C [libsclx.so+0x498a30] # # An error report file with more information is saved as: # /tmp/hs_err_pid17614.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 # [error occurred during error reporting , id 0xb] I've attached the log file as well -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120706/edebefdd/attachment.html From bugzilla-daemon at icedtea.classpath.org Fri Jul 6 14:34:08 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 06 Jul 2012 21:34:08 +0000 Subject: [Bug 1066] Saving .ods in libreoffice to new .ods causes crash In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1066 --- Comment #1 from netflow at gmail.com --- It should be noted that I am able to save the potentially corrupt file as an .xls and then save that file as an .ods without issue -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120706/580713e5/attachment.html From zgtour at 163.com Fri Jul 6 22:34:22 2012 From: zgtour at 163.com (zgtour) Date: Sat, 7 Jul 2012 13:34:22 +0800 (CST) Subject: Could anyone give me a detailed manual how I can perform cross compilation for ARMV5T arch on X86_SuSE? Thanks a lot. In-Reply-To: <4FF4738A.3040707@zafena.se> References: <20d93180.2144b.13852b9c278.Coremail.zgtour@163.com> <4FF4738A.3040707@zafena.se> Message-ID: <662f2a56.394e.1385fee7fff.Coremail.zgtour@163.com> hi all, I've tried to perform the cross compilation for ARMV5 over OE today, following the instructions mentioned in http://icedtea.classpath.org/wiki/CrossCompileOECoreTutorial. The compilation stopped with the following error while executing "bitbake openjdk-6" Parsing recipes: 100% |######################################################################################| Time: 00:01:30 Parsing of 1235 .bb files complete (0 cached, 1235 parsed). 1600 targets, 36 skipped, 0 masked, 0 errors. ERROR: No recipes available for: /root/oe-core/meta-openembedded/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend ERROR: Command execution failed: Exited with 1 What should I do now? I established my build system based on VM on VirtualBox 4.1.18. The host environment is I7 Q720, with Windows7 as the OS. The guest OS is ubuntu-12.04-server-i386. Best regards, At 2012-07-05 00:47:06,"Xerxes R?nby" wrote: >2012-07-04 18:01, zgtour skrev: >> I've gone through the posts on http://icedtea.classpath.org/wiki/Main_Page and https://evolvis.org/plugins/mediawiki/wiki/jalimo/index.php/CrossCompilingOpenJDK. Both of these posts are not detailed enough to a newbie of Cross Compilation. >> >Which step failed for you when you followed the: >http://icedtea.classpath.org/wiki/CrossCompileOECoreTutorial ? >The OpenJDK 6 and 7 source-code is not designed to be easily cross compilable so unfortunately I cant give you any better tutorial. >This OE-Core cross compile build recipes is the most tested way to cross compile both OpenJDK 6/7 and all software that OpenJDK itself depends on to create a complete system to run on armv5 hardware. > >If you are interested in cross compiling OpenJDK directly against a custom armv5 linux root filesystem then you may try use the latest OpenJDK 8 source. >OpenJDK 8 have recently got a new configure based build system that is more cross compile friendly. >Scroll down to section 7.3. Cross-compilation in this guide: http://openjdk.java.net/projects/build-infra/guide.html > >Cheers >Xerxes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120707/42ad899c/attachment.html From zgtour at 163.com Sat Jul 7 00:33:21 2012 From: zgtour at 163.com (zgtour) Date: Sat, 7 Jul 2012 15:33:21 +0800 (CST) Subject: Could anyone give me a detailed manual how I can perform cross compilation for ARMV5T arch on X86_SuSE? Thanks a lot. In-Reply-To: <4FF4738A.3040707@zafena.se> References: <20d93180.2144b.13852b9c278.Coremail.zgtour@163.com> <4FF4738A.3040707@zafena.se> Message-ID: <31ac0c44.493f.138605b6eb3.Coremail.zgtour@163.com> Hi all, The complete output of "bitbake openjdk-6" is: Pseudo is not present but is required, building this first before the main build Loading cache: 100% |########################################################################################| ETA: 00:00:00 Loaded 1601 entries from dependency cache. ERROR: No recipes available for: /home/franklin/oe-core/meta-openembedded/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend ERROR: Command execution failed: Exited with 1 Summary: There were 2 ERROR messages shown, returning a non-zero exit code. Best regards, At 2012-07-05 00:47:06,"Xerxes R?nby" wrote: >2012-07-04 18:01, zgtour skrev: >> I've gone through the posts on http://icedtea.classpath.org/wiki/Main_Page and https://evolvis.org/plugins/mediawiki/wiki/jalimo/index.php/CrossCompilingOpenJDK. Both of these posts are not detailed enough to a newbie of Cross compilation. >> >Which step failed for you when you followed the: >http://icedtea.classpath.org/wiki/CrossCompileOECoreTutorial ? >The OpenJDK 6 and 7 source-code is not designed to be easily cross compilable so unfortunately I cant give you any better tutorial. >This OE-Core cross compile build recipes is the most tested way to cross compile both OpenJDK 6/7 and all software that OpenJDK itself depends on to create a complete system to run on armv5 hardware. > >If you are interested in cross compiling OpenJDK directly against a custom armv5 linux root filesystem then you may try use the latest OpenJDK 8 source. >OpenJDK 8 have recently got a new configure based build system that is more cross compile friendly. >Scroll down to section 7.3. Cross-compilation in this guide: http://openjdk.java.net/projects/build-infra/guide.html > >Cheers >Xerxes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120707/a244323b/attachment.html From zgtour at 163.com Sat Jul 7 01:30:57 2012 From: zgtour at 163.com (zgtour) Date: Sat, 7 Jul 2012 16:30:57 +0800 (CST) Subject: Could anyone give me a detailed manual how I can perform cross complication for ARMV5T arch on X86_SuSE? Thanks a lot. In-Reply-To: <4FF4738A.3040707@zafena.se> References: <20d93180.2144b.13852b9c278.Coremail.zgtour@163.com> <4FF4738A.3040707@zafena.se> Message-ID: <18a75c96.5384.13860902b1e.Coremail.zgtour@163.com> Hi all: It seems solved. 3 modifications: 1. "mv oe-core/meta/recipes-extended/lighttpd/lighttpd_1.4.31.bb oe-core/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb", to make the version is identical with 'oe-core/meta-openembedded/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend'. 2. modify logic of 'check_create_long_filename' in 'oe-core/meta/classes/sanity.bbclass', since the filesystem is ext4, and the maximum length of filename is 256. 3. Un-modify oe-core/build/conf/bblayers.conf, leave the 'LCONF_VERSION = "5"' as initial value. It may not be the key. Now it's compiling. Best regards, At 2012-07-05 00:47:06,"Xerxes R?nby" wrote: >2012-07-04 18:01, zgtour skrev: >> I've gone through the posts on http://icedtea.classpath.org/wiki/Main_Page and https://evolvis.org/plugins/mediawiki/wiki/jalimo/index.php/CrossCompilingOpenJDK. Both of these posts are not detailed enough to a newbie of Cross Complication. >> >Which step failed for you when you followed the: >http://icedtea.classpath.org/wiki/CrossCompileOECoreTutorial ? >The OpenJDK 6 and 7 source-code is not designed to be easily cross compilable so unfortunately I cant give you any better tutorial. >This OE-Core cross compile build recipes is the most tested way to cross compile both OpenJDK 6/7 and all software that OpenJDK itself depends on to create a complete system to run on armv5 hardware. > >If you are interested in cross compiling OpenJDK directly against a custom armv5 linux root filesystem then you may try use the latest OpenJDK 8 source. >OpenJDK 8 have recently got a new configure based build system that is more cross compile friendly. >Scroll down to section 7.3. Cross-compilation in this guide: http://openjdk.java.net/projects/build-infra/guide.html > >Cheers >Xerxes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120707/164335fd/attachment.html From bugzilla-daemon at icedtea.classpath.org Sat Jul 7 10:45:33 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Sat, 07 Jul 2012 17:45:33 +0000 Subject: [Bug 811] javaws is not handling urls with spaces (and other characters needing encoding) correctly In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=811 --- Comment #13 from Julien Gouesse --- I confirm it works fine with Icedtea-web 1.2.4. Thank you very much. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120707/8beb5e37/attachment.html From zgtour at 163.com Sat Jul 7 20:18:57 2012 From: zgtour at 163.com (zgtour) Date: Sun, 8 Jul 2012 11:18:57 +0800 (CST) Subject: Progress report: openjdk cross complication for ARMV5T arch on Ubuntu 12.04 server In-Reply-To: <18a75c96.5384.13860902b1e.Coremail.zgtour@163.com> References: <20d93180.2144b.13852b9c278.Coremail.zgtour@163.com> <4FF4738A.3040707@zafena.se> <18a75c96.5384.13860902b1e.Coremail.zgtour@163.com> Message-ID: <1de63780.ac6e.1386498e17c.Coremail.zgtour@163.com> 1. 'http://mirrors.ibiblio.org/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.6.2-201102101200/ecjsrc-3.6.2.zip' is no more available, change to downloading from other sites, such as: 'http://rpm.scl.rs/eclipse/eclipse/downloads/drops/R-3.6.2-201102101200/ecjsrc-3.6.2.zip' 2. syntax error in 'oe-core/build/tmp-eglibc/sysroots/i686-linux/usr/bin/javac', modify the line 8 from "== true" to "= true" Now the compilation is stopped at "ERROR: Task 1155 (virtual:native:/home/franklin/oe-core/meta-java/recipes-core/xerces-j/xerces-j_2.9.1.bb, do_compile) failed with exit code '1'", the errors: ' ....... | 139. ERROR in src/org/apache/html/dom/HTMLSelectElementImpl.java (at line 33) | public class HTMLSelectElementImpl | ^^^^^^^^^^^^^^^^^^^^^ | The type HTMLSelectElementImpl must implement the inherited abstract method HTMLSelectElement.setLength(int) | ---------- | 140. ERROR in src/org/apache/html/dom/HTMLSelectElementImpl.java (at line 92) | public HTMLCollection getOptions() | ^^^^^^^^^^^^^^ | The return type is incompatible with HTMLSelectElement.getOptions() | ---------- | ---------- | 141. ERROR in src/org/apache/html/dom/HTMLInputElementImpl.java (at line 28) | public class HTMLInputElementImpl | ^^^^^^^^^^^^^^^^^^^^ | The type HTMLInputElementImpl must implement the inherited abstract method HTMLInputElement.setSize(int) | ---------- | 142. ERROR in src/org/apache/html/dom/HTMLInputElementImpl.java (at line 28) | public class HTMLInputElementImpl | ^^^^^^^^^^^^^^^^^^^^ | The type HTMLInputElementImpl must implement the inherited abstract method HTMLInputElement.setType(String) | ---------- | 143. ERROR in src/org/apache/html/dom/HTMLInputElementImpl.java (at line 180) | public String getSize() | ^^^^^^ | The return type is incompatible with HTMLInputElement.getSize() | ---------- | ---------- | 144. ERROR in src/org/apache/html/dom/HTMLBaseFontElementImpl.java (at line 28) | public class HTMLBaseFontElementImpl | ^^^^^^^^^^^^^^^^^^^^^^^ | The type HTMLBaseFontElementImpl must implement the inherited abstract method HTMLBaseFontElement.setSize(int) | ---------- | 145. ERROR in src/org/apache/html/dom/HTMLBaseFontElementImpl.java (at line 59) | public String getSize() | ^^^^^^ | The return type is incompatible with HTMLBaseFontElement.getSize() | ---------- ....... ' At 2012-07-07 16:30:57,zgtour wrote: Hi all: It seems solved. 3 modifications: 1. "mv oe-core/meta/recipes-extended/lighttpd/lighttpd_1.4.31.bb oe-core/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb", to make the version is identical with 'oe-core/meta-openembedded/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend'. 2. modify logic of 'check_create_long_filename' in 'oe-core/meta/classes/sanity.bbclass', since the filesystem is ext4, and the maximum length of filename is 256. 3. Un-modify oe-core/build/conf/bblayers.conf, leave the 'LCONF_VERSION = "5"' as initial value. It may not be the key. Now it's compiling. Best regards, At 2012-07-05 00:47:06,"Xerxes R?nby" wrote: >2012-07-04 18:01, zgtour skrev: >> I've gone through the posts on http://icedtea.classpath.org/wiki/Main_Page and https://evolvis.org/plugins/mediawiki/wiki/jalimo/index.php/CrossCompilingOpenJDK. Both of these posts are not detailed enough to a newbie of Cross Complication. >> >Which step failed for you when you followed the: >http://icedtea.classpath.org/wiki/CrossCompileOECoreTutorial ? >The OpenJDK 6 and 7 source-code is not designed to be easily cross compilable so unfortunately I cant give you any better tutorial. >This OE-Core cross compile build recipes is the most tested way to cross compile both OpenJDK 6/7 and all software that OpenJDK itself depends on to create a complete system to run on armv5 hardware. > >If you are interested in cross compiling OpenJDK directly against a custom armv5 linux root filesystem then you may try use the latest OpenJDK 8 source. >OpenJDK 8 have recently got a new configure based build system that is more cross compile friendly. >Scroll down to section 7.3. Cross-compilation in this guide: http://openjdk.java.net/projects/build-infra/guide.html > >Cheers >Xerxes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120708/45fb890c/attachment.html From zgtour at 163.com Sun Jul 8 04:28:48 2012 From: zgtour at 163.com (zgtour) Date: Sun, 8 Jul 2012 19:28:48 +0800 (CST) Subject: Progress report: openjdk cross complication for ARMV5T arch on Ubuntu 12.04 server Message-ID: Still working on ' | 148 problems (26 errors, 122 warnings)ERROR: Function failed: do_compile (see /home/franklin/oe-core/build/tmp-eglibc/work/i686-linux/xerces-j-native-2.9.1-r0/temp/log.do_compile.24596 for further information) NOTE: package xerces-j-native-2.9.1-r0: task do_compile: Failed ERROR: Task 1155 (virtual:native:/home/franklin/oe-core/meta-java/recipes-core/xerces-j/xerces-j_2.9.1.bb, do_compile) failed with exit code '1'' It seems the failure is caused by the conflict between glibj.zip and jaxp-1.3.jar. Interfaces, such as HTMLSelectElement in the former contains more functions than the latter. I've compiled jaxp-1.3.jar seperated, and found there exists several jaxp-1.3.jar: -rw-r--r-- 1 franklin franklin 6847 Jul 8 16:52 ./tmp-eglibc/work/i686-linux/jaxp1.3-native-1.3.04-r0/image/home/franklin/oe-core/build/tmp-eglibc/sysroots/i686-linux/usr/share/java/jaxp-1.3.jar -rw-rw-r-- 1 franklin franklin 6847 Jul 8 16:52 ./tmp-eglibc/work/i686-linux/jaxp1.3-native-1.3.04-r0/jaxp1.3-1.3.04/jaxp-1.3.jar -rw-r--r-- 1 franklin franklin 6847 Jul 8 16:52 ./tmp-eglibc/work/i686-linux/jaxp1.3-native-1.3.04-r0/sysroot-destdir/home/franklin/oe-core/build/tmp-eglibc/sysroots/i686-linux/usr/share/java/jaxp-1.3.jar -rw-r--r-- 1 franklin franklin 289239 Jul 8 18:12 ./tmp-eglibc/work/armv5te-oe-linux-gnueabi/jaxp1.3-1.3.04-r0/image/usr/share/java/jaxp-1.3.jar -rw-r--r-- 1 franklin franklin 289239 Jul 8 18:12 ./tmp-eglibc/work/armv5te-oe-linux-gnueabi/jaxp1.3-1.3.04-r0/jaxp1.3-1.3.04/jaxp-1.3.jar -rw-r--r-- 2 franklin franklin 289239 Jul 8 18:12 ./tmp-eglibc/work/armv5te-oe-linux-gnueabi/jaxp1.3-1.3.04-r0/package/usr/share/java/jaxp-1.3.jar -rw-r--r-- 2 franklin franklin 289239 Jul 8 18:12 ./tmp-eglibc/work/armv5te-oe-linux-gnueabi/jaxp1.3-1.3.04-r0/packages-split/libjaxp1.3-java/usr/share/java/jaxp-1.3.jar -rw-r--r-- 1 franklin franklin 289239 Jul 8 18:12 ./tmp-eglibc/work/armv5te-oe-linux-gnueabi/jaxp1.3-1.3.04-r0/sysroot-destdir/usr/share/java/jaxp-1.3.jar -rw-r--r-- 1 franklin franklin 6847 Jul 8 16:52 ./tmp-eglibc/sysroots/i686-linux/usr/share/java/jaxp-1.3.jar -rw-r--r-- 1 franklin franklin 289239 Jul 8 18:12 ./tmp-eglibc/sysroots/qemuarm/usr/share/java/jaxp-1.3.jar I will try again after copying the 289239's version over 6847's version. Any comments are welcome. -------- Forwarding messages -------- From: zgtour Date: 2012-07-08 11:18:57 To: distro-pkg-dev at openjdk.java.net Subject: Progress report: openjdk cross complication for ARMV5T arch on Ubuntu 12.04 server 1. 'http://mirrors.ibiblio.org/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.6.2-201102101200/ecjsrc-3.6.2.zip' is no more available, change to downloading from other sites, such as: 'http://rpm.scl.rs/eclipse/eclipse/downloads/drops/R-3.6.2-201102101200/ecjsrc-3.6.2.zip' 2. syntax error in 'oe-core/build/tmp-eglibc/sysroots/i686-linux/usr/bin/javac', modify the line 8 from "== true" to "= true" Now the compilation is stopped at "ERROR: Task 1155 (virtual:native:/home/franklin/oe-core/meta-java/recipes-core/xerces-j/xerces-j_2.9.1.bb, do_compile) failed with exit code '1'", the errors: ' ....... | 139. ERROR in src/org/apache/html/dom/HTMLSelectElementImpl.java (at line 33) | public class HTMLSelectElementImpl | ^^^^^^^^^^^^^^^^^^^^^ | The type HTMLSelectElementImpl must implement the inherited abstract method HTMLSelectElement.setLength(int) | ---------- | 140. ERROR in src/org/apache/html/dom/HTMLSelectElementImpl.java (at line 92) | public HTMLCollection getOptions() | ^^^^^^^^^^^^^^ | The return type is incompatible with HTMLSelectElement.getOptions() | ---------- | ---------- | 141. ERROR in src/org/apache/html/dom/HTMLInputElementImpl.java (at line 28) | public class HTMLInputElementImpl | ^^^^^^^^^^^^^^^^^^^^ | The type HTMLInputElementImpl must implement the inherited abstract method HTMLInputElement.setSize(int) | ---------- | 142. ERROR in src/org/apache/html/dom/HTMLInputElementImpl.java (at line 28) | public class HTMLInputElementImpl | ^^^^^^^^^^^^^^^^^^^^ | The type HTMLInputElementImpl must implement the inherited abstract method HTMLInputElement.setType(String) | ---------- | 143. ERROR in src/org/apache/html/dom/HTMLInputElementImpl.java (at line 180) | public String getSize() | ^^^^^^ | The return type is incompatible with HTMLInputElement.getSize() | ---------- | ---------- | 144. ERROR in src/org/apache/html/dom/HTMLBaseFontElementImpl.java (at line 28) | public class HTMLBaseFontElementImpl | ^^^^^^^^^^^^^^^^^^^^^^^ | The type HTMLBaseFontElementImpl must implement the inherited abstract method HTMLBaseFontElement.setSize(int) | ---------- | 145. ERROR in src/org/apache/html/dom/HTMLBaseFontElementImpl.java (at line 59) | public String getSize() | ^^^^^^ | The return type is incompatible with HTMLBaseFontElement.getSize() | ---------- ....... ' At 2012-07-07 16:30:57,zgtour wrote: Hi all: It seems solved. 3 modifications: 1. "mv oe-core/meta/recipes-extended/lighttpd/lighttpd_1.4.31.bb oe-core/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb", to make the version is identical with 'oe-core/meta-openembedded/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend'. 2. modify logic of 'check_create_long_filename' in 'oe-core/meta/classes/sanity.bbclass', since the filesystem is ext4, and the maximum length of filename is 256. 3. Un-modify oe-core/build/conf/bblayers.conf, leave the 'LCONF_VERSION = "5"' as initial value. It may not be the key. Now it's compiling. Best regards, At 2012-07-05 00:47:06,"Xerxes R?nby" wrote: >2012-07-04 18:01, zgtour skrev: >> I've gone through the posts on http://icedtea.classpath.org/wiki/Main_Page and https://evolvis.org/plugins/mediawiki/wiki/jalimo/index.php/CrossCompilingOpenJDK. Both of these posts are not detailed enough to a newbie of Cross Complication. >> >Which step failed for you when you followed the: >http://icedtea.classpath.org/wiki/CrossCompileOECoreTutorial ? >The OpenJDK 6 and 7 source-code is not designed to be easily cross compilable so unfortunately I cant give you any better tutorial. >This OE-Core cross compile build recipes is the most tested way to cross compile both OpenJDK 6/7 and all software that OpenJDK itself depends on to create a complete system to run on armv5 hardware. > >If you are interested in cross compiling OpenJDK directly against a custom armv5 linux root filesystem then you may try use the latest OpenJDK 8 source. >OpenJDK 8 have recently got a new configure based build system that is more cross compile friendly. >Scroll down to section 7.3. Cross-compilation in this guide: http://openjdk.java.net/projects/build-infra/guide.html > >Cheers >Xerxes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120708/d98d93f4/attachment.html From ahughes at redhat.com Sun Jul 8 16:52:01 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Sun, 08 Jul 2012 19:52:01 -0400 (EDT) Subject: Native zlib libraries In-Reply-To: Message-ID: ----- Original Message ----- > The new build system offers a convenient option to the configure > script: > --with-zlib=system > this will pickup the zlib libraries from the system. > > The default behavior is: --with-zlib=bundled > Have you done any others? And is this available from the old bug system? This is the first I've heard of this being done and we need it in 6 & 7 too. > //Fredrik > > 2012/7/5 Andrew Hughes : > > > > > > ----- Original Message ----- > >> Is there a way to get the native zlib libraries to get picked up > >> instead of the hardcoded version within the JVM? > >> > >> -- > >> Azeem Jiva > >> @javawithjiva > > > > We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get it > > upstream. > > > > However, I don't see how this is related to HotSpot, as the zlib > > usage > > is in the jdk tree. > > -- > > Andrew :) > > > > Free Java Software Engineer > > Red Hat, Inc. (http://www.redhat.com) > > > > PGP Key: 248BDC07 (https://keys.indymedia.org/) > > Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 > > > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From edvard.wendelin at oracle.com Mon Jul 9 00:05:57 2012 From: edvard.wendelin at oracle.com (Edvard Wendelin) Date: Mon, 9 Jul 2012 09:05:57 +0200 Subject: [7u communication] 7u6 Stabilization forest proposal In-Reply-To: <4FEC20C2.6040005@oracle.com> References: <4950764d-cf59-46cb-b28c-bd09c4ad08e7@zmail17.collab.prod.int.phx2.redhat.com> <4FEC20C2.6040005@oracle.com> Message-ID: <3C7C6EBD-23F2-4030-BAFB-7AEDE7A245FD@oracle.com> Hi, John has now been kind enough to create the forests for 7u6. There was a build problem for B17, so they had to re-spin the build, hence B18. 7u6 [1] and 7u6-dev [2] are created of out jdk7u#jdk7u6-b18. Please use jdk7u6-dev [2] for fixes targeted to 7u6. Cheers, Edvard [1] http://hg.openjdk.java.net/jdk7u/jdk7u6 [2] http://hg.openjdk.java.net/jdk7u/jdk7u6-dev On Jun 28, 2012, at 11:15 AM, Edvard Wendelin wrote: > Hi, > > Due to July 4th being a public holiday in the US and how that affects integration schedules, I'd like to propose that we move the creation of the forest to July 5th and the jdk7u6-b17 tag instead. > > Sorry for the late notice, but it was feedback we got after the first email was sent out. > > Thanks, > Edvard > > On 06/28/2012 01:28 AM, Andrew Hughes wrote: >> >> ----- Original Message ----- >>> Hi, >>> >>> I'd like to propose the following stabilisation forests for 7u6 to be >>> created on July 2nd: >>> >>> hg.openjdk.java.net/jdk7u/jdk7u6 based on >>> hg.openjdk.java.net/jdk7u/jdk7u/ tag jdk7u6-b16 >>> hg.openjdk.java.net/jdk7u/jdk7u6-dev based on >>> hg.openjdk.java.net/jdk7u/jdk7u/ tag jdk7u6-b16 >>> >>> Build 16 is scheduled for June28th. jdk7u6-dev is the development >>> forest open for fixes that has passed the critical approval process. >>> [1] See my email on the end game update for more details. After July >>> 2nd, the next build in jdk7u will be for jdk 7u8. >>> >>> If you have any objections or concerns, let me know before the end of >>> this week. >>> >>> Cheers, >>> Edvard >>> >>> [1] >>> http://mail.openjdk.java.net/pipermail/jdk7u-dev/2012-February/001900.html >> Good to see a clear tag for the branch point this time! :-) From ptisnovs at icedtea.classpath.org Mon Jul 9 02:59:06 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 09 Jul 2012 09:59:06 +0000 Subject: /hg/gfx-test: Added ten new tests to the test suite PrintTestRec... Message-ID: changeset 2484fe8c1d23 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=2484fe8c1d23 author: Pavel Tisnovsky date: Mon Jul 09 12:01:38 2012 +0200 Added ten new tests to the test suite PrintTestRectangles.java. diffstat: ChangeLog | 5 + src/org/gfxtest/testsuites/PrintTestRectangles.java | 519 ++++++++++++++++++++ 2 files changed, 524 insertions(+), 0 deletions(-) diffs (truncated from 541 to 500 lines): diff -r 87e3933a3fdf -r 2484fe8c1d23 ChangeLog --- a/ChangeLog Wed Jul 04 14:38:07 2012 +0200 +++ b/ChangeLog Mon Jul 09 12:01:38 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-09 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/PrintTestRectangles.java: + Added ten new tests. + 2012-07-04 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestBitBlt.java: diff -r 87e3933a3fdf -r 2484fe8c1d23 src/org/gfxtest/testsuites/PrintTestRectangles.java --- a/src/org/gfxtest/testsuites/PrintTestRectangles.java Wed Jul 04 14:38:07 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestRectangles.java Mon Jul 09 12:01:38 2012 +0200 @@ -767,6 +767,525 @@ } /** + * Test basic behavior of method Graphics.drawRect(). Rectangles are + * rendered with various width and default end caps. Color of all rendered + * rectangles are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapButtJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapButtJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapButtJoinRoundInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapRoundJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapRoundJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapRoundJoinRoundInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapSquareJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapSquareJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRect(). + * Rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRectanglesChangeWidthCapSquareJoinRoundInv(TestImage image, Graphics2D graphics2d) + { + drawRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() From ptisnovs at icedtea.classpath.org Mon Jul 9 03:12:15 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 09 Jul 2012 10:12:15 +0000 Subject: /hg/rhino-tests: First version of test result graph generator. Message-ID: changeset d78d71a7859b in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=d78d71a7859b author: Pavel Tisnovsky date: Mon Jul 09 12:14:59 2012 +0200 First version of test result graph generator. diffstat: ChangeLog | 5 + src/org/RhinoTests/Reporter/GraphPagesGenerator.java | 111 +++++++++++++++++- 2 files changed, 109 insertions(+), 7 deletions(-) diffs (139 lines): diff -r 7e2bc401aae8 -r d78d71a7859b ChangeLog --- a/ChangeLog Tue Jul 03 17:41:22 2012 +0200 +++ b/ChangeLog Mon Jul 09 12:14:59 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-09 Pavel Tisnovsky + + * src/org/RhinoTests/Reporter/GraphPagesGenerator.java: + First version of test result graph generator. + 2012-07-03 Pavel Tisnovsky * src/org/RhinoTests/Reporter/HistoryPagesGenerator.java: diff -r 7e2bc401aae8 -r d78d71a7859b src/org/RhinoTests/Reporter/GraphPagesGenerator.java --- a/src/org/RhinoTests/Reporter/GraphPagesGenerator.java Tue Jul 03 17:41:22 2012 +0200 +++ b/src/org/RhinoTests/Reporter/GraphPagesGenerator.java Mon Jul 09 12:14:59 2012 +0200 @@ -40,19 +40,116 @@ package org.RhinoTests.Reporter; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; + /** * * @author Pavel Tisnovsky */ -public class GraphPagesGenerator -{ +public class GraphPagesGenerator { - public static void generate() - { - // TODO - return; + public static void generate(Map>> testResults, CommandLineParameters params) { + createHtmlPageFromTemplate(testResults, params, 1); + createHtmlPageFromTemplate(testResults, params, 2); + createHtmlPageFromTemplate(testResults, params, 5); + createHtmlPageFromTemplate(testResults, params, 10); + createHtmlPageFromTemplate(testResults, params, 30); + createHtmlPageFromTemplate(testResults, params, -1); } - + + private static void createHtmlPageFromTemplate(Map>> testResults, CommandLineParameters params, int testCount) { + List template = FileUtils.readTextFile(params.getTemplateDir() + "/graph.html"); + List out = new LinkedList(); + List testResultList = processTestResultList(testResults, testCount); + + // iterate through whole template + for (String templateLine : template) { + // replace text in template where needed + if (templateLine.contains("${TEST_COUNT}")) { + String testCountMessage = testCount == -1 ? "all" : "the last " + testCount; + templateLine = templateLine.replace("${TEST_COUNT}", testCountMessage); + out.add(templateLine); + } + else if (templateLine.contains("${GRAPH_DATA_PASSED}")) { + renderGraphDataPassed(out, testResultList); + } + else if (templateLine.contains("${GRAPH_DATA_FAILED}")) { + renderGraphDataFailed(out, testResultList); + } + else if (templateLine.contains("${GRAPH_DATA_ERROR}")) { + renderGraphDataError(out, testResultList); + } + else if (templateLine.contains("${TABLE_DATA}")) { + renderTableData(out, testResults, testCount); + } + else { + out.add(templateLine); + } + } + // write list of string to a file with given name + String outName = testCount == -1 ? "graph_all" : "graph_" + testCount; + FileUtils.writeTextFile(params.getReportDir() + "/" + outName + ".html", out); + } + + private static String oneRecord(int i, int cnt) { + return "[" + (i+1) + ", " + cnt + "],"; + } + + private static void renderGraphDataPassed(List out, List testResultList) { + for (int i = 0; i < testResultList.size(); i++) { + out.add(oneRecord(i, testResultList.get(i).getPassed())); + } + } + + private static void renderGraphDataFailed(List out, List testResultList) { + for (int i = 0; i < testResultList.size(); i++) { + out.add(oneRecord(i, testResultList.get(i).getFailed())); + } + } + + private static void renderGraphDataError(List out, List testResultList) { + for (int i = 0; i < testResultList.size(); i++) { + out.add(oneRecord(i, testResultList.get(i).getError())); + } + } + + private static List processTestResultList( + Map>> testResults, int testCount) { + List testResultList = new LinkedList(); + int threshold = testCount == -1 ? 0 : testResults.size() - testCount; + int index = 0; + for (Map.Entry>> oneResult : testResults.entrySet()) { + if (index >= threshold) { + TestResult testResult = TestResult.readSummary(oneResult.getValue()); + testResultList.add(testResult); + } + index++; + } + return testResultList; + } + + private static void renderTableData(List out, + Map>> testResults, int testCount) { + int threshold = testCount == -1 ? 0 : testResults.size() - testCount; + int index = 0; + int rowIndex = 1; + for (Map.Entry>> oneResult : testResults.entrySet()) { + if (index >= threshold) { + String date = oneResult.getKey(); + TestResult testResult = TestResult.readSummary(oneResult.getValue()); + out.add("" + rowIndex + " " + date + " "); + out.add("" + testResult.getPassed() + ""); + out.add("" + testResult.getFailed() + ""); + out.add("" + testResult.getError() + ""); + out.add(""); + } + index++; + rowIndex++; + } + } + } From xerxes at zafena.se Mon Jul 9 05:02:37 2012 From: xerxes at zafena.se (=?UTF-8?B?WGVyeGVzIFLDpW5ieQ==?=) Date: Mon, 09 Jul 2012 14:02:37 +0200 Subject: Progress report: openjdk cross complication for ARMV5T arch on Ubuntu 12.04 server In-Reply-To: References: Message-ID: <4FFAC85D.9070309@zafena.se> 2012-07-08 13:28, zgtour skrev: > Still working on ' > /| 148 problems (26 errors, 122 warnings)ERROR: Function failed: do_compile (see /home/franklin/oe-core/build/tmp-eglibc/work/i686-linux/xerces-j-native-2.9.1-r0/temp/log.do_compile.24596 for further information)/ > /NOTE: package xerces-j-native-2.9.1-r0: task do_compile: Failed/ > /ERROR: Task 1155 (virtual:native:/home/franklin/oe-core/meta-java/recipes-core/xerces-j/xerces-j_2.9.1.bb, do_compile) failed with exit code '1'/' > I will try again after copying the 289239's version over 6847's version. > > Any comments are welcome. > The best ways to fix these kind of issues is to first add a bugreport for meta-java targeting the xerces-j recipe at: https://github.com/woglinde/meta-java/issues It would help if you added the failing error to compile lines from your /home/franklin/oe-core/build/tmp-eglibc/work/i686-linux/xerces-j-native-2.9.1-r0/temp/log.do_compile.24596 logfile. Cheers Xerxes From jvanek at redhat.com Mon Jul 9 05:40:38 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Mon, 09 Jul 2012 14:40:38 +0200 Subject: [rfc][icedtea-web] try to close before kill In-Reply-To: <4FF436F3.7000701@redhat.com> References: <4FF429D6.5080301@redhat.com> <4FF436F3.7000701@redhat.com> Message-ID: <4FFAD146.70605@redhat.com> On 07/04/2012 02:28 PM, Andrew Haley wrote: > On 07/04/2012 12:32 PM, Jiri Vanek wrote: >> + ll.add("SIGQUIT"); > > SIGTERM, surely? > > Andrew. Sure. Fixed. Thanx and sorry. Danesh and Adam - can you verify whether this helps a bit n you test-failing systems? J. -------------- next part -------------- A non-text attachment was scrubbed... Name: trytoCloseBeforeKill-2.diff Type: text/x-patch Size: 8683 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/f2b8ac7a/trytoCloseBeforeKill-2.diff From jvanek at redhat.com Mon Jul 9 06:44:50 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Mon, 09 Jul 2012 15:44:50 +0200 Subject: [rfc][icedtea-web] JNLPClassLoader oldstyle forloops made to for-each loops, minor cleanup In-Reply-To: <1341602908.16030.31.camel@voip-10-15-18-79.yyz.redhat.com> References: <1341602908.16030.31.camel@voip-10-15-18-79.yyz.redhat.com> Message-ID: <4FFAE052.1080408@redhat.com> On 07/06/2012 09:28 PM, Adam Domurad wrote: > You may notice I don't like looking at old style for loops ... > > 2012-07-06 Adam Domurad > > * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: > Changed some old-style for-loops -> for-each loops. Small code cleanup > and generic type Class references changed to Class. Do you mind to add unittests to all methods you are touching? (any souch a touch is good reason to add some;) ) With unittests, I'm ok for head, 1.3, and 1.2. J. From jvanek at redhat.com Mon Jul 9 07:04:42 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Mon, 09 Jul 2012 16:04:42 +0200 Subject: IcedTea-Web 1.3 branching on Friday In-Reply-To: <20120706141425.GB20313@redhat.com> References: <20120704174812.GP18675@redhat.com> <20120706141425.GB20313@redhat.com> Message-ID: <4FFAE4FA.9050407@redhat.com> On 07/06/2012 04:14 PM, Deepak Bhole wrote: > * Deepak Bhole [2012-07-04 13:56]: >> Hi, >> >> As was discussed earlier in the fixed release time frame thread, I would >> like to branch icedtea-web for 1.3 on Friday. Any objections? >> > > Just realized that one of the main contributors (Jiri Vanek) was off > yesterday and today and may not have seen this. I'll wait till Monday in > case he has any objections. Thank you very much for waiting. You can definitely branch. Splash screen will take me some more time to fullfill last review requests. Sorry:( J. > > Cheers, > Deepak From jvanek at redhat.com Mon Jul 9 07:09:11 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Mon, 09 Jul 2012 16:09:11 +0200 Subject: [rfc][icedtea-web] Ignore invalid .jar files in applets [resubmit] In-Reply-To: <1341417454.16030.20.camel@voip-10-15-18-79.yyz.redhat.com> References: <1340030522.15698.24.camel@voip-10-15-18-79.yyz.redhat.com> <4FF3410D.2060608@redhat.com> <1341344433.16030.3.camel@voip-10-15-18-79.yyz.redhat.com> <4FF42565.20100@redhat.com> <1341412309.16030.19.camel@voip-10-15-18-79.yyz.redhat.com> <1341417454.16030.20.camel@voip-10-15-18-79.yyz.redhat.com> Message-ID: <4FFAE607.4020909@redhat.com> On 07/04/2012 05:57 PM, Adam Domurad wrote: > Here is a version with ResourceNotFoundException renamed to > IllegalResourceDescriptorException. > On Wed, 2012-07-04 at 10:31 -0400, Adam Domurad wrote: >> > I took the approach of making the tracker throw a new type of exception, >> > ResourceNotFoundException extends IllegalArgumentException. >> > C&C welcome. I can easily take a different approach. Point taken @ >> > IllegalArgumentException. Thak you. I'm ok with this now. One minnor on bottom. J. >> > >> > Thanks, >> > Adam >> > On Wed, 2012-07-04 at 13:13 +0200, Jiri Vanek wrote: >>> > > On 07/03/2012 09:40 PM, Adam Domurad wrote: >>>> > > > On Tue, 2012-07-03 at 20:59 +0200, Jiri Vanek wrote: >>>>>> > > >> > On 06/18/2012 04:42 PM, Adam Domurad wrote: >>> > > ... >>>>>> > > >> > >>>>>> > > >> > this removed line scares me a bit.... >>>> > > > It was moved to the top. Confirmed OK with Omair. >>> > > >>> > > yy. >>> > > >>>>>>> > > >>> > > >>>>>>> > > >>> > > try { >>>>>>> > > >>> > > jcv = verifyJars(initialJars); >>>>>>> > > >>> > > @@ -533,6 +583,7 @@ public class JNLPClassLoader extends URL >>>>>>> > > >>> > > >>>>>>> > > >>> > > for (JARDesc jarDesc : file.getResources().getJARs()) { >>>>>>> > > >>> > > try { >>>>>>> > > >>> > > + >>>>>>> > > >>> > > File cachedFile = tracker.getCacheFile(jarDesc.getLocation()); >>>>>>> > > >>> > > >>>>>>> > > >>> > > if (cachedFile == null) { >>>>>>> > > >>> > > @@ -570,6 +621,10 @@ public class JNLPClassLoader extends URL >>>>>>> > > >>> > > jarLocationSecurityMap.put(jarDesc.getLocation(), jarSecurity); >>>>>>> > > >>> > > } catch (MalformedURLException mfe) { >>>>>>> > > >>> > > System.err.println(mfe.getMessage()); >>>>>>> > > >>> > > + } catch (IllegalArgumentException iae){ >>>>>> > > >> > >>>>>> > > >> > Do you think it is possible to caught this exception on better place and rethrow our custom one, which will be then catches here? IllegalaRgument one is pretty common one. >>>>>> > > >> > >>>>>>> > > >>> > > + //Caused by ignored resource being removed due to not being valid >>>>>> > > >> > >>>>>> > > >> > this should be in debug mode or message should go from Message.properties. >>>>>> > > >> > >>>>>>> > > >>> > > + System.err.println("JAR " + jarDesc.getLocation() + " is not a valid jar file. Continuing."); >>>>>>> > > >>> > > + continue; >>>> > > > This seems consistent with the follow message slightly at the >>>> > > > top: >>>> > > > if(cachedFile == null) { >>>> > > > System.err.println("JAR " + jarDesc.getLocation() + " not found. >>>> > > > Continuing."); >>>> > > > continue; // JAR not found. Keep going. >>>> > > > } >>>> > > > >>>> > > > If the other message makes sense, this makes sense... Both or none imo >>> > > Then I'm definitely for both. Print out stacktraces in debug mode, and localised message to stdout anywhay. >>>> > > > >>>>>>> > > >>> > > } >>>>>>> > > >>> > > } >>>>>>> > > >>> > > activateJars(initialJars); >>>>>> > > >> > >>>> > > > >>>> > > > I have fixed the locality of the exception. It is now clearly to handle >>>> > > > an exception in getting the resource, which was removed. Good catch. >>>> > > > >>>> > > > >>> > > Although the place looks much more better now, I wanted the transformation even deeper. >>> > > >>> > > eg in ResourceTracker.getCacheFile or even deeper cough the particular isolated IllegalArgumentException, transform it to your own exception and then, on place like now, cough your new exception. IAE is really very common. Can came from anywhere. >>> > > >>> > > >>> > > J. >>> > > >>> > > >>> > > >>> > > >> > > > > patch-attempt-6.patch > > > diff --git a/netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java b/netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java > new file mode 100644 > --- /dev/null > +++ b/netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java > @@ -0,0 +1,13 @@ > +package net.sourceforge.jnlp.cache; > + > + at SuppressWarnings("serial") > +public class IllegalResourceDescriptorException extends IllegalArgumentException { > + /** > + * Constructs aIllegalResourceDescriptorException with the > + * specified detail message. > + * @param msg the detail message. > + */ > + public IllegalResourceDescriptorException(String msg) { > + super(msg); > + } > +} > diff --git a/netx/net/sourceforge/jnlp/cache/ResourceTracker.java b/netx/net/sourceforge/jnlp/cache/ResourceTracker.java > --- a/netx/net/sourceforge/jnlp/cache/ResourceTracker.java > +++ b/netx/net/sourceforge/jnlp/cache/ResourceTracker.java > @@ -184,7 +184,7 @@ public class ResourceTracker { > */ > public void addResource(URL location, Version version, DownloadOptions options, UpdatePolicy updatePolicy) { > if (location == null) > - throw new IllegalArgumentException("location==null"); > + throw new IllegalResourceDescriptorException("location==null"); > try { > location = normalizeUrl(location, JNLPRuntime.isDebug()); > } catch (Exception ex) { > @@ -225,7 +225,7 @@ public class ResourceTracker { > * not required as resources are reclaimed when the tracker is > * collected. > * > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > public void removeResource(URL location) { > synchronized (resources) { > @@ -351,7 +351,7 @@ public class ResourceTracker { > * > * @param location the resource location > * @return the resource, or null if it could not be downloaded > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > * @see CacheUtil#isCacheable > */ > public URL getCacheURL(URL location) { > @@ -378,7 +378,7 @@ public class ResourceTracker { > * > * @param location the resource location > * @return a local file containing the resource, or null > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > * @see CacheUtil#isCacheable > */ > public File getCacheFile(URL location) { > @@ -418,7 +418,7 @@ public class ResourceTracker { > * the cache. > * > * @throws IOException if there was an error opening the stream > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > public InputStream getInputStream(URL location) throws IOException { > try { > @@ -442,7 +442,7 @@ public class ResourceTracker { > * @param urls the resources to wait for > * @param timeout the time in ms to wait before returning, 0 for no timeout > * @return whether the resources downloaded before the timeout > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > public boolean waitForResources(URL urls[], long timeout) throws InterruptedException { > Resource resources[] = new Resource[urls.length]; > @@ -468,7 +468,7 @@ public class ResourceTracker { > * @param timeout the timeout, or 0 to wait until completed > * @return whether the resource downloaded before the timeout > * @throws InterruptedException if another thread interrupted the wait > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > public boolean waitForResource(URL location, long timeout) throws InterruptedException { > return wait(new Resource[] { getResource(location) }, timeout); > @@ -479,7 +479,7 @@ public class ResourceTracker { > * > * @param location the resource location > * @return the number of bytes transferred > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > public long getAmountRead(URL location) { > // not atomic b/c transferred is a long, but so what (each > @@ -491,7 +491,7 @@ public class ResourceTracker { > * Returns whether a resource is available for use (ie, can be > * accessed with the getCacheFile method). > * > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > public boolean checkResource(URL location) { > return getResource(location).isSet(DOWNLOADED | ERROR); // isSet atomic > @@ -505,7 +505,7 @@ public class ResourceTracker { > * resource at a time to conserve system resources. > * > * @return true if the resource is already downloaded (or an error occurred) > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > public boolean startResource(URL location) { > Resource resource = getResource(location); > @@ -518,7 +518,7 @@ public class ResourceTracker { > * enqueues the resource if not already started. > * > * @return true if the resource is already downloaded (or an error occurred) > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > private boolean startResource(Resource resource) { > boolean enqueue = false; > @@ -550,7 +550,7 @@ public class ResourceTracker { > * > * @param location the resource location > * @return the number of bytes, or -1 > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > public long getTotalSize(URL location) { > return getResource(location).size; // atomic > @@ -606,7 +606,7 @@ public class ResourceTracker { > private void queueResource(Resource resource) { > synchronized (lock) { > if (!resource.isSet(CONNECT | DOWNLOAD)) > - throw new IllegalArgumentException("Invalid resource state (resource: " + resource + ")"); > + throw new IllegalResourceDescriptorException("Invalid resource state (resource: " + resource + ")"); > > queue.add(resource); > startThread(); > @@ -1030,7 +1030,7 @@ public class ResourceTracker { > /** > * Return the resource matching the specified URL. > * > - * @throws IllegalArgumentException if the resource is not being tracked > + * @throws IllegalResourceDescriptorException if the resource is not being tracked > */ > private Resource getResource(URL location) { > synchronized (resources) { > @@ -1040,7 +1040,7 @@ public class ResourceTracker { > } > } > > - throw new IllegalArgumentException("Location does not specify a resource being tracked."); > + throw new IllegalResourceDescriptorException("Location does not specify a resource being tracked."); > } > > /** > diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > @@ -47,6 +47,7 @@ import java.util.Collections; > import java.util.Enumeration; > import java.util.HashMap; > import java.util.HashSet; > +import java.util.Iterator; > import java.util.LinkedList; > import java.util.List; > import java.util.Map; > @@ -73,6 +74,7 @@ import net.sourceforge.jnlp.ResourcesDes > import net.sourceforge.jnlp.SecurityDesc; > import net.sourceforge.jnlp.Version; > import net.sourceforge.jnlp.cache.CacheUtil; > +import net.sourceforge.jnlp.cache.IllegalResourceDescriptorException; > import net.sourceforge.jnlp.cache.ResourceTracker; > import net.sourceforge.jnlp.cache.UpdatePolicy; > import net.sourceforge.jnlp.security.SecurityDialogs; > @@ -439,6 +441,39 @@ public class JNLPClassLoader extends URL > } > > /** > + * Check if a described jar file is invalid > + * @param jar the jar to check > + * @return true if file exists AND is an invalid jar, false otherwise > + */ > + private boolean isInvalidJar(JARDesc jar){ > + File cacheFile = tracker.getCacheFile(jar.getLocation()); > + if (cacheFile == null) > + return false;//File cannot be retrieved, do not claim it is an invalid jar > + boolean isInvalid = false; > + try { > + JarFile jarFile = new JarFile(cacheFile.getAbsolutePath()); > + jarFile.close(); > + } catch (IOException ioe){ > + //Catch a ZipException or any other read failure > + isInvalid = true; > + } > + return isInvalid; > + } > + > + /** > + * Determine how invalid jars should be handled > + * @return whether to filter invalid jars, or error later on > + */ > + private boolean shouldFilterInvalidJars(){ > + if (file instanceof PluginBridge){ > + PluginBridge pluginBridge = (PluginBridge)file; > + /*Ignore on applet, ie !useJNLPHref*/ > + return !pluginBridge.useJNLPHref(); > + } > + return false;//Error is default behaviour > + } > + > + /** > * Load all of the JARs used in this JNLP file into the > * ResourceTracker for downloading. > */ > @@ -488,10 +523,26 @@ public class JNLPClassLoader extends URL > if (strict) > fillInPartJars(initialJars); // add in each initial part's lazy jars > > + waitForJars(initialJars); //download the jars first. > + > + //A ZipException will propagate later on if the jar is invalid and not checked here > + if (shouldFilterInvalidJars()){ > + //We filter any invalid jars > + Iterator iterator = initialJars.iterator(); > + while (iterator.hasNext()){ > + JARDesc jar = iterator.next(); > + if (isInvalidJar(jar)) { > + //Remove this jar as an available jar > + iterator.remove(); > + tracker.removeResource(jar.getLocation()); > + available.remove(jar); > + } > + } > + } > + > if (JNLPRuntime.isVerifying()) { > > JarCertVerifier jcv; > - waitForJars(initialJars); //download the jars first. > > try { > jcv = verifyJars(initialJars); > @@ -554,7 +605,16 @@ public class JNLPClassLoader extends URL > > for (JARDesc jarDesc : file.getResources().getJARs()) { > try { > - File cachedFile = tracker.getCacheFile(jarDesc.getLocation()); > + > + File cachedFile; > + > + try { > + cachedFile = tracker.getCacheFile(jarDesc.getLocation()); > + } catch (IllegalResourceDescriptorException rnte){ > + //Caused by ignored resource being removed due to not being valid > + System.err.println("JAR " + jarDesc.getLocation() + " is not a valid jar file. Continuing."); > + continue; > + } > > if (cachedFile == null) { > System.err.println("JAR " + jarDesc.getLocation() + " not found. Continuing."); Please push this minor fix as different changeset. > diff --git a/tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile b/tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile > --- a/tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile > +++ b/tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile > @@ -7,7 +7,7 @@ INDEX_HTML_BODY="

Require > prepare-reproducer: > echo PREPARING REPRODUCER $(TESTNAME) > mkdir -p $(DEPLOY_SUBDIR) > - echo INDEX_HTML_BODY> $(DEPLOY_SUBDIR)/index.html > + echo $(INDEX_HTML_BODY)> $(DEPLOY_SUBDIR)/index.html > $(EXPORTED_JAVAC) -classpath $(JAVAC_CLASSPATH) -d $(DEPLOY_SUBDIR) $(TESTNAME).java > echo PREPARED REPRODUCER $(TESTNAME) > From adomurad at redhat.com Mon Jul 9 07:31:22 2012 From: adomurad at redhat.com (Adam Domurad) Date: Mon, 09 Jul 2012 10:31:22 -0400 Subject: [rfc][icedtea-web] try to close before kill In-Reply-To: <4FFAD146.70605@redhat.com> References: <4FF429D6.5080301@redhat.com> <4FF436F3.7000701@redhat.com> <4FFAD146.70605@redhat.com> Message-ID: <1341844282.16030.33.camel@voip-10-15-18-79.yyz.redhat.com> Its a little difficult to tell if this is helping, I still get safe-mode errors on my VM. It is useful at the very least in that I do not have to manually close the safe mode popups anymore. OK for HEAD assuming no test regressions on your system. On Mon, 2012-07-09 at 14:40 +0200, Jiri Vanek wrote: > On 07/04/2012 02:28 PM, Andrew Haley wrote: > > On 07/04/2012 12:32 PM, Jiri Vanek wrote: > >> + ll.add("SIGQUIT"); > > > > SIGTERM, surely? > > > > Andrew. > > Sure. Fixed. Thanx and sorry. > > > Danesh and Adam - can you verify whether this helps a bit n you test-failing systems? > > > J. From adomurad at icedtea.classpath.org Mon Jul 9 07:42:55 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Mon, 09 Jul 2012 14:42:55 +0000 Subject: /hg/icedtea-web: Applet-tags now ignore any invalid (eg corrupt)... Message-ID: changeset 138e2837d0e5 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=138e2837d0e5 author: Adam Domurad date: Mon Jul 09 10:42:24 2012 -0400 Applet-tags now ignore any invalid (eg corrupt) jars icedtea-web now skips over any jars that are corrupt or not actually jars. This is how the proprietary plugin treats this situation. diffstat: netx/net/sourceforge/jnlp/cache/ResourceTracker.java | 30 ++++---- netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 64 +++++++++++++++++- 2 files changed, 77 insertions(+), 17 deletions(-) diffs (243 lines): diff -r f7191afb7ab9 -r 138e2837d0e5 netx/net/sourceforge/jnlp/cache/ResourceTracker.java --- a/netx/net/sourceforge/jnlp/cache/ResourceTracker.java Tue Jul 03 17:00:49 2012 -0400 +++ b/netx/net/sourceforge/jnlp/cache/ResourceTracker.java Mon Jul 09 10:42:24 2012 -0400 @@ -184,7 +184,7 @@ */ public void addResource(URL location, Version version, DownloadOptions options, UpdatePolicy updatePolicy) { if (location == null) - throw new IllegalArgumentException("location==null"); + throw new IllegalResourceDescriptorException("location==null"); try { location = normalizeUrl(location, JNLPRuntime.isDebug()); } catch (Exception ex) { @@ -225,7 +225,7 @@ * not required as resources are reclaimed when the tracker is * collected. * - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ public void removeResource(URL location) { synchronized (resources) { @@ -351,7 +351,7 @@ * * @param location the resource location * @return the resource, or null if it could not be downloaded - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked * @see CacheUtil#isCacheable */ public URL getCacheURL(URL location) { @@ -378,7 +378,7 @@ * * @param location the resource location * @return a local file containing the resource, or null - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked * @see CacheUtil#isCacheable */ public File getCacheFile(URL location) { @@ -418,7 +418,7 @@ * the cache. * * @throws IOException if there was an error opening the stream - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ public InputStream getInputStream(URL location) throws IOException { try { @@ -442,7 +442,7 @@ * @param urls the resources to wait for * @param timeout the time in ms to wait before returning, 0 for no timeout * @return whether the resources downloaded before the timeout - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ public boolean waitForResources(URL urls[], long timeout) throws InterruptedException { Resource resources[] = new Resource[urls.length]; @@ -468,7 +468,7 @@ * @param timeout the timeout, or 0 to wait until completed * @return whether the resource downloaded before the timeout * @throws InterruptedException if another thread interrupted the wait - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ public boolean waitForResource(URL location, long timeout) throws InterruptedException { return wait(new Resource[] { getResource(location) }, timeout); @@ -479,7 +479,7 @@ * * @param location the resource location * @return the number of bytes transferred - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ public long getAmountRead(URL location) { // not atomic b/c transferred is a long, but so what (each @@ -491,7 +491,7 @@ * Returns whether a resource is available for use (ie, can be * accessed with the getCacheFile method). * - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ public boolean checkResource(URL location) { return getResource(location).isSet(DOWNLOADED | ERROR); // isSet atomic @@ -505,7 +505,7 @@ * resource at a time to conserve system resources. * * @return true if the resource is already downloaded (or an error occurred) - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ public boolean startResource(URL location) { Resource resource = getResource(location); @@ -518,7 +518,7 @@ * enqueues the resource if not already started. * * @return true if the resource is already downloaded (or an error occurred) - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ private boolean startResource(Resource resource) { boolean enqueue = false; @@ -550,7 +550,7 @@ * * @param location the resource location * @return the number of bytes, or -1 - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ public long getTotalSize(URL location) { return getResource(location).size; // atomic @@ -606,7 +606,7 @@ private void queueResource(Resource resource) { synchronized (lock) { if (!resource.isSet(CONNECT | DOWNLOAD)) - throw new IllegalArgumentException("Invalid resource state (resource: " + resource + ")"); + throw new IllegalResourceDescriptorException("Invalid resource state (resource: " + resource + ")"); queue.add(resource); startThread(); @@ -1030,7 +1030,7 @@ /** * Return the resource matching the specified URL. * - * @throws IllegalArgumentException if the resource is not being tracked + * @throws IllegalResourceDescriptorException if the resource is not being tracked */ private Resource getResource(URL location) { synchronized (resources) { @@ -1040,7 +1040,7 @@ } } - throw new IllegalArgumentException("Location does not specify a resource being tracked."); + throw new IllegalResourceDescriptorException("Location does not specify a resource being tracked."); } /** diff -r f7191afb7ab9 -r 138e2837d0e5 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Tue Jul 03 17:00:49 2012 -0400 +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Mon Jul 09 10:42:24 2012 -0400 @@ -47,6 +47,7 @@ import java.util.Enumeration; import java.util.HashMap; import java.util.HashSet; +import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -73,6 +74,7 @@ import net.sourceforge.jnlp.SecurityDesc; import net.sourceforge.jnlp.Version; import net.sourceforge.jnlp.cache.CacheUtil; +import net.sourceforge.jnlp.cache.IllegalResourceDescriptorException; import net.sourceforge.jnlp.cache.ResourceTracker; import net.sourceforge.jnlp.cache.UpdatePolicy; import net.sourceforge.jnlp.security.SecurityDialogs; @@ -482,6 +484,39 @@ } /** + * Check if a described jar file is invalid + * @param jar the jar to check + * @return true if file exists AND is an invalid jar, false otherwise + */ + private boolean isInvalidJar(JARDesc jar){ + File cacheFile = tracker.getCacheFile(jar.getLocation()); + if (cacheFile == null) + return false;//File cannot be retrieved, do not claim it is an invalid jar + boolean isInvalid = false; + try { + JarFile jarFile = new JarFile(cacheFile.getAbsolutePath()); + jarFile.close(); + } catch (IOException ioe){ + //Catch a ZipException or any other read failure + isInvalid = true; + } + return isInvalid; + } + + /** + * Determine how invalid jars should be handled + * @return whether to filter invalid jars, or error later on + */ + private boolean shouldFilterInvalidJars(){ + if (file instanceof PluginBridge){ + PluginBridge pluginBridge = (PluginBridge)file; + /*Ignore on applet, ie !useJNLPHref*/ + return !pluginBridge.useJNLPHref(); + } + return false;//Error is default behaviour + } + + /** * Load all of the JARs used in this JNLP file into the * ResourceTracker for downloading. */ @@ -548,10 +583,26 @@ if (strict) fillInPartJars(initialJars); // add in each initial part's lazy jars + waitForJars(initialJars); //download the jars first. + + //A ZipException will propagate later on if the jar is invalid and not checked here + if (shouldFilterInvalidJars()){ + //We filter any invalid jars + Iterator iterator = initialJars.iterator(); + while (iterator.hasNext()){ + JARDesc jar = iterator.next(); + if (isInvalidJar(jar)) { + //Remove this jar as an available jar + iterator.remove(); + tracker.removeResource(jar.getLocation()); + available.remove(jar); + } + } + } + if (JNLPRuntime.isVerifying()) { JarCertVerifier jcv; - waitForJars(initialJars); //download the jars first. try { jcv = verifyJars(initialJars); @@ -618,7 +669,16 @@ for (JARDesc jarDesc : file.getResources().getJARs()) { try { - File cachedFile = tracker.getCacheFile(jarDesc.getLocation()); + + File cachedFile; + + try { + cachedFile = tracker.getCacheFile(jarDesc.getLocation()); + } catch (IllegalResourceDescriptorException irde){ + //Caused by ignored resource being removed due to not being valid + System.err.println("JAR " + jarDesc.getLocation() + " is not a valid jar file. Continuing."); + continue; + } if (cachedFile == null) { System.err.println("JAR " + jarDesc.getLocation() + " not found. Continuing."); From ddadacha at redhat.com Mon Jul 9 07:51:43 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Mon, 09 Jul 2012 10:51:43 -0400 Subject: [RFC][icedtea-web] Do not allow searching of jar manifest classpath if jnlp_href is being used In-Reply-To: <4FB66A9E.9080304@redhat.com> References: <4FB430FF.8060201@redhat.com> <4FB4C9E7.4060607@redhat.com> <4FB542F2.4050104@redhat.com> <4FB66A9E.9080304@redhat.com> Message-ID: <4FFAEFFF.7010503@redhat.com> With the many improvements in the test engine, I have been able to write up the tests for this finally! Many thanks to Jiri for all the features added to the test engine! ChangeLog: +2012-07-09 Danesh Dadachanji + + Classpaths in jars' manifests are only considered when the applet is run + without using jnlp_href and a JNLP file. + * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (activateJars): + Add conditional check for use of jnlp_href. + * tests/reproducers/signed/Classpath.Manifest.Test.Helper/srcs/CheckForClasspath.java: + Applet whose jar is stored in a subdir under the test engine server. + * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestAppletTest.html: + * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestAppletTest.jnlp: + * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestApplicationTest.jnlp: + * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestJNLPHrefTest.html: + * tests/reproducers/signed/ClasspathManifestTest/srcs/ClasspathManifest.java: + * tests/reproducers/signed/ClasspathManifestTest/srcs/META-INF/MANIFEST.MF: + * tests/reproducers/signed/ClasspathManifestTest/testcases/ClasspathManifestTest.java: + Test if manifest entry is searched for classpath only when in the plugin + is run without using jnlp_href. + I've updated my changeset (first attachment), I had forgotten a '!' in the if-statement there. Is this one okay for HEAD and to backport? The above scenarios that are supposed to fail (applets run by some JNLP file) do not fail in HEAD when run locally. I ran into some issues with running the above tests locally though, the X11 display is not found. I've attached a second patch that will add said tests. It's missing one, the passing browser test. Cheers, Danesh -------------- next part -------------- A non-text attachment was scrubbed... Name: no-classpath-with-jnlp_href-HEAD-02.patch Type: text/x-patch Size: 23413 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/4f96ca33/no-classpath-with-jnlp_href-HEAD-02.patch -------------- next part -------------- A non-text attachment was scrubbed... Name: no-classpath-with-jnlp_href-HEAD-02-additional.patch Type: text/x-patch Size: 2764 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/4f96ca33/no-classpath-with-jnlp_href-HEAD-02-additional.patch From adomurad at icedtea.classpath.org Mon Jul 9 08:01:31 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Mon, 09 Jul 2012 15:01:31 +0000 Subject: /hg/icedtea-web: Added forgotten file: IllegalResourceDescriptor... Message-ID: changeset 6f1d7f30246a in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=6f1d7f30246a author: Adam Domurad date: Mon Jul 09 11:01:25 2012 -0400 Added forgotten file: IllegalResourceDescriptorException diffstat: netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java | 13 ++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diffs (17 lines): diff -r 138e2837d0e5 -r 6f1d7f30246a netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java Mon Jul 09 11:01:25 2012 -0400 @@ -0,0 +1,13 @@ +package net.sourceforge.jnlp.cache; + + at SuppressWarnings("serial") +public class IllegalResourceDescriptorException extends IllegalArgumentException { + /** + * Constructs a IllegalResourceDescriptorException with the + * specified detail message. + * @param msg the detail message. + */ + public IllegalResourceDescriptorException(String msg) { + super(msg); + } +} From bugzilla-daemon at icedtea.classpath.org Mon Jul 9 08:17:23 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 09 Jul 2012 15:17:23 +0000 Subject: [Bug 1066] Saving .ods in libreoffice to new .ods causes crash In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1066 Deepak Bhole changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dbhole at redhat.com Resolution|--- |WONTFIX --- Comment #2 from Deepak Bhole --- Can you please try this with a newer version? IcedTea6 1.8 is not supported any more. Please feel free to re-open if it happens with >= 1.9 -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/04d89c1c/attachment.html From adomurad at icedtea.classpath.org Mon Jul 9 08:45:25 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Mon, 09 Jul 2012 15:45:25 +0000 Subject: /hg/icedtea-web: Small fix in test Message-ID: changeset fbda46a69fb8 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=fbda46a69fb8 author: Adam Domurad date: Mon Jul 09 11:45:16 2012 -0400 Small fix in test diffstat: tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 6f1d7f30246a -r fbda46a69fb8 tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile --- a/tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile Mon Jul 09 11:01:25 2012 -0400 +++ b/tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile Mon Jul 09 11:45:16 2012 -0400 @@ -7,7 +7,7 @@ prepare-reproducer: echo PREPARING REPRODUCER $(TESTNAME) mkdir -p $(DEPLOY_SUBDIR) - echo INDEX_HTML_BODY > $(DEPLOY_SUBDIR)/index.html + echo $(INDEX_HTML_BODY) > $(DEPLOY_SUBDIR)/index.html $(EXPORTED_JAVAC) -classpath $(JAVAC_CLASSPATH) -d $(DEPLOY_SUBDIR) $(TESTNAME).java echo PREPARED REPRODUCER $(TESTNAME) From bugzilla-daemon at icedtea.classpath.org Mon Jul 9 08:52:01 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 09 Jul 2012 15:52:01 +0000 Subject: [Bug 1066] Saving .ods in libreoffice to new .ods causes crash In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1066 Xerxes R?nby changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xerxes at zafena.se --- Comment #3 from Xerxes R?nby --- # Problematic frame: # C [libsclx.so+0x498a30] Please note that libsclx.so is native, non-java, code part of libreoffice calc. You should try forward this bug to the libreoffice team if you can reproduce the bug using the latest libreoffice. http://wiki.documentfoundation.org/BugReport -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/c1f29a9e/attachment.html From smohammad at redhat.com Mon Jul 9 09:54:47 2012 From: smohammad at redhat.com (Saad Mohammad) Date: Mon, 09 Jul 2012 12:54:47 -0400 Subject: [RFC][icedtea-web]: PR1049 fix - extension jnlp with empty jars Message-ID: <4FFB0CD7.8020509@redhat.com> Hi, The following patch fixes PR1049 and accepts extension loaders containing only empty jars (jars with no content or only META-INF/*). The handling of empty jars behaves much like the proprietary plugin, it will not pop up any security dialog even if the content of META-INF/* is signed. Changelog and reproducers are also attached. http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1049 [More information] Presently, JarCertVerifier verifies empty jars with the result as verifyResult.SIGNED_OK and causes problems when JarCertVerifier.isFullySignedByASingleCert() is called because the list of certificates is empty (certificates arenot added from empty jars if found). This patch resolves this issue by keeping track ofJarCertVerifier with allempty jars. [Changelog] 2012-07-09 Saad Mohammad * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (initializeResources): Removes the display of the security dialog for loaders with only empty jars. * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: (JarCertVerifier): Tracks whether all jars verified are empty jars. (hasAllEmptyJars): Returns true if all jars verified are empty jars. (verifyJars): Checks whether signable entries and certificates are found and decides if all jars are empty jars. (isFullySignedByASingleCert): If all jars are emptyJars, returns true. * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJar.jnlp: Launching jnlp with the resource of a the main jar and an extension jnlp. * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarExtension.jnlp: Extension jnlp containing only an empty jar. * tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java: Testcase that tests jnlp files with empty jars. * tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp: Launches SignedJarResource class directly. -- Cheers, Saad Mohammad -------------- next part -------------- A non-text attachment was scrubbed... Name: changelog_entry.patch Type: text/x-patch Size: 1342 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/52fb9097/changelog_entry.patch -------------- next part -------------- A non-text attachment was scrubbed... Name: PR1049.patch Type: text/x-patch Size: 2309 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/52fb9097/PR1049.patch -------------- next part -------------- A non-text attachment was scrubbed... Name: reproducers.patch Type: text/x-patch Size: 11605 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/52fb9097/reproducers.patch From martin at minimum.se Mon Jul 9 10:12:12 2012 From: martin at minimum.se (Martin Olsson) Date: Mon, 9 Jul 2012 19:12:12 +0200 Subject: [PATCH 1/3] Don't free(random_pointer) Message-ID: <1341853934-19540-1-git-send-email-martin@minimum.se> We must initialize args_array to NULL otherwise when taking the first "goto cleanup" branch we'll essentially do free(uninitialized_mem); --- plugin/icedteanp/IcedTeaPluginRequestProcessor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc index 6505333..9ee6e4b 100644 --- a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc +++ b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc @@ -275,7 +275,7 @@ PluginRequestProcessor::call(std::vector* message_parts) JavaResultData* java_result; NPVariant* result_variant; std::string result_variant_jniid = std::string(); - NPVariant* args_array; + NPVariant* args_array = NULL; AsyncCallThreadData thread_data = AsyncCallThreadData(); reference = atoi(message_parts->at(3)->c_str()); -- 1.7.9.5 From martin at minimum.se Mon Jul 9 10:12:14 2012 From: martin at minimum.se (Martin Olsson) Date: Mon, 9 Jul 2012 19:12:14 +0200 Subject: [PATCH 3/3] Plug memory leak in IcedTeaPluginUtilities::strSplit() In-Reply-To: <1341853934-19540-1-git-send-email-martin@minimum.se> References: <1341853934-19540-1-git-send-email-martin@minimum.se> Message-ID: <1341853934-19540-3-git-send-email-martin@minimum.se> --- plugin/icedteanp/IcedTeaPluginUtils.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/icedteanp/IcedTeaPluginUtils.cc b/plugin/icedteanp/IcedTeaPluginUtils.cc index c57277c..906dca4 100644 --- a/plugin/icedteanp/IcedTeaPluginUtils.cc +++ b/plugin/icedteanp/IcedTeaPluginUtils.cc @@ -297,7 +297,7 @@ IcedTeaPluginUtilities::strSplit(const char* str, const char* delim) v->reserve(strlen(str)/2); char* copy; - // Tokening is done on a copy + // Tokenization is done on a copy copy = (char*) malloc (sizeof(char)*strlen(str) + 1); strcpy(copy, str); @@ -306,13 +306,14 @@ IcedTeaPluginUtilities::strSplit(const char* str, const char* delim) while (tok_ptr != NULL) { - // Allocation on heap since caller has no way to knowing how much will - // be needed. Make sure caller cleans up! + // Allocation on heap since caller has no way to knowing how much will + // be needed. Make sure caller cleans up! std::string* s = new std::string(); s->append(tok_ptr); v->push_back(s); tok_ptr = strtok (NULL, " "); } + free(copy); return v; } -- 1.7.9.5 From martin at minimum.se Mon Jul 9 10:12:13 2012 From: martin at minimum.se (Martin Olsson) Date: Mon, 9 Jul 2012 19:12:13 +0200 Subject: [PATCH 2/3] Use free() rather than g_free() for calloc()ed memory In-Reply-To: <1341853934-19540-1-git-send-email-martin@minimum.se> References: <1341853934-19540-1-git-send-email-martin@minimum.se> Message-ID: <1341853934-19540-2-git-send-email-martin@minimum.se> --- plugin/icedteanp/IcedTeaNPPlugin.cc | 4 ++-- plugin/icedteanp/IcedTeaPluginRequestProcessor.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/icedteanp/IcedTeaNPPlugin.cc b/plugin/icedteanp/IcedTeaNPPlugin.cc index 810e383..eb6d4ec 100644 --- a/plugin/icedteanp/IcedTeaNPPlugin.cc +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc @@ -1272,7 +1272,7 @@ void consume_message(gchar* message) { PLUGIN_DEBUG("Proxy info: %s\n", proxy_info); plugin_send_message_to_appletviewer(proxy_info); - g_free(decoded_url); + free(decoded_url); decoded_url = NULL; g_free(proxy_info); proxy_info = NULL; @@ -1298,7 +1298,7 @@ void consume_message(gchar* message) { PLUGIN_DEBUG("Cookie info: %s\n", cookie_info); plugin_send_message_to_appletviewer(cookie_info); - g_free(decoded_url); + free(decoded_url); decoded_url = NULL; g_free(cookie_info); cookie_info = NULL; diff --git a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc index 9ee6e4b..ef23186 100644 --- a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc +++ b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc @@ -994,7 +994,7 @@ _loadURL(void* data) { ((AsyncCallThreadData*) data)->result_ready = true; - g_free(decoded_url); + free(decoded_url); decoded_url = NULL; PLUGIN_DEBUG("_loadURL returning %d\n", ((AsyncCallThreadData*) data)->call_successful); -- 1.7.9.5 From bugzilla-daemon at icedtea.classpath.org Mon Jul 9 10:47:45 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 09 Jul 2012 17:47:45 +0000 Subject: [Bug 1049] Extension jnlp's signed jar with the content of only META-INF/* is considered unsigned In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1049 Saad Mohammad changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at icedtea.classpat |smohammad at redhat.com |h.org | -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/9ec01ecb/attachment.html From adomurad at redhat.com Mon Jul 9 10:57:34 2012 From: adomurad at redhat.com (Adam Domurad) Date: Mon, 09 Jul 2012 13:57:34 -0400 Subject: [PATCH 2/3] Use free() rather than g_free() for calloc()ed memory In-Reply-To: <1341853934-19540-2-git-send-email-martin@minimum.se> References: <1341853934-19540-1-git-send-email-martin@minimum.se> <1341853934-19540-2-git-send-email-martin@minimum.se> Message-ID: <1341856654.16030.34.camel@voip-10-15-18-79.yyz.redhat.com> On Mon, 2012-07-09 at 19:12 +0200, Martin Olsson wrote: > --- > plugin/icedteanp/IcedTeaNPPlugin.cc | 4 ++-- > plugin/icedteanp/IcedTeaPluginRequestProcessor.cc | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/plugin/icedteanp/IcedTeaNPPlugin.cc b/plugin/icedteanp/IcedTeaNPPlugin.cc > index 810e383..eb6d4ec 100644 > --- a/plugin/icedteanp/IcedTeaNPPlugin.cc > +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc > @@ -1272,7 +1272,7 @@ void consume_message(gchar* message) { > PLUGIN_DEBUG("Proxy info: %s\n", proxy_info); > plugin_send_message_to_appletviewer(proxy_info); > > - g_free(decoded_url); > + free(decoded_url); > decoded_url = NULL; > g_free(proxy_info); > proxy_info = NULL; > @@ -1298,7 +1298,7 @@ void consume_message(gchar* message) { > PLUGIN_DEBUG("Cookie info: %s\n", cookie_info); > plugin_send_message_to_appletviewer(cookie_info); > > - g_free(decoded_url); > + free(decoded_url); > decoded_url = NULL; > g_free(cookie_info); > cookie_info = NULL; > diff --git a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc > index 9ee6e4b..ef23186 100644 > --- a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc > +++ b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc > @@ -994,7 +994,7 @@ _loadURL(void* data) { > > ((AsyncCallThreadData*) data)->result_ready = true; > > - g_free(decoded_url); > + free(decoded_url); > decoded_url = NULL; > > PLUGIN_DEBUG("_loadURL returning %d\n", ((AsyncCallThreadData*) data)->call_successful); All three patches look good, thanks for the contributions Martin! I'll whip up a ChangeLog and push these for you. Thanks, Adam From adomurad at icedtea.classpath.org Mon Jul 9 11:09:02 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Mon, 09 Jul 2012 18:09:02 +0000 Subject: /hg/icedtea-web: Adding forgotten entry to ChangeLog Message-ID: changeset af6e50d03455 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=af6e50d03455 author: Adam Domurad date: Mon Jul 09 14:08:30 2012 -0400 Adding forgotten entry to ChangeLog diffstat: ChangeLog | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diffs (23 lines): diff -r fbda46a69fb8 -r af6e50d03455 ChangeLog --- a/ChangeLog Mon Jul 09 11:45:16 2012 -0400 +++ b/ChangeLog Mon Jul 09 14:08:30 2012 -0400 @@ -1,3 +1,19 @@ +2012-07-09 Adam Domurad + + Ignore invalid jar files in applets, like the oracle plugin does. + * netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java: + New exception type for ResourceTracker to throw instead of + IllegalArgumentException + * netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java: + Throws IllegalArgumentDescriptorException instead of + IllegalArgumentException. + * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: + (isInvalidJar): New, checks for ZipException in new JarFile(...) + (shouldFilterInvalidJars): New, checks if we are in an applet + (initializeResources): if 'shouldFilterInvalidJars()' is true and a jar + is not a valid jar file, the jar is filtered out and normal execution + continues. + 2012-07-03 Saad Mohammad * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: From ddadacha at redhat.com Mon Jul 9 11:22:43 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Mon, 09 Jul 2012 14:22:43 -0400 Subject: [rfc][icedtea-web] try to close before kill In-Reply-To: <4FFAD146.70605@redhat.com> References: <4FF429D6.5080301@redhat.com> <4FF436F3.7000701@redhat.com> <4FFAD146.70605@redhat.com> Message-ID: <4FFB2173.7030802@redhat.com> On 09/07/12 08:40 AM, Jiri Vanek wrote: > > Danesh and Adam - can you verify whether this helps a bit n you test-failing systems? > It didn't help much for me. :( I tried it last week too, still being shown a lot of safe-mode prompts. I've been using --with-firefox=no when testing my own reproducers so it is not that big a deal. I only run the entire engine before posting a review now so I can live with hitting okay for now. =) Regards, Danesh From smohammad at redhat.com Mon Jul 9 11:27:38 2012 From: smohammad at redhat.com (Saad Mohammad) Date: Mon, 09 Jul 2012 14:27:38 -0400 Subject: [RFC][icedtea-web]: Minor clean up of slowdown code Message-ID: <4FFB229A.7070707@redhat.com> Hello, The patch attached removes the check for the main-class name from the for loop; it is now checked once before entering the loop. Thanks Adam for pointing this out. :) Changelog: 2012-07-09 Saad Mohammad * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (initializeExtensions): Removes potential slowdown; main-class name is checked once outside of loop. -- Cheers, Saad Mohammad -------------- next part -------------- A non-text attachment was scrubbed... Name: fix.patch Type: text/x-patch Size: 2099 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/f21bb289/fix.patch From adomurad at redhat.com Mon Jul 9 11:46:13 2012 From: adomurad at redhat.com (Adam Domurad) Date: Mon, 09 Jul 2012 14:46:13 -0400 Subject: [RFC][icedtea-web]: Minor clean up of slowdown code In-Reply-To: <4FFB229A.7070707@redhat.com> References: <4FFB229A.7070707@redhat.com> Message-ID: <1341859573.16030.40.camel@voip-10-15-18-79.yyz.redhat.com> On Mon, 2012-07-09 at 14:27 -0400, Saad Mohammad wrote: > Hello, > > The patch attached removes the check for the main-class name from the > for loop; it is now checked once before entering the loop. Thanks Adam > for pointing this out. :) > > Changelog: > 2012-07-09 Saad Mohammad > > * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: > (initializeExtensions): Removes potential slowdown; main-class name is > checked once outside of loop. > OK for HEAD. Just a nit - in the ChangeLog I wouldn't say 'Removes potential slowdown'. This implies that something could be slower for the end user. Just wanted to clarify that I didn't point this out for performance reasons :) The performance gain here is virtually impossible to measure. The main improvement here is simply, moving code that doesn't belong in a loop. This helps readability and is a more logical design. From adomurad at icedtea.classpath.org Mon Jul 9 11:58:22 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Mon, 09 Jul 2012 18:58:22 +0000 Subject: /hg/icedtea-web: Small fixes to C++ side of plugin, submitted by... Message-ID: changeset 0e3c3f0aeb1f in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=0e3c3f0aeb1f author: Adam Domurad date: Mon Jul 09 14:50:22 2012 -0400 Small fixes to C++ side of plugin, submitted by Martin Olsson. Also fixed a space in my last ChangeLog. diffstat: ChangeLog | 12 +++++++++++- plugin/icedteanp/IcedTeaNPPlugin.cc | 4 ++-- plugin/icedteanp/IcedTeaPluginRequestProcessor.cc | 4 ++-- plugin/icedteanp/IcedTeaPluginUtils.cc | 11 ++++++----- 4 files changed, 21 insertions(+), 10 deletions(-) diffs (90 lines): diff -r af6e50d03455 -r 0e3c3f0aeb1f ChangeLog --- a/ChangeLog Mon Jul 09 14:08:30 2012 -0400 +++ b/ChangeLog Mon Jul 09 14:50:22 2012 -0400 @@ -1,4 +1,14 @@ -2012-07-09 Adam Domurad +2012-07-09 Martin Olsson + + * plugin/icedteanp/IcedTeaPluginUtils.cc: Change calls from g_free + to free when allocated with calloc. + * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc + (PluginRequestProcessor::call): Make sure args_array doesnt hold + garbage when freed. + (_loadURL): Change calls from g_free to free when allocated with + calloc. + +2012-07-09 Adam Domurad Ignore invalid jar files in applets, like the oracle plugin does. * netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java: diff -r af6e50d03455 -r 0e3c3f0aeb1f plugin/icedteanp/IcedTeaNPPlugin.cc --- a/plugin/icedteanp/IcedTeaNPPlugin.cc Mon Jul 09 14:08:30 2012 -0400 +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc Mon Jul 09 14:50:22 2012 -0400 @@ -1272,7 +1272,7 @@ PLUGIN_DEBUG("Proxy info: %s\n", proxy_info); plugin_send_message_to_appletviewer(proxy_info); - g_free(decoded_url); + free(decoded_url); decoded_url = NULL; g_free(proxy_info); proxy_info = NULL; @@ -1298,7 +1298,7 @@ PLUGIN_DEBUG("Cookie info: %s\n", cookie_info); plugin_send_message_to_appletviewer(cookie_info); - g_free(decoded_url); + free(decoded_url); decoded_url = NULL; g_free(cookie_info); cookie_info = NULL; diff -r af6e50d03455 -r 0e3c3f0aeb1f plugin/icedteanp/IcedTeaPluginRequestProcessor.cc --- a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc Mon Jul 09 14:08:30 2012 -0400 +++ b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc Mon Jul 09 14:50:22 2012 -0400 @@ -275,7 +275,7 @@ JavaResultData* java_result; NPVariant* result_variant; std::string result_variant_jniid = std::string(); - NPVariant* args_array; + NPVariant* args_array = NULL; AsyncCallThreadData thread_data = AsyncCallThreadData(); reference = atoi(message_parts->at(3)->c_str()); @@ -994,7 +994,7 @@ ((AsyncCallThreadData*) data)->result_ready = true; - g_free(decoded_url); + free(decoded_url); decoded_url = NULL; PLUGIN_DEBUG("_loadURL returning %d\n", ((AsyncCallThreadData*) data)->call_successful); diff -r af6e50d03455 -r 0e3c3f0aeb1f plugin/icedteanp/IcedTeaPluginUtils.cc --- a/plugin/icedteanp/IcedTeaPluginUtils.cc Mon Jul 09 14:08:30 2012 -0400 +++ b/plugin/icedteanp/IcedTeaPluginUtils.cc Mon Jul 09 14:50:22 2012 -0400 @@ -297,7 +297,7 @@ v->reserve(strlen(str)/2); char* copy; - // Tokening is done on a copy + // Tokenization is done on a copy copy = (char*) malloc (sizeof(char)*strlen(str) + 1); strcpy(copy, str); @@ -308,11 +308,12 @@ { // Allocation on heap since caller has no way to knowing how much will // be needed. Make sure caller cleans up! - std::string* s = new std::string(); - s->append(tok_ptr); - v->push_back(s); - tok_ptr = strtok (NULL, " "); + std::string* s = new std::string(); + s->append(tok_ptr); + v->push_back(s); + tok_ptr = strtok (NULL, " "); } + free(copy); return v; } From smohammad at icedtea.classpath.org Mon Jul 9 12:46:07 2012 From: smohammad at icedtea.classpath.org (smohammad at icedtea.classpath.org) Date: Mon, 09 Jul 2012 19:46:07 +0000 Subject: /hg/icedtea-web: Minor cleanup that removes avoidable code from ... Message-ID: changeset 13ca1c870b92 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=13ca1c870b92 author: Saad Mohammad date: Mon Jul 09 15:45:42 2012 -0400 Minor cleanup that removes avoidable code from loop. diffstat: ChangeLog | 5 +++ netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 25 ++++++++--------- 2 files changed, 17 insertions(+), 13 deletions(-) diffs (51 lines): diff -r 0e3c3f0aeb1f -r 13ca1c870b92 ChangeLog --- a/ChangeLog Mon Jul 09 14:50:22 2012 -0400 +++ b/ChangeLog Mon Jul 09 15:45:42 2012 -0400 @@ -1,3 +1,8 @@ +2012-07-09 Saad Mohammad + + * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeExtensions): + Checks and assigns the main-class name prior to the for loop. + 2012-07-09 Martin Olsson * plugin/icedteanp/IcedTeaPluginUtils.cc: Change calls from g_free diff -r 0e3c3f0aeb1f -r 13ca1c870b92 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Mon Jul 09 14:50:22 2012 -0400 +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Mon Jul 09 15:45:42 2012 -0400 @@ -433,23 +433,22 @@ loaderList.add(this); + if (mainClass == null) { + Object obj = file.getLaunchInfo(); + + if (obj instanceof ApplicationDesc) { + ApplicationDesc ad = (ApplicationDesc) file.getLaunchInfo(); + mainClass = ad.getMainClass(); + } else if (obj instanceof AppletDesc) { + AppletDesc ad = (AppletDesc) file.getLaunchInfo(); + mainClass = ad.getMainClass(); + } + } + //if (ext != null) { for (int i = 0; i < ext.length; i++) { try { String uniqueKey = this.getJNLPFile().getUniqueKey(); - - if (mainClass == null) { - Object obj = file.getLaunchInfo(); - - if (obj instanceof ApplicationDesc) { - ApplicationDesc ad = (ApplicationDesc) file.getLaunchInfo(); - mainClass = ad.getMainClass(); - } else if (obj instanceof AppletDesc) { - AppletDesc ad = (AppletDesc) file.getLaunchInfo(); - mainClass = ad.getMainClass(); - } - } - JNLPClassLoader loader = getInstance(ext[i].getLocation(), uniqueKey, ext[i].getVersion(), updatePolicy, mainClass); loaderList.add(loader); } catch (Exception ex) { From dbhole at icedtea.classpath.org Mon Jul 9 13:22:08 2012 From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org) Date: Mon, 09 Jul 2012 20:22:08 +0000 Subject: /hg/icedtea-web: Bumped release number to 1.4pre Message-ID: changeset f4f26edeaba6 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=f4f26edeaba6 author: Deepak Bhole date: Mon Jul 09 16:22:05 2012 -0400 Bumped release number to 1.4pre diffstat: ChangeLog | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diffs (20 lines): diff -r 13ca1c870b92 -r f4f26edeaba6 ChangeLog --- a/ChangeLog Mon Jul 09 15:45:42 2012 -0400 +++ b/ChangeLog Mon Jul 09 16:22:05 2012 -0400 @@ -1,3 +1,7 @@ +2012-07-09 Deepak Bhole + + * configure.ac: Bumped release number to 1.4pre + 2012-07-09 Saad Mohammad * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeExtensions): diff -r 13ca1c870b92 -r f4f26edeaba6 configure.ac --- a/configure.ac Mon Jul 09 15:45:42 2012 -0400 +++ b/configure.ac Mon Jul 09 16:22:05 2012 -0400 @@ -1,4 +1,4 @@ -AC_INIT([icedtea-web],[1.3pre],[distro-pkg-dev at openjdk.java.net], [icedtea-web], [http://icedtea.classpath.org/wiki/IcedTea-Web]) +AC_INIT([icedtea-web],[1.4pre],[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]) From dbhole at redhat.com Mon Jul 9 13:22:47 2012 From: dbhole at redhat.com (Deepak Bhole) Date: Mon, 9 Jul 2012 16:22:47 -0400 Subject: IcedTea-Web 1.3 branching on Friday In-Reply-To: <4FFAE4FA.9050407@redhat.com> References: <20120704174812.GP18675@redhat.com> <20120706141425.GB20313@redhat.com> <4FFAE4FA.9050407@redhat.com> Message-ID: <20120709202247.GP27433@redhat.com> * Jiri Vanek [2012-07-09 10:01]: > On 07/06/2012 04:14 PM, Deepak Bhole wrote: > >* Deepak Bhole [2012-07-04 13:56]: > >>Hi, > >> > >>As was discussed earlier in the fixed release time frame thread, I would > >>like to branch icedtea-web for 1.3 on Friday. Any objections? > >> > > > >Just realized that one of the main contributors (Jiri Vanek) was off > >yesterday and today and may not have seen this. I'll wait till Monday in > >case he has any objections. > > Thank you very much for waiting. You can definitely branch. Splash screen will take me some more time to fullfill last review requests. Sorry:( > No problem. Branch created: http://icedtea.classpath.org/hg/release/icedtea-web-1.3/ Cheers, Deepak From ptisnovs at icedtea.classpath.org Tue Jul 10 02:42:08 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Tue, 10 Jul 2012 09:42:08 +0000 Subject: /hg/gfx-test: Added ten new tests to the test suite PrintTestRou... Message-ID: changeset bdb992726715 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=bdb992726715 author: Pavel Tisnovsky date: Tue Jul 10 11:44:43 2012 +0200 Added ten new tests to the test suite PrintTestRoundRectangles. diffstat: ChangeLog | 5 + src/org/gfxtest/testsuites/PrintTestRoundRectangles.java | 519 +++++++++++++++ 2 files changed, 524 insertions(+), 0 deletions(-) diffs (truncated from 541 to 500 lines): diff -r 2484fe8c1d23 -r bdb992726715 ChangeLog --- a/ChangeLog Mon Jul 09 12:01:38 2012 +0200 +++ b/ChangeLog Tue Jul 10 11:44:43 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-10 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/PrintTestRoundRectangles.java: + Added ten new tests. + 2012-07-09 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestRectangles.java: diff -r 2484fe8c1d23 -r bdb992726715 src/org/gfxtest/testsuites/PrintTestRoundRectangles.java --- a/src/org/gfxtest/testsuites/PrintTestRoundRectangles.java Mon Jul 09 12:01:38 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestRoundRectangles.java Tue Jul 10 11:44:43 2012 +0200 @@ -774,6 +774,525 @@ } /** + * Test basic behavior of method Graphics.drawRoundRect(). Round rectangles are + * rendered with various width and default end caps. Color of all rendered + * rectangles are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapButtJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapButtJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_BUTT. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapButtJoinRoundInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapRoundJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapRoundJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_ROUND. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapRoundJoinRoundInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to bevel style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapSquareJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to miter style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapSquareJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each rectangle is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawRoundRect(). + * Round rectangles are rendered with various width and end caps set to CAP_SQUARE. + * Join style is set to round style. + * Color of all rendered lines are set to black. + * + * @param image + * image to which circles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawRoundRectanglesChangeWidthCapSquareJoinRoundInv(TestImage image, Graphics2D graphics2d) + { + drawRoundRectangles(image, graphics2d, RECTANGLE_STEP * 3 / 2, new RectangleDrawCallbacks() From jvanek at redhat.com Tue Jul 10 06:44:13 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Tue, 10 Jul 2012 15:44:13 +0200 Subject: [rfc][icedtea-web] Introduce LaunchDesc interface for AppletDesc, ApplicationDesc & InstallerDesc In-Reply-To: <1340637084.10565.63.camel@voip-10-15-18-79.yyz.redhat.com> References: <1340637084.10565.63.camel@voip-10-15-18-79.yyz.redhat.com> Message-ID: <4FFC31AD.1020608@redhat.com> On 06/25/2012 05:11 PM, Adam Domurad wrote: > Hi. This patch addresses the issue that JNLPFile#launchType has a > non-descript type of 'Object'. This introduces an appropriate type, > LaunchDesc. > > One open question I have is, I noticed two pieces of code in > JNLPClassLoader that checked specifically if the LaunchDesc was an > AppletDesc or an ApplicationDesc. How should these be handled in the > case of an InstallerDesc ? In the new patch, it simply tests if the > LaunchDesc is not null. Should InstallerDesc not be handled in > JNLPClassLoader#checkForMain as before ? > > ChangeLog: > 2012-06-25 Adam Domurad > > Refactor JNLPFile#launchType into its own interface type (as opposed to > Object), LaunchDesc. > * netx/net/sourceforge/jnlp/AppletDesc.java: Add override annotation to > getMainClass(). > * netx/net/sourceforge/jnlp/ApplicationDesc.java: Same as above > * netx/net/sourceforge/jnlp/InstallerDesc.java: Same as above > * netx/net/sourceforge/jnlp/JNLPFile.java: Make launchType a > LaunchDesc object. Update getLaunchInfo() accordingly. > * netx/net/sourceforge/jnlp/LaunchDesc.java: New launch description. > * netx/net/sourceforge/jnlp/Parser.java > (getLauncher): Return type changed to LaunchDesc > * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Replace > occurences of instanceof with respect to launchType. > > ok for head and 1.3 J. From adomurad at icedtea.classpath.org Tue Jul 10 07:36:00 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Tue, 10 Jul 2012 14:36:00 +0000 Subject: /hg/icedtea-web: Refactor Object launchType; to LaunchDesc launc... Message-ID: changeset 922020047e98 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=922020047e98 author: Adam Domurad date: Tue Jul 10 10:35:52 2012 -0400 Refactor Object launchType; to LaunchDesc launchType; in JNLPFile diffstat: ChangeLog | 16 +++++++++++++++ netx/net/sourceforge/jnlp/AppletDesc.java | 3 +- netx/net/sourceforge/jnlp/ApplicationDesc.java | 3 +- netx/net/sourceforge/jnlp/InstallerDesc.java | 3 +- netx/net/sourceforge/jnlp/JNLPFile.java | 4 +- netx/net/sourceforge/jnlp/Parser.java | 2 +- netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 19 +++++++---------- 7 files changed, 33 insertions(+), 17 deletions(-) diffs (161 lines): diff -r f4f26edeaba6 -r 922020047e98 ChangeLog --- a/ChangeLog Mon Jul 09 16:22:05 2012 -0400 +++ b/ChangeLog Tue Jul 10 10:35:52 2012 -0400 @@ -1,3 +1,19 @@ +2012-07-10 Adam Domurad + + Refactor JNLPFile#launchType into its own interface type (as opposed to + Object), LaunchDesc. + * netx/net/sourceforge/jnlp/AppletDesc.java: Add override annotation to + getMainClass(). + * netx/net/sourceforge/jnlp/ApplicationDesc.java: Same as above + * netx/net/sourceforge/jnlp/InstallerDesc.java: Same as above + * netx/net/sourceforge/jnlp/JNLPFile.java: Make launchType a + LaunchDesc object. Update getLaunchInfo() accordingly. + * netx/net/sourceforge/jnlp/LaunchDesc.java: New launch description. + * netx/net/sourceforge/jnlp/Parser.java + (getLauncher): Return type changed to LaunchDesc + * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Replace + occurences of instanceof with respect to launchType. + 2012-07-09 Deepak Bhole * configure.ac: Bumped release number to 1.4pre diff -r f4f26edeaba6 -r 922020047e98 netx/net/sourceforge/jnlp/AppletDesc.java --- a/netx/net/sourceforge/jnlp/AppletDesc.java Mon Jul 09 16:22:05 2012 -0400 +++ b/netx/net/sourceforge/jnlp/AppletDesc.java Tue Jul 10 10:35:52 2012 -0400 @@ -25,7 +25,7 @@ * @author Jon A. Maxwell (JAM) - initial author * @version $Revision: 1.8 $ */ -public class AppletDesc { +public class AppletDesc implements LaunchDesc { /** the applet name */ private String name; @@ -75,6 +75,7 @@ /** * Returns the main class name in the dot-separated form (eg: foo.bar.Baz) */ + @Override public String getMainClass() { return mainClass; } diff -r f4f26edeaba6 -r 922020047e98 netx/net/sourceforge/jnlp/ApplicationDesc.java --- a/netx/net/sourceforge/jnlp/ApplicationDesc.java Mon Jul 09 16:22:05 2012 -0400 +++ b/netx/net/sourceforge/jnlp/ApplicationDesc.java Tue Jul 10 10:35:52 2012 -0400 @@ -24,7 +24,7 @@ * @author Jon A. Maxwell (JAM) - initial author * @version $Revision: 1.7 $ */ -public class ApplicationDesc { +public class ApplicationDesc implements LaunchDesc { /** the main class name and package */ private String mainClass; @@ -46,6 +46,7 @@ /** * Returns the main class name */ + @Override public String getMainClass() { return mainClass; } diff -r f4f26edeaba6 -r 922020047e98 netx/net/sourceforge/jnlp/InstallerDesc.java --- a/netx/net/sourceforge/jnlp/InstallerDesc.java Mon Jul 09 16:22:05 2012 -0400 +++ b/netx/net/sourceforge/jnlp/InstallerDesc.java Tue Jul 10 10:35:52 2012 -0400 @@ -22,7 +22,7 @@ * @author Jon A. Maxwell (JAM) - initial author * @version $Revision: 1.6 $ */ -public class InstallerDesc { +public class InstallerDesc implements LaunchDesc { /** the main class name and package. */ private String mainClass; @@ -39,6 +39,7 @@ /** * Returns the main class name and package. */ + @Override public String getMainClass() { return mainClass; } diff -r f4f26edeaba6 -r 922020047e98 netx/net/sourceforge/jnlp/JNLPFile.java --- a/netx/net/sourceforge/jnlp/JNLPFile.java Mon Jul 09 16:22:05 2012 -0400 +++ b/netx/net/sourceforge/jnlp/JNLPFile.java Tue Jul 10 10:35:52 2012 -0400 @@ -91,7 +91,7 @@ protected ResourcesDesc sharedResources = new ResourcesDesc(this, null, null, null); /** the application description */ - protected Object launchType; + protected LaunchDesc launchType; /** the component description */ protected ComponentDesc component; @@ -446,7 +446,7 @@ * Returns an object of one of the following types: AppletDesc, * ApplicationDesc and InstallerDesc */ - public Object getLaunchInfo() { + public LaunchDesc getLaunchInfo() { return launchType; } diff -r f4f26edeaba6 -r 922020047e98 netx/net/sourceforge/jnlp/Parser.java --- a/netx/net/sourceforge/jnlp/Parser.java Mon Jul 09 16:22:05 2012 -0400 +++ b/netx/net/sourceforge/jnlp/Parser.java Tue Jul 10 10:35:52 2012 -0400 @@ -609,7 +609,7 @@ * @param parent the parent node * @throws ParseException if the JNLP file is invalid */ - public Object getLauncher(Node parent) throws ParseException { + public LaunchDesc getLauncher(Node parent) throws ParseException { // check for other than one application type if (1 < getChildNodes(parent, "applet-desc").length + getChildNodes(parent, "application-desc").length diff -r f4f26edeaba6 -r 922020047e98 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Mon Jul 09 16:22:05 2012 -0400 +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Tue Jul 10 10:35:52 2012 -0400 @@ -67,6 +67,7 @@ import net.sourceforge.jnlp.JNLPFile; import net.sourceforge.jnlp.JNLPMatcher; import net.sourceforge.jnlp.JNLPMatcherException; +import net.sourceforge.jnlp.LaunchDesc; import net.sourceforge.jnlp.LaunchException; import net.sourceforge.jnlp.ParseException; import net.sourceforge.jnlp.PluginBridge; @@ -636,8 +637,7 @@ // If jar with main class was not found and there are no more // available jars, throw a LaunchException - if (file.getLaunchInfo() instanceof AppletDesc || - file.getLaunchInfo() instanceof ApplicationDesc) { + if (file.getLaunchInfo() != null) { if (!foundMainJar && (available == null || available.size() == 0)) throw new LaunchException(file, null, R("LSFatal"), @@ -729,17 +729,14 @@ */ private void checkForMain(List jars) throws LaunchException { + // Check launch info if (mainClass == null) { - Object obj = file.getLaunchInfo(); + LaunchDesc launchDesc = file.getLaunchInfo(); + if (launchDesc == null) { + return; + } - if (obj instanceof ApplicationDesc) { - ApplicationDesc ad = (ApplicationDesc) file.getLaunchInfo(); - mainClass = ad.getMainClass(); - } else if (obj instanceof AppletDesc) { - AppletDesc ad = (AppletDesc) file.getLaunchInfo(); - mainClass = ad.getMainClass(); - } else - return; + mainClass = launchDesc.getMainClass(); } // The main class may be specified in the manifest From adomurad at icedtea.classpath.org Tue Jul 10 07:41:23 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Tue, 10 Jul 2012 14:41:23 +0000 Subject: /hg/icedtea-web: Added forgotten LaunchDesc.java, fixes build. s... Message-ID: changeset 1ced587420b8 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=1ced587420b8 author: Adam Domurad date: Tue Jul 10 10:41:17 2012 -0400 Added forgotten LaunchDesc.java, fixes build. sorry! diffstat: netx/net/sourceforge/jnlp/LaunchDesc.java | 42 +++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diffs (46 lines): diff -r 922020047e98 -r 1ced587420b8 netx/net/sourceforge/jnlp/LaunchDesc.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netx/net/sourceforge/jnlp/LaunchDesc.java Tue Jul 10 10:41:17 2012 -0400 @@ -0,0 +1,42 @@ +/* LaunchDesc -- Represents a launch description + Copyright (C) 2012 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 net.sourceforge.jnlp; + +public interface LaunchDesc { + public String getMainClass(); +} From henri.gomez at gmail.com Mon Jul 9 01:21:00 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Mon, 9 Jul 2012 10:21:00 +0200 Subject: [7u communication] 7u6 Stabilization forest proposal In-Reply-To: <3C7C6EBD-23F2-4030-BAFB-7AEDE7A245FD@oracle.com> References: <4950764d-cf59-46cb-b28c-bd09c4ad08e7@zmail17.collab.prod.int.phx2.redhat.com> <4FEC20C2.6040005@oracle.com> <3C7C6EBD-23F2-4030-BAFB-7AEDE7A245FD@oracle.com> Message-ID: http://hg.openjdk.java.net/jdk7u/jdk7u6-dev is frozen now ? 2012/7/9 Edvard Wendelin : > Hi, > > John has now been kind enough to create the forests for 7u6. There was a build problem for B17, so they had to re-spin the build, hence B18. 7u6 [1] and 7u6-dev [2] are created of out jdk7u#jdk7u6-b18. > > Please use jdk7u6-dev [2] for fixes targeted to 7u6. > > Cheers, > Edvard > > [1] http://hg.openjdk.java.net/jdk7u/jdk7u6 > [2] http://hg.openjdk.java.net/jdk7u/jdk7u6-dev > > On Jun 28, 2012, at 11:15 AM, Edvard Wendelin wrote: > >> Hi, >> >> Due to July 4th being a public holiday in the US and how that affects integration schedules, I'd like to propose that we move the creation of the forest to July 5th and the jdk7u6-b17 tag instead. >> >> Sorry for the late notice, but it was feedback we got after the first email was sent out. >> >> Thanks, >> Edvard >> >> On 06/28/2012 01:28 AM, Andrew Hughes wrote: >>> >>> ----- Original Message ----- >>>> Hi, >>>> >>>> I'd like to propose the following stabilisation forests for 7u6 to be >>>> created on July 2nd: >>>> >>>> hg.openjdk.java.net/jdk7u/jdk7u6 based on >>>> hg.openjdk.java.net/jdk7u/jdk7u/ tag jdk7u6-b16 >>>> hg.openjdk.java.net/jdk7u/jdk7u6-dev based on >>>> hg.openjdk.java.net/jdk7u/jdk7u/ tag jdk7u6-b16 >>>> >>>> Build 16 is scheduled for June28th. jdk7u6-dev is the development >>>> forest open for fixes that has passed the critical approval process. >>>> [1] See my email on the end game update for more details. After July >>>> 2nd, the next build in jdk7u will be for jdk 7u8. >>>> >>>> If you have any objections or concerns, let me know before the end of >>>> this week. >>>> >>>> Cheers, >>>> Edvard >>>> >>>> [1] >>>> http://mail.openjdk.java.net/pipermail/jdk7u-dev/2012-February/001900.html >>> Good to see a clear tag for the branch point this time! :-) > From sean.coffey at oracle.com Mon Jul 9 03:12:16 2012 From: sean.coffey at oracle.com (=?ISO-8859-1?Q?Se=E1n_Coffey?=) Date: Mon, 09 Jul 2012 11:12:16 +0100 Subject: [7u communication] 7u6 Stabilization forest proposal In-Reply-To: References: <4950764d-cf59-46cb-b28c-bd09c4ad08e7@zmail17.collab.prod.int.phx2.redhat.com> <4FEC20C2.6040005@oracle.com> <3C7C6EBD-23F2-4030-BAFB-7AEDE7A245FD@oracle.com> Message-ID: <4FFAAE80.4040302@oracle.com> 7u6 forest is now only for critical fix approvals as outlined in previous mails. Regards, Sean. On 09/07/12 09:21, Henri Gomez wrote: > http://hg.openjdk.java.net/jdk7u/jdk7u6-dev is frozen now ? > > 2012/7/9 Edvard Wendelin : >> Hi, >> >> John has now been kind enough to create the forests for 7u6. There was a build problem for B17, so they had to re-spin the build, hence B18. 7u6 [1] and 7u6-dev [2] are created of out jdk7u#jdk7u6-b18. >> >> Please use jdk7u6-dev [2] for fixes targeted to 7u6. >> >> Cheers, >> Edvard >> >> [1] http://hg.openjdk.java.net/jdk7u/jdk7u6 >> [2] http://hg.openjdk.java.net/jdk7u/jdk7u6-dev >> >> On Jun 28, 2012, at 11:15 AM, Edvard Wendelin wrote: >> >>> Hi, >>> >>> Due to July 4th being a public holiday in the US and how that affects integration schedules, I'd like to propose that we move the creation of the forest to July 5th and the jdk7u6-b17 tag instead. >>> >>> Sorry for the late notice, but it was feedback we got after the first email was sent out. >>> >>> Thanks, >>> Edvard >>> >>> On 06/28/2012 01:28 AM, Andrew Hughes wrote: >>>> ----- Original Message ----- >>>>> Hi, >>>>> >>>>> I'd like to propose the following stabilisation forests for 7u6 to be >>>>> created on July 2nd: >>>>> >>>>> hg.openjdk.java.net/jdk7u/jdk7u6 based on >>>>> hg.openjdk.java.net/jdk7u/jdk7u/ tag jdk7u6-b16 >>>>> hg.openjdk.java.net/jdk7u/jdk7u6-dev based on >>>>> hg.openjdk.java.net/jdk7u/jdk7u/ tag jdk7u6-b16 >>>>> >>>>> Build 16 is scheduled for June28th. jdk7u6-dev is the development >>>>> forest open for fixes that has passed the critical approval process. >>>>> [1] See my email on the end game update for more details. After July >>>>> 2nd, the next build in jdk7u will be for jdk 7u8. >>>>> >>>>> If you have any objections or concerns, let me know before the end of >>>>> this week. >>>>> >>>>> Cheers, >>>>> Edvard >>>>> >>>>> [1] >>>>> http://mail.openjdk.java.net/pipermail/jdk7u-dev/2012-February/001900.html >>>> Good to see a clear tag for the branch point this time! :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120709/329a942b/attachment.html From fredrik.ohrstrom at oracle.com Tue Jul 10 03:07:29 2012 From: fredrik.ohrstrom at oracle.com (=?iso-8859-1?Q?Fredrik_=D6hrstr=F6m?=) Date: Tue, 10 Jul 2012 12:07:29 +0200 Subject: Native zlib libraries In-Reply-To: References: Message-ID: Two other obvious candidates are the bundled jpeg and gif libraries. Please suggest a patch for build-infra/jdk8! Backporting the new build system for jdk7/jdk6 is not even on the horizon. It would be nice though, and probably not impossible. //Fredrik 9 jul 2012 kl. 01:52 skrev Andrew Hughes: > > > ----- Original Message ----- >> The new build system offers a convenient option to the configure >> script: >> --with-zlib=system >> this will pickup the zlib libraries from the system. >> >> The default behavior is: --with-zlib=bundled >> > > Have you done any others? And is this available from the old bug system? > > This is the first I've heard of this being done and we need it in 6 & 7 too. > >> //Fredrik >> >> 2012/7/5 Andrew Hughes : >>> >>> >>> ----- Original Message ----- >>>> Is there a way to get the native zlib libraries to get picked up >>>> instead of the hardcoded version within the JVM? >>>> >>>> -- >>>> Azeem Jiva >>>> @javawithjiva >>> >>> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get it >>> upstream. >>> >>> However, I don't see how this is related to HotSpot, as the zlib >>> usage >>> is in the jdk tree. >>> -- >>> Andrew :) >>> >>> Free Java Software Engineer >>> Red Hat, Inc. (http://www.redhat.com) >>> >>> PGP Key: 248BDC07 (https://keys.indymedia.org/) >>> Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 >>> >> > > -- > Andrew :) > > Free Java Software Engineer > Red Hat, Inc. (http://www.redhat.com) > > PGP Key: 248BDC07 (https://keys.indymedia.org/) > Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 > From adomurad at redhat.com Tue Jul 10 13:58:45 2012 From: adomurad at redhat.com (Adam Domurad) Date: Tue, 10 Jul 2012 16:58:45 -0400 Subject: [rfc][icedtea-web] Fix for PR920, duplicate class loading when extending from outside jar Message-ID: <1341953925.16030.46.camel@voip-10-15-18-79.yyz.redhat.com> Also see [rfc][icedtea-web] Reproducer for PR920. Removes recursive/non-recursive call distinction in findClass for CodeBaseLoader, because, IMO it is not necessary when you set the parent classloader in the super() call. Any explicit calls to findClass will not recurse indefinitely. Causes PR920 reproducer that I posted to pass, with no new regressions. Ch-ch-changes: 2012-07-10 Adam Domurad Fixes PR920, duplicate loading of classes in certain cases * NEWS: Added entry: Fixes PR920 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Remove recursive/non-recursive distinction. Add parent JNLPClassLoader to parent chain. Calling findClass directly turns out to be enough to avoid recursive behaviour. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch.patch Type: text/x-patch Size: 2173 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120710/21563296/patch.patch From bugzilla-daemon at icedtea.classpath.org Tue Jul 10 14:15:41 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 10 Jul 2012 21:15:41 +0000 Subject: [Bug 1027] DownloadService is not supported by IcedTea-Web In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1027 Saad Mohammad changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at icedtea.classpat |smohammad at redhat.com |h.org | -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120710/37851c92/attachment.html From Alan.Bateman at oracle.com Wed Jul 11 00:47:33 2012 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Wed, 11 Jul 2012 08:47:33 +0100 Subject: Native zlib libraries In-Reply-To: <3427b874-8c8c-4e7b-b4ec-1b8055e80342@zmail17.collab.prod.int.phx2.redhat.com> References: <3427b874-8c8c-4e7b-b4ec-1b8055e80342@zmail17.collab.prod.int.phx2.redhat.com> Message-ID: <4FFD2F95.90905@oracle.com> On 05/07/2012 17:11, Andrew Hughes wrote: > > ----- Original Message ----- >> Is there a way to get the native zlib libraries to get picked up >> instead of the hardcoded version within the JVM? >> >> -- >> Azeem Jiva >> @javawithjiva > We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get it > upstream. > > However, I don't see how this is related to HotSpot, as the zlib usage > is in the jdk tree. I think we need to (re)start the discussion on core-libs-dev with a view to eliminating the patches that the JDK has to zlib, see: http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java One of these changes relates to the zip64 support and I believe there are corner cases when inflating or deflating >2GB that won't work if using the system zlib. Sherman will likely recall the details. Given that the new build already supports using the system zlib (at least on Linux) then it would be good to sort this out so that it just works. -Alan From xueming.shen at oracle.com Wed Jul 11 01:19:13 2012 From: xueming.shen at oracle.com (Xueming Shen) Date: Wed, 11 Jul 2012 01:19:13 -0700 Subject: Native zlib libraries In-Reply-To: <4FFD2F95.90905@oracle.com> References: <3427b874-8c8c-4e7b-b4ec-1b8055e80342@zmail17.collab.prod.int.phx2.redhat.com> <4FFD2F95.90905@oracle.com> Message-ID: <4FFD3701.3060100@oracle.com> The zip64 support (total_in/out) part probably can be done at Java level (ignore the total_in/out in z_tream_s). Need to remove this dependency. Will take a look later. -Sherman On 7/11/2012 12:47 AM, Alan Bateman wrote: > On 05/07/2012 17:11, Andrew Hughes wrote: >> >> ----- Original Message ----- >>> Is there a way to get the native zlib libraries to get picked up >>> instead of the hardcoded version within the JVM? >>> >>> -- >>> Azeem Jiva >>> @javawithjiva >> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get it >> upstream. >> >> However, I don't see how this is related to HotSpot, as the zlib usage >> is in the jdk tree. > I think we need to (re)start the discussion on core-libs-dev with a > view to eliminating the patches that the JDK has to zlib, see: > > http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java > > > One of these changes relates to the zip64 support and I believe there > are corner cases when inflating or deflating >2GB that won't work if > using the system zlib. Sherman will likely recall the details. Given > that the new build already supports using the system zlib (at least on > Linux) then it would be good to sort this out so that it just works. > > -Alan > > > > > > From jvanek at icedtea.classpath.org Wed Jul 11 07:18:30 2012 From: jvanek at icedtea.classpath.org (jvanek at icedtea.classpath.org) Date: Wed, 11 Jul 2012 14:18:30 +0000 Subject: /hg/icedtea-web: try to close browser before kill it Message-ID: changeset 01544fb82384 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=01544fb82384 author: Jiri Vanek date: Wed Jul 11 16:18:58 2012 +0200 try to close browser before kill it diffstat: ChangeLog | 15 +++ tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java | 24 +++-- tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java | 38 +++++---- tests/reproducers/simple/CheckServices/srcs/CheckServices.java | 4 +- tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java | 15 ++- tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java | 36 +++++++- tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java | 4 - tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java | 4 +- 8 files changed, 92 insertions(+), 48 deletions(-) diffs (368 lines): diff -r 1ced587420b8 -r 01544fb82384 ChangeLog --- a/ChangeLog Tue Jul 10 10:41:17 2012 -0400 +++ b/ChangeLog Wed Jul 11 16:18:58 2012 +0200 @@ -1,3 +1,18 @@ +2012-07-11 Jiri Vanek + + try to close browser before kill it + * tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java: + * tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java: + * tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java + (evaluateSignedApplet) addapted to properly closed browser + * tests/reproducers/simple/CheckServices/srcs/CheckServices.java: + removed fixme section as it shuld work now + * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java + (destroyProcess) new method, launching kill with SIGTERM before clasical + process.destroy() + * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: + removed Set terminated, should be removed long ago + 2012-07-10 Adam Domurad Refactor JNLPFile#launchType into its own interface type (as opposed to diff -r 1ced587420b8 -r 01544fb82384 tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java --- a/tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java Tue Jul 10 10:41:17 2012 -0400 +++ b/tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java Wed Jul 11 16:18:58 2012 +0200 @@ -38,8 +38,8 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; +import net.sourceforge.jnlp.ProcessResult; import net.sourceforge.jnlp.ServerAccess; -import net.sourceforge.jnlp.ServerAccess.ProcessResult; import net.sourceforge.jnlp.browsertesting.BrowserTest; import net.sourceforge.jnlp.browsertesting.Browsers; import net.sourceforge.jnlp.annotations.TestInBrowsers; @@ -53,13 +53,13 @@ @Test public void AppletTestSignedTest() throws Exception { - ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/AppletTestSigned.jnlp"); - evaluateSignedApplet(pr); + ProcessResult pr = server.executeJavawsHeadless(l, "/AppletTestSigned.jnlp"); + evaluateSignedApplet(pr, true); Assert.assertFalse(pr.wasTerminated); Assert.assertEquals((Integer) 0, pr.returnValue); } - private void evaluateSignedApplet(ProcessResult pr) { + private void evaluateSignedApplet(ProcessResult pr, boolean javawsApplet) { String s3 = "AppletTestSigned was initialised"; Assert.assertTrue("AppletTestSigned stdout should contain " + s3 + " but didn't", pr.stdout.contains(s3)); String s0 = "AppletTestSigned was started"; @@ -68,14 +68,18 @@ Assert.assertTrue("AppletTestSigned stdout should contain " + s1 + " but didn't", pr.stdout.contains(s1)); String s2 = "value2"; Assert.assertTrue("AppletTestSigned stdout should contain " + s2 + " but didn't", pr.stdout.contains(s2)); - String s4 = "AppletTestSigned was stopped"; - Assert.assertFalse("AppletTestSigned stdout shouldn't contain " + s4 + " but did", pr.stdout.contains(s4)); - String s5 = "AppletTestSigned will be destroyed"; - Assert.assertFalse("AppletTestSigned stdout shouldn't contain " + s5 + " but did", pr.stdout.contains(s5)); String ss = "xception"; Assert.assertFalse("AppletTestSigned stderr should not contain " + ss + " but did", pr.stderr.contains(ss)); String s7 = "AppletTestSigned killing himself after 2000 ms of life"; Assert.assertTrue("AppletTestSigned stdout should contain " + s7 + " but didn't", pr.stdout.contains(s7)); + if (!javawsApplet) { + /*this is working correctly in most browser, but not in all. temporarily disabling + String s4 = "AppletTestSigned was stopped"; + Assert.assertTrue("AppletTestSigned stdout shouldt contain " + s4 + " but did", pr.stdout.contains(s4)); + String s5 = "AppletTestSigned will be destroyed"; + Assert.assertTrue("AppletTestSigned stdout shouldt contain " + s5 + " but did", pr.stdout.contains(s5)); + */ + } } @Test @@ -83,8 +87,8 @@ public void AppletTestSignedFirefoxTest() throws Exception { ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { - ServerAccess.ProcessResult pr = server.executeBrowser("/AppletTestSigned.html"); - evaluateSignedApplet(pr); + ProcessResult pr = server.executeBrowser("/AppletTestSigned.html"); + evaluateSignedApplet(pr, false); Assert.assertTrue(pr.wasTerminated); //Assert.assertEquals((Integer) 0, pr.returnValue); due to destroy is null } finally { diff -r 1ced587420b8 -r 01544fb82384 tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java --- a/tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java Tue Jul 10 10:41:17 2012 -0400 +++ b/tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java Wed Jul 11 16:18:58 2012 +0200 @@ -35,8 +35,8 @@ exception statement from your version. */ +import net.sourceforge.jnlp.ProcessResult; import net.sourceforge.jnlp.ServerAccess; -import net.sourceforge.jnlp.ServerAccess.ProcessResult; import net.sourceforge.jnlp.browsertesting.BrowserTest; import net.sourceforge.jnlp.browsertesting.Browsers; import net.sourceforge.jnlp.annotations.Bug; @@ -52,11 +52,11 @@ @TestInBrowsers(testIn = {Browsers.googleChrome}) @NeedsDisplay public void doubleChrome() throws Exception { - server.PROCESS_TIMEOUT = 30 * 1000; + ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { //System.out.println("connecting AppletInFirefoxTest request in " + getBrowser().toString()); //just verify loging is recording browser - ServerAccess.ProcessResult pr1 = server.executeBrowser("/appletAutoTests.html"); + ProcessResult pr1 = server.executeBrowser("/appletAutoTests.html"); if (pr1.process == null) { Assert.assertTrue("If proces was null here, then google-chrome had to not exist, and so " + ServerAccess.UNSET_BROWSER @@ -65,28 +65,28 @@ pr1.deadlyException.getMessage().contains(ServerAccess.UNSET_BROWSER)); return; } - evaluateApplet(pr1); + evaluateApplet(pr1,false); Assert.assertTrue(pr1.wasTerminated); //System.out.println("connecting AppletInFirefoxTest request in " + getBrowser().toString()); // just verify loging is recording browser ServerAccess.ProcessResult pr = server.executeBrowser("/appletAutoTests.html"); - evaluateApplet(pr); + evaluateApplet(pr,false); Assert.assertTrue(pr.wasTerminated); } finally { - server.PROCESS_TIMEOUT = 20 * 1000; //back to normal + ServerAccess.PROCESS_TIMEOUT = 20 * 1000; //back to normal } } @Test @NeedsDisplay public void AppletTest() throws Exception { - ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/AppletTest.jnlp"); - evaluateApplet(pr); + ProcessResult pr = server.executeJavawsHeadless(null, "/AppletTest.jnlp"); + evaluateApplet(pr,true); Assert.assertFalse(pr.wasTerminated); Assert.assertEquals((Integer) 0, pr.returnValue); } - private void evaluateApplet(ProcessResult pr) { + private void evaluateApplet(ProcessResult pr, boolean javawsApplet) { String s3 = "applet was initialised"; Assert.assertTrue("AppletTest stdout should contains " + s3 + " bud didn't", pr.stdout.contains(s3)); String s0 = "applet was started"; @@ -95,14 +95,18 @@ Assert.assertTrue("AppletTest stdout should contains " + s1 + " bud didn't", pr.stdout.contains(s1)); String s2 = "value2"; Assert.assertTrue("AppletTest stdout should contains " + s2 + " bud didn't", pr.stdout.contains(s2)); - String s4 = "applet was stopped"; - Assert.assertFalse("AppletTest stdout shouldn't contains " + s4 + " bud did", pr.stdout.contains(s4)); - String s5 = "applet will be destroyed"; - Assert.assertFalse("AppletTest stdout shouldn't contains " + s5 + " bud did", pr.stdout.contains(s5)); String ss = "xception"; Assert.assertFalse("AppletTest stderr should not contains " + ss + " but did", pr.stderr.contains(ss)); String s7 = "Aplet killing himself after 2000 ms of life"; Assert.assertTrue("AppletTest stdout should contains " + s7 + " bud didn't", pr.stdout.contains(s7)); + if (!javawsApplet) { + /*this is working correctly in most browser, but not in all. temporarily disabling + String s4 = "applet was stopped"; + Assert.assertTrue("AppletTest stdout should contains " + s4 + " bud did't", pr.stdout.contains(s4)); + String s5 = "applet will be destroyed"; + Assert.assertTrue("AppletTest stdout should contains " + s5 + " bud did't", pr.stdout.contains(s5)); + */ + } } @Test @@ -113,8 +117,8 @@ //just verify loging is recordingb rowser ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { - ServerAccess.ProcessResult pr = server.executeBrowser("/appletAutoTests2.html"); - evaluateApplet(pr); + ProcessResult pr = server.executeBrowser("/appletAutoTests2.html"); + evaluateApplet(pr,false); Assert.assertTrue(pr.wasTerminated); //Assert.assertEquals((Integer) 0, pr.returnValue); due to destroy is null } finally { @@ -129,9 +133,9 @@ //just verify loging is recording browser ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { - ServerAccess.ProcessResult pr = server.executeBrowser("/appletAutoTests.html"); + ProcessResult pr = server.executeBrowser("/appletAutoTests.html"); pr.process.destroy(); - evaluateApplet(pr); + evaluateApplet(pr,false); Assert.assertTrue(pr.wasTerminated); //Assert.assertEquals((Integer) 0, pr.returnValue); due to destroy is null } finally { diff -r 1ced587420b8 -r 01544fb82384 tests/reproducers/simple/CheckServices/srcs/CheckServices.java --- a/tests/reproducers/simple/CheckServices/srcs/CheckServices.java Tue Jul 10 10:41:17 2012 -0400 +++ b/tests/reproducers/simple/CheckServices/srcs/CheckServices.java Wed Jul 11 16:18:58 2012 +0200 @@ -93,7 +93,7 @@ killer.start(); } - /* FIXME: Check ServiceManagaer is setup once stop/destroy can be called. + @Override public void stop() { System.out.println("Applet is stopping."); @@ -105,5 +105,5 @@ System.out.println("Applet is destorying itself."); checkSetup("destroy()"); } - */ + } diff -r 1ced587420b8 -r 01544fb82384 tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java --- a/tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java Tue Jul 10 10:41:17 2012 -0400 +++ b/tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java Wed Jul 11 16:18:58 2012 +0200 @@ -35,7 +35,7 @@ exception statement from your version. */ -import net.sourceforge.jnlp.ServerAccess.ProcessResult; +import net.sourceforge.jnlp.ProcessResult; import net.sourceforge.jnlp.annotations.Bug; import net.sourceforge.jnlp.annotations.NeedsDisplay; import net.sourceforge.jnlp.annotations.TestInBrowsers; @@ -48,20 +48,21 @@ @Bug(id="http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-February/017153.html") public class CheckServicesTests extends BrowserTest{ - public void evaluateApplet(ProcessResult pr) { + public void evaluateApplet(ProcessResult pr, boolean applet) { String s0 = "Codebase for applet was found in constructor"; Assert.assertTrue("CheckServices stdout should contain `" + s0 + "' but didn't.", pr.stdout.contains(s0)); String s1 = "Codebase for applet was found in init()"; Assert.assertTrue("CheckServices stdout should contain `" + s1 + "' but didn't.", pr.stdout.contains(s1)); String s2 = "Codebase for applet was found in start()"; Assert.assertTrue("CheckServices stdout should contain `" + s2 + "' but didn't.", pr.stdout.contains(s2)); - /* FIXME: Once the awt robot can close the applet window (i.e. send - * a stop event), stdout should be checked for these asserts. + if (applet){ + /*this is working correctly in most browser, but not in all. temporarily disabling String s3 = "Codebase for applet was found in stop()"; Assert.assertTrue("CheckServices stdout should contain `" + s3 + "' but didn't.", pr.stdout.contains(s3)); String s4 = "Codebase for applet was found in destroy()"; Assert.assertTrue("CheckServices stdout should contain `" + s4 + "' but didn't.", pr.stdout.contains(s4)); - */ + */ + } String s5 = "Exception occurred with null codebase in"; Assert.assertFalse("CheckServices stderr should not contain `" + s5 + "' but did.", pr.stdout.contains(s5)); String s6 = "Applet killing itself after 2000 ms of life"; @@ -72,7 +73,7 @@ @NeedsDisplay public void CheckWebstartServices() throws Exception { ProcessResult pr = server.executeJavaws(null, "/CheckServices.jnlp"); - evaluateApplet(pr); + evaluateApplet(pr, false); Assert.assertFalse(pr.wasTerminated); Assert.assertEquals((Integer)0, pr.returnValue); } @@ -82,7 +83,7 @@ @TestInBrowsers(testIn={Browsers.one}) public void CheckPluginJNLPHServices() throws Exception { ProcessResult pr = server.executeBrowser(null, "/CheckPluginServices.html"); - evaluateApplet(pr); + evaluateApplet(pr,false); Assert.assertTrue(pr.wasTerminated); } } diff -r 1ced587420b8 -r 01544fb82384 tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java --- a/tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java Tue Jul 10 10:41:17 2012 -0400 +++ b/tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java Wed Jul 11 16:18:58 2012 +0200 @@ -34,8 +34,11 @@ obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ +package net.sourceforge.jnlp; -package net.sourceforge.jnlp; +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.List; /** * class which timeout any ThreadedProcess. This killing of 'thread with process' replaced not working process.destroy(). @@ -112,14 +115,10 @@ ServerAccess.logErrorReprint("Timed out " + p.toString() + " " + "null .. killing " + p.getCommandLine() + ": "); } wasTerminated = true; - p.interrupt(); - while (!ServerAccess.terminated.contains(p)) { - Thread.sleep(100); - } if (p.getP() != null) { try { if (!skipInstedOfDesroy) { - p.getP().destroy(); + destroyProcess(p); } } catch (Throwable ex) { if (p.deadlyException == null) { @@ -128,6 +127,10 @@ ex.printStackTrace(); } } + p.interrupt(); +// while (!ServerAccess.terminated.contains(p)) { +// Thread.sleep(100); +// } if (p.getP() != null) { ServerAccess.logErrorReprint("Timed out " + p.toString() + " " + p.getP().toString() + " .. killed " + p.getCommandLine()); } else { @@ -156,4 +159,25 @@ ServerAccess.logNoReprint("assassin for non existing job termination " + wasTerminated); } } + + public static void destroyProcess(ThreadedProcess pp) { + Process p = pp.getP(); + try { + Field f = p.getClass().getDeclaredField("pid"); + f.setAccessible(true); + String pid = (f.get(p)).toString(); + List ll=new ArrayList(4); + ll.add("kill"); + ll.add("-s"); + ll.add("SIGTERM"); + ll.add(pid); + ServerAccess.executeProcess(ll);//sync, but acctually release + //before affected application close + Thread.sleep(1000); + } catch (Exception ex) { + ServerAccess.logException(ex); + } finally { + p.destroy(); + } + } } diff -r 1ced587420b8 -r 01544fb82384 tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java --- a/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java Tue Jul 10 10:41:17 2012 -0400 +++ b/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java Wed Jul 11 16:18:58 2012 +0200 @@ -111,10 +111,6 @@ */ public static long PROCESS_TIMEOUT = 20 * 1000;//ms /** - * all terminated processes are stored here. As wee need to 'wait' to termination to be finished. - */ - static Set terminated = new HashSet(); - /** * this flag is indicating whether output of executeProcess should be logged. By default true. */ public static boolean PROCESS_LOG = true; diff -r 1ced587420b8 -r 01544fb82384 tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java --- a/tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java Tue Jul 10 10:41:17 2012 -0400 +++ b/tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java Wed Jul 11 16:18:58 2012 +0200 @@ -125,10 +125,10 @@ //add to the set of terminated threaded processes deadlyException = ex; ServerAccess.logException(deadlyException, false); - ServerAccess.terminated.add(this); + //ServerAccess.terminated.add(this); } else { //happens when non-existing process is launched, is causing p null! - ServerAccess.terminated.add(this); + //ServerAccess.terminated.add(this); deadlyException = ex; ServerAccess.logException(deadlyException, false); throw new RuntimeException(ex); From jvanek at icedtea.classpath.org Wed Jul 11 07:19:07 2012 From: jvanek at icedtea.classpath.org (jvanek at icedtea.classpath.org) Date: Wed, 11 Jul 2012 14:19:07 +0000 Subject: /hg/release/icedtea-web-1.3: try to close browser before kill it Message-ID: changeset 270a09e38dfb in /hg/release/icedtea-web-1.3 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.3?cmd=changeset;node=270a09e38dfb author: Jiri Vanek date: Wed Jul 11 16:19:27 2012 +0200 try to close browser before kill it diffstat: ChangeLog | 15 +++ tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java | 24 +++-- tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java | 38 +++++---- tests/reproducers/simple/CheckServices/srcs/CheckServices.java | 4 +- tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java | 15 ++- tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java | 36 +++++++- tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java | 4 - tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java | 4 +- 8 files changed, 92 insertions(+), 48 deletions(-) diffs (368 lines): diff -r 13ca1c870b92 -r 270a09e38dfb ChangeLog --- a/ChangeLog Mon Jul 09 15:45:42 2012 -0400 +++ b/ChangeLog Wed Jul 11 16:19:27 2012 +0200 @@ -1,3 +1,18 @@ +2012-07-11 Jiri Vanek + + try to close browser before kill it + * tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java: + * tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java: + * tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java + (evaluateSignedApplet) addapted to properly closed browser + * tests/reproducers/simple/CheckServices/srcs/CheckServices.java: + removed fixme section as it shuld work now + * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java + (destroyProcess) new method, launching kill with SIGTERM before clasical + process.destroy() + * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: + removed Set terminated, should be removed long ago + 2012-07-09 Saad Mohammad * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeExtensions): diff -r 13ca1c870b92 -r 270a09e38dfb tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java --- a/tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java Mon Jul 09 15:45:42 2012 -0400 +++ b/tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java Wed Jul 11 16:19:27 2012 +0200 @@ -38,8 +38,8 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; +import net.sourceforge.jnlp.ProcessResult; import net.sourceforge.jnlp.ServerAccess; -import net.sourceforge.jnlp.ServerAccess.ProcessResult; import net.sourceforge.jnlp.browsertesting.BrowserTest; import net.sourceforge.jnlp.browsertesting.Browsers; import net.sourceforge.jnlp.annotations.TestInBrowsers; @@ -53,13 +53,13 @@ @Test public void AppletTestSignedTest() throws Exception { - ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/AppletTestSigned.jnlp"); - evaluateSignedApplet(pr); + ProcessResult pr = server.executeJavawsHeadless(l, "/AppletTestSigned.jnlp"); + evaluateSignedApplet(pr, true); Assert.assertFalse(pr.wasTerminated); Assert.assertEquals((Integer) 0, pr.returnValue); } - private void evaluateSignedApplet(ProcessResult pr) { + private void evaluateSignedApplet(ProcessResult pr, boolean javawsApplet) { String s3 = "AppletTestSigned was initialised"; Assert.assertTrue("AppletTestSigned stdout should contain " + s3 + " but didn't", pr.stdout.contains(s3)); String s0 = "AppletTestSigned was started"; @@ -68,14 +68,18 @@ Assert.assertTrue("AppletTestSigned stdout should contain " + s1 + " but didn't", pr.stdout.contains(s1)); String s2 = "value2"; Assert.assertTrue("AppletTestSigned stdout should contain " + s2 + " but didn't", pr.stdout.contains(s2)); - String s4 = "AppletTestSigned was stopped"; - Assert.assertFalse("AppletTestSigned stdout shouldn't contain " + s4 + " but did", pr.stdout.contains(s4)); - String s5 = "AppletTestSigned will be destroyed"; - Assert.assertFalse("AppletTestSigned stdout shouldn't contain " + s5 + " but did", pr.stdout.contains(s5)); String ss = "xception"; Assert.assertFalse("AppletTestSigned stderr should not contain " + ss + " but did", pr.stderr.contains(ss)); String s7 = "AppletTestSigned killing himself after 2000 ms of life"; Assert.assertTrue("AppletTestSigned stdout should contain " + s7 + " but didn't", pr.stdout.contains(s7)); + if (!javawsApplet) { + /*this is working correctly in most browser, but not in all. temporarily disabling + String s4 = "AppletTestSigned was stopped"; + Assert.assertTrue("AppletTestSigned stdout shouldt contain " + s4 + " but did", pr.stdout.contains(s4)); + String s5 = "AppletTestSigned will be destroyed"; + Assert.assertTrue("AppletTestSigned stdout shouldt contain " + s5 + " but did", pr.stdout.contains(s5)); + */ + } } @Test @@ -83,8 +87,8 @@ public void AppletTestSignedFirefoxTest() throws Exception { ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { - ServerAccess.ProcessResult pr = server.executeBrowser("/AppletTestSigned.html"); - evaluateSignedApplet(pr); + ProcessResult pr = server.executeBrowser("/AppletTestSigned.html"); + evaluateSignedApplet(pr, false); Assert.assertTrue(pr.wasTerminated); //Assert.assertEquals((Integer) 0, pr.returnValue); due to destroy is null } finally { diff -r 13ca1c870b92 -r 270a09e38dfb tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java --- a/tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java Mon Jul 09 15:45:42 2012 -0400 +++ b/tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java Wed Jul 11 16:19:27 2012 +0200 @@ -35,8 +35,8 @@ exception statement from your version. */ +import net.sourceforge.jnlp.ProcessResult; import net.sourceforge.jnlp.ServerAccess; -import net.sourceforge.jnlp.ServerAccess.ProcessResult; import net.sourceforge.jnlp.browsertesting.BrowserTest; import net.sourceforge.jnlp.browsertesting.Browsers; import net.sourceforge.jnlp.annotations.Bug; @@ -52,11 +52,11 @@ @TestInBrowsers(testIn = {Browsers.googleChrome}) @NeedsDisplay public void doubleChrome() throws Exception { - server.PROCESS_TIMEOUT = 30 * 1000; + ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { //System.out.println("connecting AppletInFirefoxTest request in " + getBrowser().toString()); //just verify loging is recording browser - ServerAccess.ProcessResult pr1 = server.executeBrowser("/appletAutoTests.html"); + ProcessResult pr1 = server.executeBrowser("/appletAutoTests.html"); if (pr1.process == null) { Assert.assertTrue("If proces was null here, then google-chrome had to not exist, and so " + ServerAccess.UNSET_BROWSER @@ -65,28 +65,28 @@ pr1.deadlyException.getMessage().contains(ServerAccess.UNSET_BROWSER)); return; } - evaluateApplet(pr1); + evaluateApplet(pr1,false); Assert.assertTrue(pr1.wasTerminated); //System.out.println("connecting AppletInFirefoxTest request in " + getBrowser().toString()); // just verify loging is recording browser ServerAccess.ProcessResult pr = server.executeBrowser("/appletAutoTests.html"); - evaluateApplet(pr); + evaluateApplet(pr,false); Assert.assertTrue(pr.wasTerminated); } finally { - server.PROCESS_TIMEOUT = 20 * 1000; //back to normal + ServerAccess.PROCESS_TIMEOUT = 20 * 1000; //back to normal } } @Test @NeedsDisplay public void AppletTest() throws Exception { - ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/AppletTest.jnlp"); - evaluateApplet(pr); + ProcessResult pr = server.executeJavawsHeadless(null, "/AppletTest.jnlp"); + evaluateApplet(pr,true); Assert.assertFalse(pr.wasTerminated); Assert.assertEquals((Integer) 0, pr.returnValue); } - private void evaluateApplet(ProcessResult pr) { + private void evaluateApplet(ProcessResult pr, boolean javawsApplet) { String s3 = "applet was initialised"; Assert.assertTrue("AppletTest stdout should contains " + s3 + " bud didn't", pr.stdout.contains(s3)); String s0 = "applet was started"; @@ -95,14 +95,18 @@ Assert.assertTrue("AppletTest stdout should contains " + s1 + " bud didn't", pr.stdout.contains(s1)); String s2 = "value2"; Assert.assertTrue("AppletTest stdout should contains " + s2 + " bud didn't", pr.stdout.contains(s2)); - String s4 = "applet was stopped"; - Assert.assertFalse("AppletTest stdout shouldn't contains " + s4 + " bud did", pr.stdout.contains(s4)); - String s5 = "applet will be destroyed"; - Assert.assertFalse("AppletTest stdout shouldn't contains " + s5 + " bud did", pr.stdout.contains(s5)); String ss = "xception"; Assert.assertFalse("AppletTest stderr should not contains " + ss + " but did", pr.stderr.contains(ss)); String s7 = "Aplet killing himself after 2000 ms of life"; Assert.assertTrue("AppletTest stdout should contains " + s7 + " bud didn't", pr.stdout.contains(s7)); + if (!javawsApplet) { + /*this is working correctly in most browser, but not in all. temporarily disabling + String s4 = "applet was stopped"; + Assert.assertTrue("AppletTest stdout should contains " + s4 + " bud did't", pr.stdout.contains(s4)); + String s5 = "applet will be destroyed"; + Assert.assertTrue("AppletTest stdout should contains " + s5 + " bud did't", pr.stdout.contains(s5)); + */ + } } @Test @@ -113,8 +117,8 @@ //just verify loging is recordingb rowser ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { - ServerAccess.ProcessResult pr = server.executeBrowser("/appletAutoTests2.html"); - evaluateApplet(pr); + ProcessResult pr = server.executeBrowser("/appletAutoTests2.html"); + evaluateApplet(pr,false); Assert.assertTrue(pr.wasTerminated); //Assert.assertEquals((Integer) 0, pr.returnValue); due to destroy is null } finally { @@ -129,9 +133,9 @@ //just verify loging is recording browser ServerAccess.PROCESS_TIMEOUT = 30 * 1000; try { - ServerAccess.ProcessResult pr = server.executeBrowser("/appletAutoTests.html"); + ProcessResult pr = server.executeBrowser("/appletAutoTests.html"); pr.process.destroy(); - evaluateApplet(pr); + evaluateApplet(pr,false); Assert.assertTrue(pr.wasTerminated); //Assert.assertEquals((Integer) 0, pr.returnValue); due to destroy is null } finally { diff -r 13ca1c870b92 -r 270a09e38dfb tests/reproducers/simple/CheckServices/srcs/CheckServices.java --- a/tests/reproducers/simple/CheckServices/srcs/CheckServices.java Mon Jul 09 15:45:42 2012 -0400 +++ b/tests/reproducers/simple/CheckServices/srcs/CheckServices.java Wed Jul 11 16:19:27 2012 +0200 @@ -93,7 +93,7 @@ killer.start(); } - /* FIXME: Check ServiceManagaer is setup once stop/destroy can be called. + @Override public void stop() { System.out.println("Applet is stopping."); @@ -105,5 +105,5 @@ System.out.println("Applet is destorying itself."); checkSetup("destroy()"); } - */ + } diff -r 13ca1c870b92 -r 270a09e38dfb tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java --- a/tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java Mon Jul 09 15:45:42 2012 -0400 +++ b/tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java Wed Jul 11 16:19:27 2012 +0200 @@ -35,7 +35,7 @@ exception statement from your version. */ -import net.sourceforge.jnlp.ServerAccess.ProcessResult; +import net.sourceforge.jnlp.ProcessResult; import net.sourceforge.jnlp.annotations.Bug; import net.sourceforge.jnlp.annotations.NeedsDisplay; import net.sourceforge.jnlp.annotations.TestInBrowsers; @@ -48,20 +48,21 @@ @Bug(id="http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-February/017153.html") public class CheckServicesTests extends BrowserTest{ - public void evaluateApplet(ProcessResult pr) { + public void evaluateApplet(ProcessResult pr, boolean applet) { String s0 = "Codebase for applet was found in constructor"; Assert.assertTrue("CheckServices stdout should contain `" + s0 + "' but didn't.", pr.stdout.contains(s0)); String s1 = "Codebase for applet was found in init()"; Assert.assertTrue("CheckServices stdout should contain `" + s1 + "' but didn't.", pr.stdout.contains(s1)); String s2 = "Codebase for applet was found in start()"; Assert.assertTrue("CheckServices stdout should contain `" + s2 + "' but didn't.", pr.stdout.contains(s2)); - /* FIXME: Once the awt robot can close the applet window (i.e. send - * a stop event), stdout should be checked for these asserts. + if (applet){ + /*this is working correctly in most browser, but not in all. temporarily disabling String s3 = "Codebase for applet was found in stop()"; Assert.assertTrue("CheckServices stdout should contain `" + s3 + "' but didn't.", pr.stdout.contains(s3)); String s4 = "Codebase for applet was found in destroy()"; Assert.assertTrue("CheckServices stdout should contain `" + s4 + "' but didn't.", pr.stdout.contains(s4)); - */ + */ + } String s5 = "Exception occurred with null codebase in"; Assert.assertFalse("CheckServices stderr should not contain `" + s5 + "' but did.", pr.stdout.contains(s5)); String s6 = "Applet killing itself after 2000 ms of life"; @@ -72,7 +73,7 @@ @NeedsDisplay public void CheckWebstartServices() throws Exception { ProcessResult pr = server.executeJavaws(null, "/CheckServices.jnlp"); - evaluateApplet(pr); + evaluateApplet(pr, false); Assert.assertFalse(pr.wasTerminated); Assert.assertEquals((Integer)0, pr.returnValue); } @@ -82,7 +83,7 @@ @TestInBrowsers(testIn={Browsers.one}) public void CheckPluginJNLPHServices() throws Exception { ProcessResult pr = server.executeBrowser(null, "/CheckPluginServices.html"); - evaluateApplet(pr); + evaluateApplet(pr,false); Assert.assertTrue(pr.wasTerminated); } } diff -r 13ca1c870b92 -r 270a09e38dfb tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java --- a/tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java Mon Jul 09 15:45:42 2012 -0400 +++ b/tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java Wed Jul 11 16:19:27 2012 +0200 @@ -34,8 +34,11 @@ obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ +package net.sourceforge.jnlp; -package net.sourceforge.jnlp; +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.List; /** * class which timeout any ThreadedProcess. This killing of 'thread with process' replaced not working process.destroy(). @@ -112,14 +115,10 @@ ServerAccess.logErrorReprint("Timed out " + p.toString() + " " + "null .. killing " + p.getCommandLine() + ": "); } wasTerminated = true; - p.interrupt(); - while (!ServerAccess.terminated.contains(p)) { - Thread.sleep(100); - } if (p.getP() != null) { try { if (!skipInstedOfDesroy) { - p.getP().destroy(); + destroyProcess(p); } } catch (Throwable ex) { if (p.deadlyException == null) { @@ -128,6 +127,10 @@ ex.printStackTrace(); } } + p.interrupt(); +// while (!ServerAccess.terminated.contains(p)) { +// Thread.sleep(100); +// } if (p.getP() != null) { ServerAccess.logErrorReprint("Timed out " + p.toString() + " " + p.getP().toString() + " .. killed " + p.getCommandLine()); } else { @@ -156,4 +159,25 @@ ServerAccess.logNoReprint("assassin for non existing job termination " + wasTerminated); } } + + public static void destroyProcess(ThreadedProcess pp) { + Process p = pp.getP(); + try { + Field f = p.getClass().getDeclaredField("pid"); + f.setAccessible(true); + String pid = (f.get(p)).toString(); + List ll=new ArrayList(4); + ll.add("kill"); + ll.add("-s"); + ll.add("SIGTERM"); + ll.add(pid); + ServerAccess.executeProcess(ll);//sync, but acctually release + //before affected application close + Thread.sleep(1000); + } catch (Exception ex) { + ServerAccess.logException(ex); + } finally { + p.destroy(); + } + } } diff -r 13ca1c870b92 -r 270a09e38dfb tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java --- a/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java Mon Jul 09 15:45:42 2012 -0400 +++ b/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java Wed Jul 11 16:19:27 2012 +0200 @@ -111,10 +111,6 @@ */ public static long PROCESS_TIMEOUT = 20 * 1000;//ms /** - * all terminated processes are stored here. As wee need to 'wait' to termination to be finished. - */ - static Set terminated = new HashSet(); - /** * this flag is indicating whether output of executeProcess should be logged. By default true. */ public static boolean PROCESS_LOG = true; diff -r 13ca1c870b92 -r 270a09e38dfb tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java --- a/tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java Mon Jul 09 15:45:42 2012 -0400 +++ b/tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java Wed Jul 11 16:19:27 2012 +0200 @@ -125,10 +125,10 @@ //add to the set of terminated threaded processes deadlyException = ex; ServerAccess.logException(deadlyException, false); - ServerAccess.terminated.add(this); + //ServerAccess.terminated.add(this); } else { //happens when non-existing process is launched, is causing p null! - ServerAccess.terminated.add(this); + //ServerAccess.terminated.add(this); deadlyException = ex; ServerAccess.logException(deadlyException, false); throw new RuntimeException(ex); From omajid at redhat.com Wed Jul 11 13:30:24 2012 From: omajid at redhat.com (Omair Majid) Date: Wed, 11 Jul 2012 16:30:24 -0400 Subject: Repopulating icedtea.classpath.org/hg/pulseaudio (was Re: RFC: PR1050 - Stream objects not garbage collected?) In-Reply-To: References: Message-ID: <4FFDE260.8050006@redhat.com> On 06/28/2012 07:20 PM, Andrew Hughes wrote: > I don't think taking it upstream to OpenJDK8 is the right approach. > It won't solve this problem (fixes will still need to go across at > least three trees). In fact, it'll make things harder as we'll then > need to get reviewer approval and an Oracle bug ID for every fix. Yeah, this is quite unfortunate. But it's also true for all other code that we push upstream (including zero). > I think a better approach would be to reinvigorate the IcedTea PulseAudio > repository or, preferably, setup an upstream OpenJDK project for it, > as you suggested on IRC. Having it tied to specific JDK versions is a > maintenance nightmare. > > I believe IcedTea-Web has worked out well under its current model and > the PulseAudio addon would do well to follow in its footsteps. > What about splitting it and moving it back to icedtea.classpath.org/hg/pulseaudio then. It can be maintained there for multiple icedtea versions/releases. Does anyone have any concerns or objections? Unlike icedtea-web, which runs standalone, we will need to modify configure in icedtea{6,7,8} to accept paths to the built pulse-java jar and so so it can be integrated properly. Cheers, Omair From azeem.jiva at oracle.com Wed Jul 11 13:20:22 2012 From: azeem.jiva at oracle.com (Azeem Jiva) Date: Wed, 11 Jul 2012 15:20:22 -0500 Subject: Native zlib libraries In-Reply-To: <4FFD2F95.90905@oracle.com> References: <3427b874-8c8c-4e7b-b4ec-1b8055e80342@zmail17.collab.prod.int.phx2.redhat.com> <4FFD2F95.90905@oracle.com> Message-ID: <4FFDE006.4050706@oracle.com> > I think we need to (re)start the discussion on core-libs-dev with a > view to eliminating the patches that the JDK has to zlib, see: > > http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java > > > One of these changes relates to the zip64 support and I believe there > are corner cases when inflating or deflating >2GB that won't work if > using the system zlib. Sherman will likely recall the details. Given > that the new build already supports using the system zlib (at least on > Linux) then it would be good to sort this out so that it just works. > > -Alan The reason I brought up this issue, is that we'd like the ability to swap out the zlib library with ones that have specialized acceleration capabilities. If the ability to swap zlib libraries can be made dynamic that would make it easier, although I'm not sure how integrated the libraries are. From dalibor.topic at oracle.com Thu Jul 12 02:50:37 2012 From: dalibor.topic at oracle.com (Dalibor Topic) Date: Thu, 12 Jul 2012 11:50:37 +0200 Subject: openjdk jre in firefox In-Reply-To: <34129201.post@talk.nabble.com> References: <34129201.post@talk.nabble.com> Message-ID: <4FFE9DED.7090007@oracle.com> Bcc:ing hotspot-runtime-dev, and CC:ing distro-pkg-dev instead. On 7/8/12 7:32 AM, manit123 wrote: > > hi , > I am using tiny core > I downloaded & installed openjdk-7-jre.tcz from repository. > Icedtea plugin is not available in repository. > 'java -version' says > [code] > openjdk version "1.7.0-internal" > OpenJDK Runtime Environment (build 1.7.0-internal-tc_2010_01_30_13_43-b00) > OpenJDK Server VM (build 17.0-b08, mixed mode) > [/code] > How do I make firefox 13 recognise this ? > I have used sun/oracle jre in which you have to make a link to > libjavaplugin_oji.so & libjpnp.so in ~/.mozilla/plugins/. > In openjdk I found > /tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/jre/lib/i386/libjava.so > /tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/jre/lib/i386/libjava_crw_demo.so > > Can I do something manually so that my web browser recognises openjdk ? > -- Oracle Dalibor Topic | Principal Product Manager Phone: +494089091214 | Mobile: +491737185961 Oracle Java Platform Group ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | 20097 Hamburg ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstr. 25, D-80992 M?nchen Registergericht: Amtsgericht M?nchen, HRA 95603 Gesch?ftsf?hrer: J?rgen Kunz Komplement?rin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher Green Oracle Oracle is committed to developing practices and products that help protect the environment From jvanek at redhat.com Thu Jul 12 03:06:36 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Thu, 12 Jul 2012 12:06:36 +0200 Subject: openjdk jre in firefox In-Reply-To: <4FFE9DED.7090007@oracle.com> References: <34129201.post@talk.nabble.com> <4FFE9DED.7090007@oracle.com> Message-ID: <4FFEA1AC.2090708@redhat.com> On 07/12/2012 11:50 AM, Dalibor Topic wrote: > Bcc:ing hotspot-runtime-dev, and CC:ing distro-pkg-dev instead. > > On 7/8/12 7:32 AM, manit123 wrote: >> >> hi , >> I am using tiny core >> I downloaded & installed openjdk-7-jre.tcz from repository. >> Icedtea plugin is not available in repository. Hi! Icedtea plugin is separate project, and is called IcedTea-web. When you have it installed, again the only stuff is to make link to Mozilla plugins directory. Follow http://icedtea.classpath.org/wiki/IcedTea-Webfor more information. Hopes it helps J. >> 'java -version' says >> [code] >> openjdk version "1.7.0-internal" >> OpenJDK Runtime Environment (build 1.7.0-internal-tc_2010_01_30_13_43-b00) >> OpenJDK Server VM (build 17.0-b08, mixed mode) >> [/code] >> How do I make firefox 13 recognise this ? >> I have used sun/oracle jre in which you have to make a link to >> libjavaplugin_oji.so & libjpnp.so in ~/.mozilla/plugins/. >> In openjdk I found >> /tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/jre/lib/i386/libjava.so >> /tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/jre/lib/i386/libjava_crw_demo.so >> >> Can I do something manually so that my web browser recognises openjdk ? >> > > From xerxes at zafena.se Thu Jul 12 03:27:20 2012 From: xerxes at zafena.se (=?ISO-8859-1?Q?Xerxes_R=E5nby?=) Date: Thu, 12 Jul 2012 12:27:20 +0200 Subject: openjdk jre in firefox In-Reply-To: <4FFE9DED.7090007@oracle.com> References: <34129201.post@talk.nabble.com> <4FFE9DED.7090007@oracle.com> Message-ID: <4FFEA688.9010801@zafena.se> 2012-07-12 11:50, Dalibor Topic skrev: > Bcc:ing hotspot-runtime-dev, and CC:ing distro-pkg-dev instead. > > On 7/8/12 7:32 AM, manit123 wrote: >> >> hi , I am using tiny core I downloaded & installed openjdk-7-jre.tcz from repository. Icedtea plugin is not available in repository. 'java -version' says [code] openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal-tc_2010_01_30_13_43-b00) OpenJDK Server VM (build 17.0-b08, mixed mode) [/code] How do I make firefox 13 recognise this ? I have used sun/oracle jre in which you have to make a link to libjavaplugin_oji.so & libjpnp.so in ~/.mozilla/plugins/. In openjdk I found /tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/jre/lib/i386/libjava.so /tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/jre/lib/i386/libjava_crw_demo.so >> >> Can I do something manually so that my web browser recognises openjdk ? >> > > OpenJDK by itself do not contain a browser plugin or webstart. You can manually install icedtea-web, it contains a browser plugin and webstart that work in combination with OpenJDK. The IcedTea team only provide source-code that can be used to build the plugin on your system. The latest IcedTea-web release is 1.2. http://dbhole.wordpress.com/2012/03/05/icedtea-web-1-2-released/ You can find build instructions here: http://icedtea.classpath.org/wiki/IcedTea-Web #Building icedtea-web is quite easy if you have all build dependencies installed on your system: #example of a manual icedtea-web 1.2 build cd ~ wget http://icedtea.classpath.org/download/source/icedtea-web-1.2.tar.gz tar zxvf icedtea-web-1.2.tar.gz mkdir icedtea-web-1.2-image cd icedtea-web-1.2 ./configure --prefix=~/icedtea-web-1.2-image make make install cd ~/.mozilla/plugins/ ln -s ~/icedtea-web-test/icedtea-web-1.2-image/lib/IcedTeaPlugin.so . #done! #open firefox and check about:plugins #The about page should now contain: IcedTea-Web Plugin (using IcedTea-Web 1.2) #The icedtea-web-1.2-image/bin also contains javaws that will allow you to run webstart .jnlp files. Try Collaborate with your Tiny Core distribution to get icedtea-web built and packaged for your distribution. Cheers Xerxes From ptisnovs at icedtea.classpath.org Thu Jul 12 05:03:39 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Thu, 12 Jul 2012 12:03:39 +0000 Subject: /hg/gfx-test: * src/org/gfxtest/callbacks/CommonCircleDrawCallba... Message-ID: changeset 83c95c58b0c2 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=83c95c58b0c2 author: Pavel Tisnovsky date: Thu Jul 12 14:05:47 2012 +0200 * src/org/gfxtest/callbacks/CommonCircleDrawCallbacks.java: Fixed improper JavaDoc. * src/org/gfxtest/callbacks/CommonEllipseDrawCallbacks.java: Added class containing callback methods used during rendering ellipses (ovals). * src/org/gfxtest/framework/PrintTest.java: Added new constant used by the tests. * Makefile: Updated according to previous changes. diffstat: ChangeLog | 11 + Makefile | 1 + src/org/gfxtest/callbacks/CommonCircleDrawCallbacks.java | 2 +- src/org/gfxtest/callbacks/CommonEllipseDrawCallbacks.java | 111 ++++++++++++++ src/org/gfxtest/framework/PrintTest.java | 5 + 5 files changed, 129 insertions(+), 1 deletions(-) diffs (171 lines): diff -r bdb992726715 -r 83c95c58b0c2 ChangeLog --- a/ChangeLog Tue Jul 10 11:44:43 2012 +0200 +++ b/ChangeLog Thu Jul 12 14:05:47 2012 +0200 @@ -1,3 +1,14 @@ +2012-07-12 Pavel Tisnovsky + + * src/org/gfxtest/callbacks/CommonCircleDrawCallbacks.java: + Fixed improper JavaDoc. + * src/org/gfxtest/callbacks/CommonEllipseDrawCallbacks.java: + Added class containing callback methods used during rendering + ellipses (ovals). + * src/org/gfxtest/framework/PrintTest.java: + Added new constant used by the tests. + * Makefile: Updated according to previous changes. + 2012-07-10 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestRoundRectangles.java: diff -r bdb992726715 -r 83c95c58b0c2 Makefile --- a/Makefile Tue Jul 10 11:44:43 2012 +0200 +++ b/Makefile Thu Jul 12 14:05:47 2012 +0200 @@ -97,6 +97,7 @@ $(CLASSES)/$(FRAMEWORK_DIR)/PostScriptToPngConverter.class \ $(CLASSES)/$(FRAMEWORK_DIR)/PrintJobWatcher.class \ $(CLASSES)/$(CALLBACKS_DIR)/CommonCircleDrawCallbacks.class \ + $(CLASSES)/$(CALLBACKS_DIR)/CommonEllipseDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/CommonLineDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/HorizontalLineDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/VerticalLineDrawCallbacks.class \ diff -r bdb992726715 -r 83c95c58b0c2 src/org/gfxtest/callbacks/CommonCircleDrawCallbacks.java --- a/src/org/gfxtest/callbacks/CommonCircleDrawCallbacks.java Tue Jul 10 11:44:43 2012 +0200 +++ b/src/org/gfxtest/callbacks/CommonCircleDrawCallbacks.java Thu Jul 12 14:05:47 2012 +0200 @@ -85,7 +85,7 @@ } /** - * This method is called for each rendered horizontal circle. + * This method is called for each rendered circle. * * @param x * horizontal coordinate of a circle center diff -r bdb992726715 -r 83c95c58b0c2 src/org/gfxtest/callbacks/CommonEllipseDrawCallbacks.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/gfxtest/callbacks/CommonEllipseDrawCallbacks.java Thu Jul 12 14:05:47 2012 +0200 @@ -0,0 +1,111 @@ +/* + Java gfx-test framework + + Copyright (C) 2012 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.callbacks; + + + +import java.awt.Color; +import java.awt.Graphics2D; + + + +import org.gfxtest.framework.TestImage; + + + +/** + * Class representing set of callback methods called for each rendered ellipse. + * + * @author Pavel Tisnovsky + */ +public abstract class CommonEllipseDrawCallbacks +{ + /** + * Image to which ellipses are to be drawn. + */ + protected TestImage image; + + /** + * Graphics canvas. + */ + protected Graphics2D graphics; + + /** + * Setup phase. + * + * @param image + * image to which ellipse are to be drawn + * @param graphics2d + * graphics canvas + */ + public void setup(TestImage image, Graphics2D graphics) + { + this.image = image; + this.graphics = graphics; + // set drawing color + graphics.setColor(Color.BLACK); + } + + /** + * This method is called for each rendered ellipse. + * + * @param x + * horizontal coordinate of an ellipse center + * @param y + * vertical coordinate of an ellipse center + * @param radius + * ellipse radius + * @param maxRadius + * maximum allowable ellipse radius (radius of major axe) + * @param colorIndex + * color index + */ + public abstract void iterationCallBack(int x, int y, int radius, int maxRadius, int colorIndex); + + /** + * Cleanup phase. + */ + public void cleanup() + { + return; + } + +} diff -r bdb992726715 -r 83c95c58b0c2 src/org/gfxtest/framework/PrintTest.java --- a/src/org/gfxtest/framework/PrintTest.java Tue Jul 10 11:44:43 2012 +0200 +++ b/src/org/gfxtest/framework/PrintTest.java Thu Jul 12 14:05:47 2012 +0200 @@ -82,6 +82,11 @@ protected static final int CIRCLE_RADIUS_STEP = 10; /** + * Offset between two ellipses in each test iteration. + */ + protected static final int ELLIPSE_RADIUS_STEP = 10; + + /** * Offset between two arcs in each test iteration. */ protected static final int ARC_RADIUS_STEP = 10; From bugzilla-daemon at icedtea.classpath.org Thu Jul 12 07:11:55 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 12 Jul 2012 14:11:55 +0000 Subject: [Bug 919] applet doesn't finish loading In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=919 Adam Domurad changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Adam Domurad --- Considering I can't reproduce it with any 1.2/1.3/HEAD and https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/927065/comments/26 says it has been fixed, I am closing this as fixed unless the problem can be reproduced again. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120712/8e575a5b/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 12 07:30:53 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 12 Jul 2012 14:30:53 +0000 Subject: [Bug 917] plugin crashes when calling javascript function In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=917 --- Comment #2 from Adam Domurad --- Hi Matthias & Don, I'm unable to reproduce this with either the 1.2 that comes with Fedora, or the most up-to-date release of 1.2 Could you please tell me if you can reproduce the error with the current icedtea-web 1.2 that is provided with Ubuntu, and, if you can, build and try the plugin located at http://icedtea.classpath.org/hg/release/icedtea-web-1.3 ? -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120712/340eba43/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 12 07:33:07 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 12 Jul 2012 14:33:07 +0000 Subject: [Bug 1011] ZipException when a folder is in the classpath In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1011 Adam Domurad changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Adam Domurad --- Fixed in 1.3/HEAD. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120712/a2da0ae5/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 12 07:38:13 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 12 Jul 2012 14:38:13 +0000 Subject: [Bug 722] javaws fails to run signed application if unsigned files are present under META-INF/ In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=722 Adam Domurad changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from Adam Domurad --- Should be fixed in 1.3/HEAD. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120712/294683e3/attachment.html From adomurad at redhat.com Thu Jul 12 14:08:51 2012 From: adomurad at redhat.com (Adam Domurad) Date: Thu, 12 Jul 2012 17:08:51 -0400 Subject: [rfc][icedtea-web] Stop supporting old version of NPAPI for 1.4 Message-ID: <1342127331.2560.6.camel@voip-10-15-18-79.yyz.redhat.com> Hi. This was briefly discussed with Deepak, and by the time 1.4 is released, there will be no need to support the versions of firefox that have the old api. We need not apply this patch right away, but it does make the code nicer to deal with and reason about. Note about backporting: we will probably have to continue to backport changes so they work with both #if cases. Changes that require different behaviour for both should be rare though. It may make patches a little harder to apply, but should generally only affect line offsets. Thanks, Adam -------------- next part -------------- A non-text attachment was scrubbed... Name: ChangeLog Type: text/x-changelog Size: 543 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120712/dd09030b/ChangeLog.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: no-1.4-version-ifdirectives.patch Type: text/x-patch Size: 14403 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120712/dd09030b/no-1.4-version-ifdirectives.patch From omajid at redhat.com Thu Jul 12 14:20:32 2012 From: omajid at redhat.com (Omair Majid) Date: Thu, 12 Jul 2012 17:20:32 -0400 Subject: [rfc][icedtea-web] Stop supporting old version of NPAPI for 1.4 In-Reply-To: <1342127331.2560.6.camel@voip-10-15-18-79.yyz.redhat.com> References: <1342127331.2560.6.camel@voip-10-15-18-79.yyz.redhat.com> Message-ID: <4FFF3FA0.3030905@redhat.com> On 07/12/2012 05:08 PM, Adam Domurad wrote: > Hi. This was briefly discussed with Deepak, and by the time 1.4 is > released, there will be no need to support the versions of firefox that > have the old api. Could you tell us what versions are these? What about other browsers that we care about? Thanks, Omair From ptisnovs at icedtea.classpath.org Fri Jul 13 04:56:26 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Fri, 13 Jul 2012 11:56:26 +0000 Subject: /hg/gfx-test: Added new test suite - rendering of ellipses (oval... Message-ID: changeset 0c1ceef887ca in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=0c1ceef887ca author: Pavel Tisnovsky date: Fri Jul 13 13:59:05 2012 +0200 Added new test suite - rendering of ellipses (ovals) to a PostScript file. * src/org/gfxtest/testsuites/PrintTestEllipses.java: * Makefile: Added new class to compile and new test to run. diffstat: ChangeLog | 7 + Makefile | 2 + src/org/gfxtest/testsuites/PrintTestEllipses.java | 1313 +++++++++++++++++++++ 3 files changed, 1322 insertions(+), 0 deletions(-) diffs (truncated from 1350 to 500 lines): diff -r 83c95c58b0c2 -r 0c1ceef887ca ChangeLog --- a/ChangeLog Thu Jul 12 14:05:47 2012 +0200 +++ b/ChangeLog Fri Jul 13 13:59:05 2012 +0200 @@ -1,3 +1,10 @@ +2012-07-13 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/PrintTestEllipses.java: + Added new test suite - rendering of ellipses (ovals) to a PostScript + file. + * Makefile: Added new class to compile and new test to run. + 2012-07-12 Pavel Tisnovsky * src/org/gfxtest/callbacks/CommonCircleDrawCallbacks.java: diff -r 83c95c58b0c2 -r 0c1ceef887ca Makefile --- a/Makefile Thu Jul 12 14:05:47 2012 +0200 +++ b/Makefile Fri Jul 13 13:59:05 2012 +0200 @@ -197,6 +197,7 @@ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestQuadraticCurves.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestBitBlt.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestCircles.class \ + $(CLASSES)/$(TESTSUITE_DIR)/PrintTestEllipses.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestDrawText.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestColorPaint.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestGradientPaint.class \ @@ -285,6 +286,7 @@ $(RESULTS)/PrintTestArcs \ $(RESULTS)/PrintTestBitBlt \ $(RESULTS)/PrintTestCircles \ + $(RESULTS)/PrintTestEllipses \ $(RESULTS)/PrintTestDrawText \ $(RESULTS)/PrintTestColorPaint \ $(RESULTS)/PrintTestGradientPaint \ diff -r 83c95c58b0c2 -r 0c1ceef887ca src/org/gfxtest/testsuites/PrintTestEllipses.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/gfxtest/testsuites/PrintTestEllipses.java Fri Jul 13 13:59:05 2012 +0200 @@ -0,0 +1,1313 @@ +/* + Java gfx-test framework + + Copyright (C) 2012 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.BasicStroke; +import java.awt.Graphics2D; + + + +import org.gfxtest.callbacks.CommonEllipseDrawCallbacks; +import org.gfxtest.framework.ColorPalette; +import org.gfxtest.framework.GrayscalePalette; +import org.gfxtest.framework.PrintTest; +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 suite checks rendering of various ellipses. +* +* @author Pavel Tisnovsky +*/ + at TestType(TestTypes.PRINT_TEST) + at GraphicsPrimitive(GraphicsPrimitives.ELLIPSE) + at RenderStyle(RenderStyles.NORMAL) + at Transformation(Transformations.NONE) + at Zoom(1) +public class PrintTestEllipses extends PrintTest +{ + + /** + * Method which renders set of ellipses using various colors and stroke + * styles. For each ellipse, the callback function/method is called to + * perform all required setup. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @param radiusStep + * between two near ellipses + * @param ellipseDrawCallback + * class containing set of callback methods + */ + private void drawEllipse(TestImage image, Graphics2D graphics2d, int radiusStep, + CommonEllipseDrawCallbacks ellipseDrawCallback) + { + // setup rendering + ellipseDrawCallback.setup(image, graphics2d); + + // image width and height + final int width = image.getWidth(); + final int height = image.getHeight(); + + // horizontal coordinates of ellipse center + final int xc = width >> 1; + final int yc = height >> 1; + + // maximum radius + int radiusX = xc - BORDER; + int radiusY = yc - BORDER; + + // index to color palette + int colorIndex = 0; + + // draw all ellipses onto a paper + while (radiusX > MINIMUM_RADIUS && radiusY > MINIMUM_RADIUS) + { + // setup can be made for each ellipse + ellipseDrawCallback.iterationCallBack(xc, yc, radiusX, xc - BORDER, colorIndex++); + radiusX -= radiusStep; + radiusY -= radiusStep; + // render the ellipse + graphics2d.drawOval(xc - radiusX, yc - radiusY, radiusX << 1, radiusY << 1); + } + + // cleanup rendering + ellipseDrawCallback.cleanup(); + } + + /** + * Test basic behavior of method Graphics.drawOval(). Color of all rendered + * ellipses are set to black. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseBasicStyle(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP, new CommonEllipseDrawCallbacks() + { + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // nothing needs to be changed or set + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawOval(). ellipses color are + * selected from a palette. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseColorPalette(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP, new CommonEllipseDrawCallbacks() + { + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // set new ellipse color to index + this.graphics.setColor(ColorPalette.getColor(index)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawOval(). ellipses color are + * selected from a palette. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseColorPaletteInv(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP, new CommonEllipseDrawCallbacks() + { + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // set new ellipse color according to index + this.graphics.setColor(ColorPalette.getColor(MAX_COLOR_INDEX - index)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawOval(). ellipses color are + * selected from a grayscale palette. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseGrayScale(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP, new CommonEllipseDrawCallbacks() + { + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // compute grayscale value + float gray = radius * 1.0f / maxRadius; + // clamp the grayscale value + if (gray > 1.0f) + { + gray = 1.0f; + } + // set ellipse color + this.graphics.setColor(GrayscalePalette.createGrayscaleColor(gray)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawOval(). ellipses color are + * selected from a grayscale palette. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseGrayScaleInv(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP, new CommonEllipseDrawCallbacks() + { + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // compute grayscale value + float gray = 1.0f - radius * 1.0f / maxRadius; + // clamp the grayscale value + if (gray < 0.0f) + { + gray = 0.0f; + } + // set ellipse color + this.graphics.setColor(GrayscalePalette.createGrayscaleColor(gray)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawOval(). ellipses are rendered + * with various width and default end caps. Color of all rendered ellipses + * are set to black. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseChangeWidth(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP << 1, new CommonEllipseDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA + : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawOval(). ellipses are rendered + * with various width and end caps set to CAP_BUTT. Join style is set to + * bevel style. Color of all rendered ellipses are set to black. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseChangeWidthCapButtJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP << 1, new CommonEllipseDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // set stroke width and style + this.graphics + .setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, + BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA + : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawOval(). ellipses are rendered + * with various width and end caps set to CAP_ROUND. Join style is set to + * bevel style. Color of all rendered ellipses are set to black. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseChangeWidthCapRoundJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP << 1, new CommonEllipseDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // set stroke width and style + this.graphics + .setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, + BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA + : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawOval(). ellipses are rendered + * with various width and end caps set to CAP_SQUARE. Join style is set to + * bevel style. Color of all rendered ellipses are set to black. + * + * @param image + * image to which ellipses are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawEllipseChangeWidthCapSquareJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawEllipse(image, graphics2d, ELLIPSE_RADIUS_STEP << 1, new CommonEllipseDrawCallbacks() + { + /** + * Stroke width which is changed in each iteration. + */ + private float strokeWidth = MIN_STROKE_WIDTH; + + /** + * Callback function called before each ellipse is rendered. + */ + @Override + public void iterationCallBack(int x, int y, int radius, int maxRadius, int index) + { + // set stroke width and style From ptisnovs at redhat.com Fri Jul 13 06:41:41 2012 From: ptisnovs at redhat.com (Pavel Tisnovsky) Date: Fri, 13 Jul 2012 15:41:41 +0200 Subject: Reviewer needed: fix for IcedTea7 HEAD/JDK forest (correction of conflict due to the merge jdk7u6-b16 and the fix 7043963: AWT workaround missing for Mutter) Message-ID: <50002595.1090002@redhat.com> Hi, there's a conflict between two pushes in IcedTea7 JDK forest which makes about 40 JTreg tests to fail because one method with the signature "public static Point getTitlePoint(Window decoratedWindow)" is defined twice times in the class test.java.awt.regtesthelpers.Util. Here are two conflicting pushes: # HG changeset patch # User andrew # Date 1340979660 -3600 # Node ID 0f03c3a0bf941e29e0b4a1aff00da778e8431b87 # Parent 5ed9d9f1087360ca52794d7b185ee2b86d01c9d2 # Parent cc19202f6179a5a784584eb3cdf6914870c8beac Merge jdk7u6-b16 # User anthony # Date 1339598558 -14400 # Node ID 3d7847385e94cb46f9e864d87591752ca8c91681 # Parent a4ba0f6d3f9bb64b455e1d5b155da9737a9db794 7043963: AWT workaround missing for Mutter. Summary: Support Mutter window manager Reviewed-by: art, omajid Contributed-by: Omair Majid To resolve this issue, simple change is needed to be make in the JDK forest - it just removes one duplicated method. Patch containing this change is stored in an attachment. Changelog entry for IcedTea7 HEAD: 2012-07-13 Pavel Tisnovsky Resolved conflict between merge jdk7u6-b16 and the fix 7043963: AWT workaround missing for Mutter. * Makefile.am: (HOTSPOT_CHANGESET): Updated. (HOTSPOT_SHA256SUM): Likewise. Can anybody please review this change? Cheers, Pavel -------------- next part -------------- A non-text attachment was scrubbed... Name: Util.patch Type: text/x-patch Size: 727 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120713/7bc40c98/Util.patch From jvanek at redhat.com Fri Jul 13 06:53:31 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Fri, 13 Jul 2012 15:53:31 +0200 Subject: Reviewer needed: fix for IcedTea7 HEAD/JDK forest (correction of conflict due to the merge jdk7u6-b16 and the fix 7043963: AWT workaround missing for Mutter) In-Reply-To: <50002595.1090002@redhat.com> References: <50002595.1090002@redhat.com> Message-ID: <5000285B.2080005@redhat.com> On 07/13/2012 03:41 PM, Pavel Tisnovsky wrote: > Hi, > > there's a conflict between two pushes in IcedTea7 JDK forest which makes about 40 JTreg tests to fail > because one method with the signature "public static Point getTitlePoint(Window decoratedWindow)" is > defined twice times in the class test.java.awt.regtesthelpers.Util. Here are two conflicting pushes: > > # HG changeset patch > # User andrew > # Date 1340979660 -3600 > # Node ID 0f03c3a0bf941e29e0b4a1aff00da778e8431b87 > # Parent 5ed9d9f1087360ca52794d7b185ee2b86d01c9d2 > # Parent cc19202f6179a5a784584eb3cdf6914870c8beac > Merge jdk7u6-b16 > > # User anthony > # Date 1339598558 -14400 > # Node ID 3d7847385e94cb46f9e864d87591752ca8c91681 > # Parent a4ba0f6d3f9bb64b455e1d5b155da9737a9db794 > 7043963: AWT workaround missing for Mutter. > Summary: Support Mutter window manager > Reviewed-by: art, omajid > Contributed-by: Omair Majid > > To resolve this issue, simple change is needed to be make in the JDK forest - it just > removes one duplicated method. Patch containing this change is stored in an attachment. > > Changelog entry for IcedTea7 HEAD: > > 2012-07-13 Pavel Tisnovsky > > Resolved conflict between merge jdk7u6-b16 and the fix > 7043963: AWT workaround missing for Mutter. > * Makefile.am: > (HOTSPOT_CHANGESET): Updated. > (HOTSPOT_SHA256SUM): Likewise. > > Can anybody please review this change? > > Cheers, > Pavel > Removing of method seem legit and necessary. Please push. btw - after this commit, you will have to update Makefile.am: with news hashes of chnageset to propagate the chnegs to other users of icedtea7-forest-head? What the hell it is? Is it documented somewhere? J. From ptisnovs at icedtea.classpath.org Fri Jul 13 10:48:57 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Fri, 13 Jul 2012 17:48:57 +0000 Subject: /hg/icedtea7: Resolved conflict between merge jdk7u6-b16 and the... Message-ID: changeset 7201f060a304 in /hg/icedtea7 details: http://icedtea.classpath.org/hg/icedtea7?cmd=changeset;node=7201f060a304 author: Pavel Tisnovsky date: Fri Jul 13 19:50:48 2012 +0200 Resolved conflict between merge jdk7u6-b16 and the fix 7043963: AWT workaround missing for Mutter. diffstat: ChangeLog | 8 ++++++++ Makefile.am | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diffs (36 lines): diff -r 7a7d8d40ae38 -r 7201f060a304 ChangeLog --- a/ChangeLog Fri Jun 29 20:37:24 2012 +0100 +++ b/ChangeLog Fri Jul 13 19:50:48 2012 +0200 @@ -1,3 +1,11 @@ +2012-07-13 Pavel Tisnovsky + + Resolved conflict between merge jdk7u6-b16 and the fix + 7043963: AWT workaround missing for Mutter. + * Makefile.am, + (HOTSPOT_CHANGESET): Updated. + (HOTSPOT_SHA256SUM): Likewise. + 2012-06-29 Andrew John Hughes * Makefile.am, diff -r 7a7d8d40ae38 -r 7201f060a304 Makefile.am --- a/Makefile.am Fri Jun 29 20:37:24 2012 +0100 +++ b/Makefile.am Fri Jul 13 19:50:48 2012 +0200 @@ -8,7 +8,7 @@ HOTSPOT_CHANGESET = 3359eef69d1e JAXP_CHANGESET = 411912b74c9c JAXWS_CHANGESET = d5997e503698 -JDK_CHANGESET = 0f03c3a0bf94 +JDK_CHANGESET = 1e341b69c2f7 LANGTOOLS_CHANGESET = 480d4eb554fc OPENJDK_CHANGESET = 7f5ea73378df @@ -16,7 +16,7 @@ HOTSPOT_SHA256SUM = c10b4208b76c1012e91774bc8a29f561fbb4747fb5bbebe3267f3cbaa24b8c5a JAXP_SHA256SUM = 77de1a8c4ab40652d0cf9c862c543376a877eb9399ad20e653c7103c599640e4 JAXWS_SHA256SUM = 4fdb7a02b9d42fef84a7fb0f2de2b4c15a737a14be93b5de1c5f6d658072cdea -JDK_SHA256SUM = 9c5790b4e35f52c351900b9e71ce0c81479961a6146cbf6b74ef2a2d3c802fd5 +JDK_SHA256SUM = c8b080004b6e61f66c27a8213ed54840cd5aedc4e141999db7e3e4181bbef1da LANGTOOLS_SHA256SUM = 6a3995facdaae90fd7c68faa6c8a566825317136a0064892d71a76f5d5f09efe OPENJDK_SHA256SUM = a426ab622e51d5ca40a7da4af4b42c2c216f7c27b56190df36e3bf7fea8529ca From adomurad at redhat.com Fri Jul 13 13:14:56 2012 From: adomurad at redhat.com (Adam Domurad) Date: Fri, 13 Jul 2012 16:14:56 -0400 Subject: [rfc][icedtea-web] Stop supporting old version of NPAPI for 1.4 In-Reply-To: <4FFF3FA0.3030905@redhat.com> References: <1342127331.2560.6.camel@voip-10-15-18-79.yyz.redhat.com> <4FFF3FA0.3030905@redhat.com> Message-ID: <1342210496.2560.34.camel@voip-10-15-18-79.yyz.redhat.com> On Thu, 2012-07-12 at 17:20 -0400, Omair Majid wrote: > On 07/12/2012 05:08 PM, Adam Domurad wrote: > > Hi. This was briefly discussed with Deepak, and by the time 1.4 is > > released, there will be no need to support the versions of firefox that > > have the old api. > > Could you tell us what versions are these? What about other browsers > that we care about? > > Thanks, > Omair Sorry, replied off-list. Resent. Hi Omair. This affects API versions <1.9, and only affects Firefox <4. From ahughes at redhat.com Mon Jul 16 01:30:49 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Mon, 16 Jul 2012 04:30:49 -0400 (EDT) Subject: Reviewer needed: fix for IcedTea7 HEAD/JDK forest (correction of conflict due to the merge jdk7u6-b16 and the fix 7043963: AWT workaround missing for Mutter) In-Reply-To: <5000285B.2080005@redhat.com> Message-ID: <0a85cef7-6791-438e-a400-0dffff577ebc@zmail17.collab.prod.int.phx2.redhat.com> ----- Original Message ----- > On 07/13/2012 03:41 PM, Pavel Tisnovsky wrote: > > Hi, > > > > there's a conflict between two pushes in IcedTea7 JDK forest which > > makes about 40 JTreg tests to fail > > because one method with the signature "public static Point > > getTitlePoint(Window decoratedWindow)" is > > defined twice times in the class test.java.awt.regtesthelpers.Util. > > Here are two conflicting pushes: > > > > # HG changeset patch > > # User andrew > > # Date 1340979660 -3600 > > # Node ID 0f03c3a0bf941e29e0b4a1aff00da778e8431b87 > > # Parent 5ed9d9f1087360ca52794d7b185ee2b86d01c9d2 > > # Parent cc19202f6179a5a784584eb3cdf6914870c8beac > > Merge jdk7u6-b16 > > > > # User anthony > > # Date 1339598558 -14400 > > # Node ID 3d7847385e94cb46f9e864d87591752ca8c91681 > > # Parent a4ba0f6d3f9bb64b455e1d5b155da9737a9db794 > > 7043963: AWT workaround missing for Mutter. > > Summary: Support Mutter window manager > > Reviewed-by: art, omajid > > Contributed-by: Omair Majid > > > > To resolve this issue, simple change is needed to be make in the > > JDK forest - it just > > removes one duplicated method. Patch containing this change is > > stored in an attachment. > > > > Changelog entry for IcedTea7 HEAD: > > > > 2012-07-13 Pavel Tisnovsky > > > > Resolved conflict between merge jdk7u6-b16 and the fix > > 7043963: AWT workaround missing for Mutter. > > * Makefile.am: > > (HOTSPOT_CHANGESET): Updated. > > (HOTSPOT_SHA256SUM): Likewise. > > > > Can anybody please review this change? > > > > Cheers, > > Pavel > > > > Removing of method seem legit and necessary. Please push. > btw - after this commit, you will have to update Makefile.am: with > news hashes of chnageset to > propagate the chnegs to other users of icedtea7-forest-head? What > the hell it is? Is it documented > somewhere? > > J. > > > Why is the HotSpot changeset/checksum being changed for a JDK change? Looking at the change you actually pushed, it seems your ChangeLog is inaccurate. -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From ptisnovs at icedtea.classpath.org Mon Jul 16 01:31:41 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 16 Jul 2012 08:31:41 +0000 Subject: /hg/gfx-test: Fixed runtime exception which occured, when the gr... Message-ID: changeset c49d35064c61 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=c49d35064c61 author: Pavel Tisnovsky date: Mon Jul 16 10:34:12 2012 +0200 Fixed runtime exception which occured, when the grayscale value is outside the awaited range. Added three new tests to the test suite PrintTestPolylines. diffstat: ChangeLog | 8 + src/org/gfxtest/framework/GrayscalePalette.java | 27 ++++- src/org/gfxtest/testsuites/PrintTestPolylines.java | 107 ++++++++++++++++++++- 3 files changed, 138 insertions(+), 4 deletions(-) diffs (188 lines): diff -r 0c1ceef887ca -r c49d35064c61 ChangeLog --- a/ChangeLog Fri Jul 13 13:59:05 2012 +0200 +++ b/ChangeLog Mon Jul 16 10:34:12 2012 +0200 @@ -1,3 +1,11 @@ +2012-07-16 Pavel Tisnovsky + + * src/org/gfxtest/framework/GrayscalePalette.java: + Fixed runtime exception which occured, when the grayscale value is + outside the awaited range. + * src/org/gfxtest/testsuites/PrintTestPolylines.java: + Added three new tests to this test suite. + 2012-07-13 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestEllipses.java: diff -r 0c1ceef887ca -r c49d35064c61 src/org/gfxtest/framework/GrayscalePalette.java --- a/src/org/gfxtest/framework/GrayscalePalette.java Fri Jul 13 13:59:05 2012 +0200 +++ b/src/org/gfxtest/framework/GrayscalePalette.java Mon Jul 16 10:34:12 2012 +0200 @@ -63,7 +63,30 @@ */ public static Color createGrayscaleColor(float gray) { - return new Color(gray, gray, gray); + float clampedGray = clampGrayScaleValue(gray); + return new Color(clampedGray, clampedGray, clampedGray); } - + + /** + * Clamp grayscale value to a given range 0.0f - 1.0f + * + * @param gray + * input grayscale value + * @return output grayscale value + */ + private static float clampGrayScaleValue(float gray) + { + // negative values are clamped to zero + if (gray < 0.0f) + { + return 0.0f; + } + // bigger positive values are clamped to one + if (gray > 1.0f) + { + return 1.0f; + } + return gray; + } + } diff -r 0c1ceef887ca -r c49d35064c61 src/org/gfxtest/testsuites/PrintTestPolylines.java --- a/src/org/gfxtest/testsuites/PrintTestPolylines.java Fri Jul 13 13:59:05 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestPolylines.java Mon Jul 16 10:34:12 2012 +0200 @@ -40,11 +40,14 @@ package org.gfxtest.testsuites; +import java.awt.BasicStroke; import java.awt.Graphics2D; import org.gfxtest.callbacks.PolylineDrawCallbacks; +import org.gfxtest.framework.ColorPalette; +import org.gfxtest.framework.GrayscalePalette; import org.gfxtest.framework.PrintTest; import org.gfxtest.framework.TestImage; import org.gfxtest.framework.TestResult; @@ -127,9 +130,9 @@ } /** - * Test basic behavior of method Graphics.drawRect(). Rectangles are + * Test basic behavior of method Graphics.drawPolyline(). Polyline are * rendered with default width and default end caps. Color of all rendered - * rectangles are set to black. + * polylines are set to black. * * @param image * image to which rectangles are to be drawn @@ -156,6 +159,106 @@ } /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a palette. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesColorPalette(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP, new PolylineDrawCallbacks() + { + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set polyline color + this.graphics.setColor(ColorPalette.getColor(index)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesGrayScale(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP, new PolylineDrawCallbacks() + { + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // compute grayscale value + float gray = (y1 - BORDER) * 4.0f / this.image.getHeight(); + // set polyline color + this.graphics.setColor(GrayscalePalette.createGrayscaleColor(gray)); + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidth(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** * Entry point to the test suite. * * @param args From ahughes at redhat.com Mon Jul 16 01:40:47 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Mon, 16 Jul 2012 04:40:47 -0400 (EDT) Subject: Repopulating icedtea.classpath.org/hg/pulseaudio (was Re: RFC: PR1050 - Stream objects not garbage collected?) In-Reply-To: <4FFDE260.8050006@redhat.com> Message-ID: ----- Original Message ----- > On 06/28/2012 07:20 PM, Andrew Hughes wrote: > > I don't think taking it upstream to OpenJDK8 is the right approach. > > It won't solve this problem (fixes will still need to go across at > > least three trees). In fact, it'll make things harder as we'll > > then > > need to get reviewer approval and an Oracle bug ID for every fix. > > Yeah, this is quite unfortunate. But it's also true for all other > code > that we push upstream (including zero). Well, yes, zero is the example I'd use to show how things have been generally worse since upstreaming. But the main issue is that you're comparing apples and oranges; Zero was a series of patches against HotSpot (and a few against the JDK) which would obviously make more sense upstream. The PulseAudio sound provider plugin is an additional feature, which should work with any JDK. It makes more sense to package it separately, as with existing sound providers users can choose to install. Its user base is also limited to people who use PulseAudio on GNU/Linux platforms (has it been ported elsewhere?) while Zero is potentially useful on e.g. PPC *BSD platforms. > > > I think a better approach would be to reinvigorate the IcedTea > > PulseAudio > > repository or, preferably, setup an upstream OpenJDK project for > > it, > > as you suggested on IRC. Having it tied to specific JDK versions > > is a > > maintenance nightmare. > > > > I believe IcedTea-Web has worked out well under its current model > > and > > the PulseAudio addon would do well to follow in its footsteps. > > > > What about splitting it and moving it back to > icedtea.classpath.org/hg/pulseaudio then. It can be maintained there > for > multiple icedtea versions/releases. Does anyone have any concerns or > objections? > Obviously not, as I suggested that above. > Unlike icedtea-web, which runs standalone, we will need to modify > configure in icedtea{6,7,8} to accept paths to the built pulse-java > jar > and so so it can be integrated properly. No, that's upside-down. PulseAudio should be responsible for installing itself in a given JDK, just as IcedTea-Web is. Otherwise, you end up with a potential recursive dependency (IcedTea needs the PulseAudio provider, which needs a JDK to be built). > > Cheers, > Omair > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From ptisnovs at redhat.com Mon Jul 16 01:54:26 2012 From: ptisnovs at redhat.com (Pavel Tisnovsky) Date: Mon, 16 Jul 2012 10:54:26 +0200 Subject: Reviewer needed: fix for IcedTea7 HEAD/JDK forest (correction of conflict due to the merge jdk7u6-b16 and the fix 7043963: AWT workaround missing for Mutter) In-Reply-To: <0a85cef7-6791-438e-a400-0dffff577ebc@zmail17.collab.prod.int.phx2.redhat.com> References: <0a85cef7-6791-438e-a400-0dffff577ebc@zmail17.collab.prod.int.phx2.redhat.com> Message-ID: <5003D6C2.6070901@redhat.com> Andrew Hughes wrote: > > ----- Original Message ----- >> On 07/13/2012 03:41 PM, Pavel Tisnovsky wrote: >>> Hi, >>> >>> there's a conflict between two pushes in IcedTea7 JDK forest which >>> makes about 40 JTreg tests to fail >>> because one method with the signature "public static Point >>> getTitlePoint(Window decoratedWindow)" is >>> defined twice times in the class test.java.awt.regtesthelpers.Util. >>> Here are two conflicting pushes: >>> >>> # HG changeset patch >>> # User andrew >>> # Date 1340979660 -3600 >>> # Node ID 0f03c3a0bf941e29e0b4a1aff00da778e8431b87 >>> # Parent 5ed9d9f1087360ca52794d7b185ee2b86d01c9d2 >>> # Parent cc19202f6179a5a784584eb3cdf6914870c8beac >>> Merge jdk7u6-b16 >>> >>> # User anthony >>> # Date 1339598558 -14400 >>> # Node ID 3d7847385e94cb46f9e864d87591752ca8c91681 >>> # Parent a4ba0f6d3f9bb64b455e1d5b155da9737a9db794 >>> 7043963: AWT workaround missing for Mutter. >>> Summary: Support Mutter window manager >>> Reviewed-by: art, omajid >>> Contributed-by: Omair Majid >>> >>> To resolve this issue, simple change is needed to be make in the >>> JDK forest - it just >>> removes one duplicated method. Patch containing this change is >>> stored in an attachment. >>> >>> Changelog entry for IcedTea7 HEAD: >>> >>> 2012-07-13 Pavel Tisnovsky >>> >>> Resolved conflict between merge jdk7u6-b16 and the fix >>> 7043963: AWT workaround missing for Mutter. >>> * Makefile.am: >>> (HOTSPOT_CHANGESET): Updated. >>> (HOTSPOT_SHA256SUM): Likewise. >>> >>> Can anybody please review this change? >>> >>> Cheers, >>> Pavel >>> >> Removing of method seem legit and necessary. Please push. >> btw - after this commit, you will have to update Makefile.am: with >> news hashes of chnageset to >> propagate the chnegs to other users of icedtea7-forest-head? What >> the hell it is? Is it documented >> somewhere? >> >> J. >> >> >> > > Why is the HotSpot changeset/checksum being changed for a JDK change? > > Looking at the change you actually pushed, it seems your ChangeLog is inaccurate. doh sorry, my mistake in case of ChangeLog - %s/HOTSPOT_/JDK_ I'm fixing it. Pavel From ptisnovs at icedtea.classpath.org Mon Jul 16 01:57:53 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 16 Jul 2012 08:57:53 +0000 Subject: /hg/icedtea7: Fixed innacurate info in the ChangeLog. Message-ID: changeset 7d3000c44b3b in /hg/icedtea7 details: http://icedtea.classpath.org/hg/icedtea7?cmd=changeset;node=7d3000c44b3b author: Pavel Tisnovsky date: Mon Jul 16 10:59:46 2012 +0200 Fixed innacurate info in the ChangeLog. diffstat: ChangeLog | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines): diff -r 7201f060a304 -r 7d3000c44b3b ChangeLog --- a/ChangeLog Fri Jul 13 19:50:48 2012 +0200 +++ b/ChangeLog Mon Jul 16 10:59:46 2012 +0200 @@ -3,8 +3,8 @@ Resolved conflict between merge jdk7u6-b16 and the fix 7043963: AWT workaround missing for Mutter. * Makefile.am, - (HOTSPOT_CHANGESET): Updated. - (HOTSPOT_SHA256SUM): Likewise. + (JDK_CHANGESET): Updated. + (JDK_SHA256SUM): Likewise. 2012-06-29 Andrew John Hughes From egordienko at yahoo.com Sun Jul 15 11:34:25 2012 From: egordienko at yahoo.com (evgueni) Date: Sun, 15 Jul 2012 11:34:25 -0700 (PDT) Subject: IcedTea vs plain OpenJDK Message-ID: <34164738.post@talk.nabble.com> If I build jre for embedded x86_64 Linux environment what benefits does IcedTea give compared to plain OpenJDK build? Thanks, Evgueni -- View this message in context: http://old.nabble.com/IcedTea-vs-plain-OpenJDK-tp34164738p34164738.html Sent from the OpenJDK Distribution-specific Packaging mailing list archive at Nabble.com. From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 03:17:45 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 10:17:45 +0000 Subject: [Bug 1073] New: Chrome can't load plugin Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1073 Priority: P3 Bug ID: 1073 CC: unassigned at icedtea.classpath.org Assignee: dbhole at redhat.com Summary: Chrome can't load plugin Severity: normal Classification: Unclassified OS: Linux Reporter: birdstream at hotmail.com Hardware: x86_64 Status: NEW Version: 1.2 Component: Plugin Product: IcedTea-Web Until today, the plugin worked fine for me in Chrome. But after updating to 1.2-2 (ubuntu), it fails to load and looking at console output I see this: /build/buildd/icedtea-web-1.2/build/../plugin/icedteanp/IcedTeaNPPlugin.cc:2063: thread 0x7f0f50b81640: Error: Invalid plugin function table. /build/buildd/icedtea-web-1.2/build/../plugin/icedteanp/IcedTeaNPPlugin.cc:2063: thread 0x7f0f50b81640: Error: Invalid plugin function table. [31:31:3806613629:ERROR:webplugin_delegate_proxy.cc(353)] PluginMsg_Init returned false [31:31:3806613698:ERROR:webplugin_impl.cc(269)] Couldn't initialize plug-in It seems to play nice with Firefox, though.. Regards Joakim -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/6f3bc94e/attachment.html From ahughes at redhat.com Mon Jul 16 04:56:00 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Mon, 16 Jul 2012 07:56:00 -0400 (EDT) Subject: IcedTea vs plain OpenJDK In-Reply-To: <34164738.post@talk.nabble.com> Message-ID: <7d2fb582-832f-4ea5-9ff7-fe6d741d7c80@zmail17.collab.prod.int.phx2.redhat.com> ----- Original Message ----- > > If I build jre for embedded x86_64 Linux environment what benefits > does > IcedTea > give compared to plain OpenJDK build? > The main difference these days is ease of building and support for using system libraries rather than in-tree versions. We're aiming towards getting the IcedTea build to use OpenJDK itself, rather than its own tree, and thus reducing the number of differences. If you want plugin and Java Web Start support, you need to look at IcedTea-Web as OpenJDK doesn't provide an implementation. > Thanks, > Evgueni > -- > View this message in context: > http://old.nabble.com/IcedTea-vs-plain-OpenJDK-tp34164738p34164738.html > Sent from the OpenJDK Distribution-specific Packaging mailing list > archive at Nabble.com. > > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From jvanek at redhat.com Mon Jul 16 06:19:52 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Mon, 16 Jul 2012 15:19:52 +0200 Subject: [icedtea-web] Troubles with emma under openjdk7 Message-ID: <500414F8.60506@redhat.com> Hi! All who is running codecoverage for icedtea-web, please note that it is not working properly under jvm7. Its main trouble is that java process running netx (surely plugin, not sure for javaws but probable) instructed bytecode (which is executed from emma sandbox) is not able to be freed. Investigations in progress, but I do not hope for early solution. So eg automated codecoverage runs are now disabled :( I do not recommend to run codecoverage on your systems, as it can lead to absolute crash. (Something like "can not fork new process") J:( From ptisnovs at icedtea.classpath.org Mon Jul 16 07:14:03 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 16 Jul 2012 14:14:03 +0000 Subject: /hg/rhino-tests: Fix in Makefile: make sure the report dir is cr... Message-ID: changeset be25709c3ecd in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=be25709c3ecd author: Pavel Tisnovsky date: Mon Jul 16 16:16:03 2012 +0200 Fix in Makefile: make sure the report dir is created when the first report is generated. diffstat: ChangeLog | 5 +++++ Makefile | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diffs (23 lines): diff -r d78d71a7859b -r be25709c3ecd ChangeLog --- a/ChangeLog Mon Jul 09 12:14:59 2012 +0200 +++ b/ChangeLog Mon Jul 16 16:16:03 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-16 Pavel Tisnovsky + + * Makefile: Make sure the report dir is created when + the first report is generated. + 2012-07-09 Pavel Tisnovsky * src/org/RhinoTests/Reporter/GraphPagesGenerator.java: diff -r d78d71a7859b -r be25709c3ecd Makefile --- a/Makefile Mon Jul 09 12:14:59 2012 +0200 +++ b/Makefile Mon Jul 16 16:16:03 2012 +0200 @@ -112,6 +112,7 @@ done report: $(ALL_CLASSES) + mkdir $(REPORT_DIR) cp -u $(TEMPLATE_DIR)/style.css $(REPORT_DIR)/style.css $(JAVA) -cp $(BUILD_DIR) org.RhinoTests.Reporter.Reporter -template-dir=$(TEMPLATE_DIR) -log-dir=$(LOGS_DIR) -report-dir=$(REPORT_DIR) -date=$(DATE) -tests="$(TESTS)" From omajid at redhat.com Mon Jul 16 07:56:31 2012 From: omajid at redhat.com (Omair Majid) Date: Mon, 16 Jul 2012 10:56:31 -0400 Subject: Repopulating icedtea.classpath.org/hg/pulseaudio (was Re: RFC: PR1050 - Stream objects not garbage collected?) In-Reply-To: References: Message-ID: <50042B9F.9060509@redhat.com> On 07/16/2012 04:40 AM, Andrew Hughes wrote: >> Unlike icedtea-web, which runs standalone, we will need to modify >> configure in icedtea{6,7,8} to accept paths to the built pulse-java >> jar >> and so so it can be integrated properly. > > No, that's upside-down. PulseAudio should be responsible for installing > itself in a given JDK, just as IcedTea-Web is. Otherwise, you end up > with a potential recursive dependency (IcedTea needs the PulseAudio provider, > which needs a JDK to be built). I am not sure whether that's doable. IcedTea-Web uses a JDK, while this provider has to be used by the JDK. The jar and the so need to be placed in specific locations in the JDK tree for this to work. I could add an install target that installs it into the JDK, but that would limit it to one JDK at a time - when there's no reason it could not be used by multiple JDKs (icedtea 6, 7 and 8) simultaneously. Here's the approach I am considering: this provider will be installed into a known location (say, /usr/lib/pulse-java). The patches to icedtea{6,7,8} will modify the configure flag (--with-pulse-java) so the path specified by it is picked up and symlinks to the jar and so are placed in appropriate folders after icedtea is built. If the flag is disables the provider, it is not looked for. So while the dependency chain is there, there is a clear way to break it. 1. Build icedtea7: ./configure --with-pulse-java=no make 2. Build pulse-java: ./configure make make install 3. Build icedtea7: ./configure --with-pulse-java=/path/to/installed make Step 1 is for bootstrapping and 2 and 3 can be skipped if that's all you need. Thoughts? Thanks, Omair From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 10:45:52 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 17:45:52 +0000 Subject: [Bug 1073] Chrome can't load plugin In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1073 Deepak Bhole changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|dbhole at redhat.com |adomurad at redhat.com -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/ff3f0b54/attachment.html From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 11:24:14 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 18:24:14 +0000 Subject: [Bug 1073] Chrome can't load plugin In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1073 Adam Domurad changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Adam Domurad --- Hey, thanks for the bug report! This was a problem I noticed and fixed a while back in the most up to date version. Can you please give http://icedtea.classpath.org/hg/release/icedtea-web-1.2 a try ? Make sure you have mercurial, and go to a folder to build in. to do the following: hg clone http://icedtea.classpath.org/hg/release/icedtea-web-1.2/ cd icedtea-web-1.2 mkdir build cd build ./autogen.sh ../configure --prefix=$(pwd) make install Then backup /usr/lib64/IcedTeaPlugin.so (or whatever the location of your IcedTeaPlugin.so is) and replace it with /icedtea-web-1.2/build/plugin/icedteanp/IcedTeaPlugin.so -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/a19e0260/attachment.html From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 11:48:45 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 18:48:45 +0000 Subject: [Bug 1075] New: Crash in native code Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1075 Priority: P3 Bug ID: 1075 Assignee: unassigned at icedtea.classpath.org Summary: Crash in native code Severity: normal Classification: Unclassified OS: Linux Reporter: mjones at cybermetrix.com Hardware: x86 Status: NEW Version: unspecified Component: IcedTea Product: IcedTea Created attachment 729 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=729&action=edit Log file printed to disk. [mjones at cmx070 ~]$ "/opt/pulse/Profiles/Eclipse 4.2 Java/eclipse" Architecture: Linux/i386 Redirecting System.out and System.err to /opt/pulse/Common/logs/profile-rmb-3731502-console.log # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x006d98c1, pid=3907, tid=3078665920 # # JRE version: 6.0_24-b24 # Java VM: OpenJDK Client VM (20.0-b12 mixed mode linux-x86 ) # Derivative: IcedTea6 1.11.3 # Distribution: Scientific Linux release 6.2 (Carbon), package rhel-1.48.1.11.3.el6_2-i386 # Problematic frame: # C [UTF-16.so+0x8c1] gconv+0x3c1 # # An error report file with more information is saved as: # /home/mjones/hs_err_pid3907.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 # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Aborted -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/2aef9b7f/attachment.html From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 12:12:20 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 19:12:20 +0000 Subject: [Bug 1075] Crash in native code In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1075 Deepak Bhole changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dbhole at redhat.com Resolution|--- |MOVED --- Comment #1 from Deepak Bhole --- Hi Michael. This looks like a problem arising from SWT native code. You will have to open this bug with them as we cannot do anything to fix it on JVM side. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/6c42458b/attachment.html From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 12:20:45 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 19:20:45 +0000 Subject: [Bug 1075] Crash in native code In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1075 --- Comment #2 from Michael Jones --- Hi Deepak, I would like to report a bug with them, but I don't know where there bug tracker is. Do you happen to know? Thanks --Mike -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/e55bc249/attachment.html From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 12:21:44 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 19:21:44 +0000 Subject: [Bug 1075] Crash in native code In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1075 --- Comment #3 from Michael Jones --- Sorry, typo. I meant, I don't know where their bug tracker is. Thanks -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/5d50b108/attachment.html From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 12:22:26 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 19:22:26 +0000 Subject: [Bug 1075] Crash in native code In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1075 --- Comment #4 from Deepak Bhole --- Hi Michael, it is hosted on eclipse.org: http://www.eclipse.org/swt/bugs.php -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/3204dbfd/attachment.html From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 12:23:24 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 16 Jul 2012 19:23:24 +0000 Subject: [Bug 1075] Crash in native code In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1075 --- Comment #5 from Michael Jones --- Awesome, thanks a bunch. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120716/49400e1b/attachment.html From thomas at m3y3r.de Mon Jul 16 13:15:58 2012 From: thomas at m3y3r.de (Thomas Meyer) Date: Mon, 16 Jul 2012 22:15:58 +0200 Subject: [rfc][icedtea-web] PAV - Add missing timeout check Message-ID: <9AA653DD-1943-4AC8-B69A-9A59751405D3@m3y3r.de> Resend. # HG changeset patch # Parent 01544fb823842910b062b5b05b6872812ceecb98 diff -r 01544fb82384 plugin/icedteanp/java/sun/applet/PluginAppletViewer.java --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Wed Jul 11 16:18:58 2012 +0200 +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Mon Jul 16 22:08:38 2012 +0200 @@ -745,9 +745,19 @@ long maxTimeToSleep = APPLET_TIMEOUT; panelLock.lock(); try { - while (panel == null || !panel.isAlive()) + while (panel == null || !panel.isAlive()) { maxTimeToSleep -= waitTillTimeout(panelLock, panelLive, maxTimeToSleep); + + /* we already waited till timeout, give up here directly, + * instead of waiting 180s again in below waitForAppletInit() + */ + if(maxTimeToSleep < 0) { + panelLock.unlock(); + streamhandler.write("instance " + identifier + " reference " + -1 + " fatalError: " + "Initialization timed out"); + return; + } + } } finally { panelLock.unlock(); From dbhole at redhat.com Mon Jul 16 13:22:12 2012 From: dbhole at redhat.com (Deepak Bhole) Date: Mon, 16 Jul 2012 16:22:12 -0400 Subject: [rfc][icedtea-web] PAV - Add missing timeout check In-Reply-To: <9AA653DD-1943-4AC8-B69A-9A59751405D3@m3y3r.de> References: <9AA653DD-1943-4AC8-B69A-9A59751405D3@m3y3r.de> Message-ID: <20120716202212.GD15891@redhat.com> * Thomas Meyer [2012-07-16 16:17]: > Resend. > Sorry, missed this. Looks fine to me, OK for head. Thanks! Deepak > # HG changeset patch > # Parent 01544fb823842910b062b5b05b6872812ceecb98 > > diff -r 01544fb82384 plugin/icedteanp/java/sun/applet/PluginAppletViewer.java > --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Wed Jul 11 16:18:58 2012 +0200 > +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Mon Jul 16 22:08:38 2012 +0200 > @@ -745,9 +745,19 @@ > long maxTimeToSleep = APPLET_TIMEOUT; > panelLock.lock(); > try { > - while (panel == null || !panel.isAlive()) > + while (panel == null || !panel.isAlive()) { > maxTimeToSleep -= waitTillTimeout(panelLock, panelLive, > maxTimeToSleep); > + > + /* we already waited till timeout, give up here directly, > + * instead of waiting 180s again in below waitForAppletInit() > + */ > + if(maxTimeToSleep < 0) { > + panelLock.unlock(); > + streamhandler.write("instance " + identifier + " reference " + -1 + " fatalError: " + "Initialization timed out"); > + return; > + } > + } > } > finally { > panelLock.unlock(); > -- Cheers, Deepak From ddadacha at redhat.com Mon Jul 16 14:57:48 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Mon, 16 Jul 2012 17:57:48 -0400 Subject: [rfc][icedtea-web] PAV - Add missing timeout check In-Reply-To: <20120716202212.GD15891@redhat.com> References: <9AA653DD-1943-4AC8-B69A-9A59751405D3@m3y3r.de> <20120716202212.GD15891@redhat.com> Message-ID: <50048E5C.1010101@redhat.com> On 16/07/12 04:22 PM, Deepak Bhole wrote: > * Thomas Meyer [2012-07-16 16:17]: >> Resend. >> > > Sorry, missed this. Looks fine to me, OK for head. > Needs a ChangeLog entry though, couldn't see one anywhere. =) Cheers, Danesh > Thanks! > Deepak > >> # HG changeset patch >> # Parent 01544fb823842910b062b5b05b6872812ceecb98 >> >> diff -r 01544fb82384 plugin/icedteanp/java/sun/applet/PluginAppletViewer.java >> --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Wed Jul 11 16:18:58 2012 +0200 >> +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Mon Jul 16 22:08:38 2012 +0200 >> @@ -745,9 +745,19 @@ >> long maxTimeToSleep = APPLET_TIMEOUT; >> panelLock.lock(); >> try { >> - while (panel == null || !panel.isAlive()) >> + while (panel == null || !panel.isAlive()) { >> maxTimeToSleep -= waitTillTimeout(panelLock, panelLive, >> maxTimeToSleep); >> + >> + /* we already waited till timeout, give up here directly, >> + * instead of waiting 180s again in below waitForAppletInit() >> + */ >> + if(maxTimeToSleep < 0) { >> + panelLock.unlock(); >> + streamhandler.write("instance " + identifier + " reference " + -1 + " fatalError: " + "Initialization timed out"); >> + return; >> + } >> + } >> } >> finally { >> panelLock.unlock(); >> > From bugzilla-daemon at icedtea.classpath.org Mon Jul 16 23:20:10 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 17 Jul 2012 06:20:10 +0000 Subject: [Bug 1073] Chrome can't load plugin In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1073 --- Comment #2 from birdstream at hotmail.com --- Hi! After sorting out some missing dependencies, GTK+-2.0 and mozilla-plugin (which is found in the xulrunner-2.0-dev package in ubuntu, took me a while to figure that one out) i managed to follow your instructions and voil?, It works again! =) Thank you! Regards Joakim -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120717/a7c9f19c/attachment.html From jvanek at redhat.com Tue Jul 17 01:11:34 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Tue, 17 Jul 2012 10:11:34 +0200 Subject: [rfc][icedtea-web] PAV - Add missing timeout check In-Reply-To: <50048E5C.1010101@redhat.com> References: <9AA653DD-1943-4AC8-B69A-9A59751405D3@m3y3r.de> <20120716202212.GD15891@redhat.com> <50048E5C.1010101@redhat.com> Message-ID: <50051E36.1010207@redhat.com> Imho worthy also for 1.3 J. On 07/16/2012 11:57 PM, Danesh Dadachanji wrote: > > > On 16/07/12 04:22 PM, Deepak Bhole wrote: >> * Thomas Meyer [2012-07-16 16:17]: >>> Resend. >>> >> >> Sorry, missed this. Looks fine to me, OK for head. >> > > Needs a ChangeLog entry though, couldn't see one anywhere. =) > > Cheers, > Danesh > >> Thanks! >> Deepak >> >>> # HG changeset patch >>> # Parent 01544fb823842910b062b5b05b6872812ceecb98 >>> >>> diff -r 01544fb82384 plugin/icedteanp/java/sun/applet/PluginAppletViewer.java >>> --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Wed Jul 11 16:18:58 2012 +0200 >>> +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Mon Jul 16 22:08:38 2012 +0200 >>> @@ -745,9 +745,19 @@ >>> long maxTimeToSleep = APPLET_TIMEOUT; >>> panelLock.lock(); >>> try { >>> - while (panel == null || !panel.isAlive()) >>> + while (panel == null || !panel.isAlive()) { >>> maxTimeToSleep -= waitTillTimeout(panelLock, panelLive, >>> maxTimeToSleep); >>> + >>> + /* we already waited till timeout, give up here directly, >>> + * instead of waiting 180s again in below waitForAppletInit() >>> + */ >>> + if(maxTimeToSleep < 0) { >>> + panelLock.unlock(); >>> + streamhandler.write("instance " + identifier + " reference " + -1 + " >>> fatalError: " + "Initialization timed out"); >>> + return; >>> + } >>> + } >>> } >>> finally { >>> panelLock.unlock(); >>> >> > From ptisnovs at icedtea.classpath.org Tue Jul 17 01:32:53 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Tue, 17 Jul 2012 08:32:53 +0000 Subject: /hg/gfx-test: * src/org/gfxtest/testsuites/PrintTestPaths.java: Message-ID: changeset bbe4d2bd6894 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=bbe4d2bd6894 author: Pavel Tisnovsky date: Tue Jul 17 10:35:26 2012 +0200 * src/org/gfxtest/testsuites/PrintTestPaths.java: Added helper methods and three new tests to this test suite. diffstat: ChangeLog | 5 + src/org/gfxtest/testsuites/PrintTestPaths.java | 273 ++++++++++++++++++++++++- 2 files changed, 277 insertions(+), 1 deletions(-) diffs (303 lines): diff -r c49d35064c61 -r bbe4d2bd6894 ChangeLog --- a/ChangeLog Mon Jul 16 10:34:12 2012 +0200 +++ b/ChangeLog Tue Jul 17 10:35:26 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-17 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/PrintTestPaths.java: + Added helper methods and three new tests to this test suite. + 2012-07-16 Pavel Tisnovsky * src/org/gfxtest/framework/GrayscalePalette.java: diff -r c49d35064c61 -r bbe4d2bd6894 src/org/gfxtest/testsuites/PrintTestPaths.java --- a/src/org/gfxtest/testsuites/PrintTestPaths.java Mon Jul 16 10:34:12 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestPaths.java Tue Jul 17 10:35:26 2012 +0200 @@ -40,7 +40,17 @@ package org.gfxtest.testsuites; +import java.awt.Graphics2D; +import java.awt.geom.Path2D; + + + +import org.gfxtest.callbacks.DiagonalLineDrawCallbacks; +import org.gfxtest.callbacks.HorizontalLineDrawCallbacks; +import org.gfxtest.callbacks.VerticalLineDrawCallbacks; import org.gfxtest.framework.PrintTest; +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; @@ -65,7 +75,268 @@ @Zoom(1) public class PrintTestPaths extends PrintTest { - + /** + * Create Path2D which contains just one line. + * @param x1 the first point's x coordinate. + * @param y1 the first point's y coordinate. + * @param x2 the second point's x coordinate. + * @param y2 the second point's y coordinate. + * @return newly created path + */ + private static Path2D createLinePath(int x1, int y1, int x2, int y2) + { + Path2D path = new Path2D.Float(); + path.moveTo(x1, y1); + path.lineTo(x2, y2); + return path; + } + + /** + * Method which renders set of horizontal lines using various colors and + * stroke styles. For each line, the callback function/method is called to + * perform all required setup. Lines are represented by a Path object. + * + * @param image + * image to which lines are to be drawn + * @param graphics2d + * graphics canvas + * @param verticalStep + * between two near lines + * @param horizontalLineDrawCallbacks + * class containing set of callback methods + */ + private static void drawHorizontalLines(TestImage image, Graphics2D graphics, int verticalStep, HorizontalLineDrawCallbacks horizontalLineDrawCallbacks) + { + // setup rendering + horizontalLineDrawCallbacks.setup(image, graphics); + + // image width and height + final int width = image.getWidth(); + final int height = image.getHeight(); + + // horizontal coordinates of line endpoints + final int x1 = BORDER; + final int x2 = width - BORDER; + + // index to color palette + int colorIndex = 0; + + // draw all lines onto a paper + for (int y = 0; y < height; y += verticalStep) + { + // setup can be made for each line + horizontalLineDrawCallbacks.iterationCallBack(y, colorIndex++); + // create new path which contains just one line + Path2D path = createLinePath(x1, y, x2, y); + // render the line + graphics.draw(path); + } + + // cleanup rendering + horizontalLineDrawCallbacks.cleanup(); + } + + /** + * Method which renders set of vertical lines using various colors and + * stroke styles. For each line, the callback function/method is called to + * perform all required setup. Lines are represented by a Path object. + * + * @param image + * image to which lines are to be drawn + * @param graphics2d + * graphics canvas + * @param horizontalStep + * between two near lines + * @param verticalLineDrawCallbacks + * class containing set of callback methods + */ + private static void drawVerticalLines(TestImage image, Graphics2D graphics, int horizontalStep, VerticalLineDrawCallbacks verticalLineDrawCallbacks) + { + // setup rendering + verticalLineDrawCallbacks.setup(image, graphics); + + // image width and height + final int width = image.getWidth(); + final int height = image.getHeight(); + + // horizontal coordinates of line endpoints + final int y1 = BORDER; + final int y2 = height - BORDER; + + // index to color palette + int colorIndex = 0; + + // draw all lines onto a paper + for (int x = 0; x < width; x += horizontalStep) + { + // setup can be made for each line + verticalLineDrawCallbacks.iterationCallBack(x, colorIndex++); + // create new path which contains just one line + Path2D path = createLinePath(x, y1, x, y2); + // render the line + graphics.draw(path); + } + + // cleanup rendering + verticalLineDrawCallbacks.cleanup(); + } + + /** + * Method which renders set of diagonal lines using various colors and + * stroke styles. For each line, the callback function/method is called to + * perform all required setup. Lines are represented by a Path object. + * + * @param image + * image to which lines are to be drawn + * @param graphics2d + * graphics canvas + * @param diagonalStep + * between two near lines + * @param diagonalLineDrawCallbacks + * class containing set of callback methods + */ + private static void drawDiagonalLines(TestImage image, Graphics2D graphics, int diagonalStep, DiagonalLineDrawCallbacks diagonalLineDrawCallbacks) + { + // setup rendering + diagonalLineDrawCallbacks.setup(image, graphics); + + // image width and height + final int width = image.getWidth(); + final int height = image.getHeight(); + + // length of the "path" + final int length = width + height - BORDER * 8; + + // coordinates of the first line + int x1 = BORDER; + int y1 = BORDER; + int x2 = BORDER; + int y2 = BORDER; + + // index to color palette + int colorIndex = 0; + + // draw all lines onto a paper + for (int d = 0; d < length; d += DIAGONAL_STEP) + { + // first endpoint + if (x1 < width - BORDER * 2) + { + x1 += DIAGONAL_STEP; + } + else + { + y1 += DIAGONAL_STEP; + } + // second endpoint + if (y2 < height - BORDER * 2) + { + y2 += DIAGONAL_STEP; + } + else + { + x2 += DIAGONAL_STEP; + } + // setup can be made for each line + diagonalLineDrawCallbacks.iterationCallBack(d, colorIndex++); + // create new path which contains just one line + Path2D path = createLinePath(x1, y1, x2, y2); + // render the line + graphics.draw(path); + } + + // cleanup rendering + diagonalLineDrawCallbacks.cleanup(); + } + + /** + * Test basic behavior of method Graphics.draw(Path). Horizontal lines are + * rendered with default width and default end caps. Color of all rendered + * lines are set to black. Lines are represented by a Path object. + * + * @param image + * image to which lines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawHorizontalLinesBasicStyle(TestImage image, Graphics2D graphics) + { + drawHorizontalLines(image, graphics, VERTICAL_STEP, new HorizontalLineDrawCallbacks() + { + /** + * Callback function called before each line is rendered. + */ + @Override + public void iterationCallBack(int y, int index) + { + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.draw(Path). Vertical lines are + * rendered with default width and default end caps. Color of all rendered + * lines are set to black. Lines are represented by a Path object. + * + * @param image + * image to which lines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawVerticalLinesBasicStyle(TestImage image, Graphics2D graphics) + { + drawVerticalLines(image, graphics, HORIZONTAL_STEP, new VerticalLineDrawCallbacks() + { + /** + * Callback function called before each line is rendered. + */ + @Override + public void iterationCallBack(int x, int index) + { + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.draw(Path). + * Diagonal lines are rendered with default width and default end caps. + * Color of all rendered lines are set to black. + * Lines are represented by a Path object. + * + * @param image + * image to which lines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawDiagonalLinesBasicStyle(TestImage image, Graphics2D graphics) + { + drawDiagonalLines(image, graphics, DIAGONAL_STEP, new DiagonalLineDrawCallbacks() + { + /** + * Callback function called before each line is rendered. + */ + @Override + public void iterationCallBack(int x, int index) + { + return; + } + }); + + // test return value + return TestResult.PASSED; + } + /** * Entry point to the test suite. * From ptisnovs at icedtea.classpath.org Tue Jul 17 04:46:31 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Tue, 17 Jul 2012 11:46:31 +0000 Subject: /hg/rhino-tests: Various enhancements of report generator tool: Message-ID: changeset 581695c2fab3 in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=581695c2fab3 author: Pavel Tisnovsky date: Tue Jul 17 13:49:01 2012 +0200 Various enhancements of report generator tool: * src/org/RhinoTests/Reporter/StringUtils.java: * src/org/RhinoTests/Reporter/TestResult.java: * src/org/RhinoTests/Reporter/GraphPagesGenerator.java: Added support for new placeholder types - JRE info + OS info. * src/org/RhinoTests/Reporter/IndexPageGenerator.java: Changed method of replacement names of placeholders to their real values. * templates/index.html: Added new placeholder types to this template - JRE info + OS info. * Makefile: Fixed command which creates report directory. diffstat: ChangeLog | 12 ++++ Makefile | 2 +- src/org/RhinoTests/Reporter/GraphPagesGenerator.java | 4 +- src/org/RhinoTests/Reporter/IndexPageGenerator.java | 56 +++++++++++++------ src/org/RhinoTests/Reporter/StringUtils.java | 47 ++++++++++++++++- src/org/RhinoTests/Reporter/TestResult.java | 36 ++++++++++++- templates/index.html | 38 ++++++++++++- 7 files changed, 169 insertions(+), 26 deletions(-) diffs (319 lines): diff -r be25709c3ecd -r 581695c2fab3 ChangeLog --- a/ChangeLog Mon Jul 16 16:16:03 2012 +0200 +++ b/ChangeLog Tue Jul 17 13:49:01 2012 +0200 @@ -1,3 +1,15 @@ +2012-07-17 Pavel Tisnovsky + + * src/org/RhinoTests/Reporter/StringUtils.java: + * src/org/RhinoTests/Reporter/TestResult.java: + * src/org/RhinoTests/Reporter/GraphPagesGenerator.java: + Added support for new placeholder types - JRE info + OS info. + * src/org/RhinoTests/Reporter/IndexPageGenerator.java: + Changed method of replacement names of placeholders to their real values. + * templates/index.html: + Added new placeholder types to this template - JRE info + OS info. + * Makefile: Fixed command which creates report directory. + 2012-07-16 Pavel Tisnovsky * Makefile: Make sure the report dir is created when diff -r be25709c3ecd -r 581695c2fab3 Makefile --- a/Makefile Mon Jul 16 16:16:03 2012 +0200 +++ b/Makefile Tue Jul 17 13:49:01 2012 +0200 @@ -112,7 +112,7 @@ done report: $(ALL_CLASSES) - mkdir $(REPORT_DIR) + mkdir -p $(REPORT_DIR) cp -u $(TEMPLATE_DIR)/style.css $(REPORT_DIR)/style.css $(JAVA) -cp $(BUILD_DIR) org.RhinoTests.Reporter.Reporter -template-dir=$(TEMPLATE_DIR) -log-dir=$(LOGS_DIR) -report-dir=$(REPORT_DIR) -date=$(DATE) -tests="$(TESTS)" diff -r be25709c3ecd -r 581695c2fab3 src/org/RhinoTests/Reporter/GraphPagesGenerator.java --- a/src/org/RhinoTests/Reporter/GraphPagesGenerator.java Mon Jul 16 16:16:03 2012 +0200 +++ b/src/org/RhinoTests/Reporter/GraphPagesGenerator.java Tue Jul 17 13:49:01 2012 +0200 @@ -53,10 +53,8 @@ public class GraphPagesGenerator { public static void generate(Map>> testResults, CommandLineParameters params) { - createHtmlPageFromTemplate(testResults, params, 1); - createHtmlPageFromTemplate(testResults, params, 2); - createHtmlPageFromTemplate(testResults, params, 5); createHtmlPageFromTemplate(testResults, params, 10); + createHtmlPageFromTemplate(testResults, params, 20); createHtmlPageFromTemplate(testResults, params, 30); createHtmlPageFromTemplate(testResults, params, -1); } diff -r be25709c3ecd -r 581695c2fab3 src/org/RhinoTests/Reporter/IndexPageGenerator.java --- a/src/org/RhinoTests/Reporter/IndexPageGenerator.java Mon Jul 16 16:16:03 2012 +0200 +++ b/src/org/RhinoTests/Reporter/IndexPageGenerator.java Tue Jul 17 13:49:01 2012 +0200 @@ -40,9 +40,13 @@ package org.RhinoTests.Reporter; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; import java.util.LinkedList; import java.util.List; import java.util.Map; +import java.util.regex.Matcher; +import java.util.regex.Pattern; /** * @@ -51,12 +55,14 @@ public class IndexPageGenerator { - public static void generate(Map>> testResults, CommandLineParameters params) { + public static void generate(Map>> testResults, CommandLineParameters params) { + String date = params.getDate(); if (!testResults.containsKey(params.getDate())) { - throw new RuntimeException("Results for " + params.getDate() + " don't exist"); + throw new RuntimeException("Results for " + date + " don't exist"); } - Map> testResultForDate = testResults.get(params.getDate()); + Map> testResultForDate = testResults.get(date); TestResult testResult = TestResult.readSummary(testResultForDate); + testResult.setDate(date); createIndexPageFromTemplate(testResult, params); } @@ -64,24 +70,40 @@ List template = FileUtils.readTextFile(params.getTemplateDir() + "/index.html"); List out = new LinkedList(); // iterate through whole template + Pattern pattern = Pattern.compile("\\$\\{.*\\}"); for (String templateLine : template) { - // replace text in template where needed - if (templateLine.contains("${DATE}")) { - templateLine = templateLine.replace("${DATE}", params.getDate()); - } - if (templateLine.contains("${PASSED}")) { - templateLine = templateLine.replace("${PASSED}", "" + testResult.getPassed()); - } - if (templateLine.contains("${FAILED}")) { - templateLine = templateLine.replace("${FAILED}", "" + testResult.getFailed()); - } - if (templateLine.contains("${ERROR}")) { - templateLine = templateLine.replace("${ERROR}", "" + testResult.getError()); - } - out.add(templateLine); + out.add(replacePlaceholder(testResult, pattern, templateLine)); } // write list of string to a file with given name FileUtils.writeTextFile(params.getReportDir() + "/index.html", out); } + private static String replacePlaceholder(TestResult testResult, Pattern pattern, String templateLine) { + Matcher matcher = pattern.matcher(templateLine); + // if some pattern ${PLACEHOLDER} is found on the template line, + // it is replaced by the result value of method TestResult.getPlaceholder() + if (matcher.find()) { + String matcherGroup = matcher.group(); + String placeholderName = StringUtils.getPlaceholderMethodName(matcherGroup); + try { + Method method = testResult.getClass().getMethod(placeholderName); + Object result = method.invoke(testResult); + if (result != null) { + return templateLine.replace(matcherGroup, result.toString()); + } + } catch (SecurityException e) { + e.printStackTrace(); + } catch (NoSuchMethodException e) { + e.printStackTrace(); + } catch (IllegalArgumentException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } catch (InvocationTargetException e) { + e.printStackTrace(); + } + } + return templateLine; + } + } diff -r be25709c3ecd -r 581695c2fab3 src/org/RhinoTests/Reporter/StringUtils.java --- a/src/org/RhinoTests/Reporter/StringUtils.java Mon Jul 16 16:16:03 2012 +0200 +++ b/src/org/RhinoTests/Reporter/StringUtils.java Tue Jul 17 13:49:01 2012 +0200 @@ -48,7 +48,8 @@ * @author Pavel Tisnovsky */ public class StringUtils { - /** + + /** * Get substring from given string in case that both delimiters are strings * too. * @@ -79,4 +80,48 @@ // trim unnecessary leading and trailing whitespace characters return s.trim(); } + + /** + * Convert UPPER_CASE_STYLE name into a CamelCase + * + * @param string + * input string which could contains names divided by underscore + * character + * @return camel case variant of the input string + */ + public static String toCamelCase(String string) { + String[] parts = string.split("_"); + String camelCaseString = ""; + for (String part : parts) { + camelCaseString = camelCaseString + convertToProperCase(part); + } + return camelCaseString; + } + + /** + * Convert a string to a new form where the first letter is upper case and + * other letters are lower case + * + * @param string + * input string + * @return input string with capitalized first letter + */ + public static String convertToProperCase(String string) { + return string.substring(0, 1).toUpperCase() + string.substring(1).toLowerCase(); + } + + /** + * Convert "PLACEHOLDER_NAME" into the name of the getter: + * "getPlaceholderName" + * + * @param placeholderName + * @return + */ + public static String getPlaceholderMethodName(String placeholderName) { + String temporaryName = placeholderName.substring(1); + temporaryName = temporaryName.substring(1, temporaryName.length() - 1); + temporaryName = "get" + StringUtils.toCamelCase(temporaryName.toLowerCase()); + return temporaryName; + } + } diff -r be25709c3ecd -r 581695c2fab3 src/org/RhinoTests/Reporter/TestResult.java --- a/src/org/RhinoTests/Reporter/TestResult.java Mon Jul 16 16:16:03 2012 +0200 +++ b/src/org/RhinoTests/Reporter/TestResult.java Tue Jul 17 13:49:01 2012 +0200 @@ -53,11 +53,13 @@ private int passed; private int failed; private int error; + private String date; public TestResult() { this.setPassed(0); this.setFailed(0); this.setError(0); + this.setDate(null); } /** @@ -122,5 +124,37 @@ } return testResult; } - + + public String getDate() { + return this.date; + } + + public String getOsName() { + return System.getProperty("os.name"); + } + + public String getOsVer() { + return System.getProperty("os.version"); + } + + public String getOsArch() { + return System.getProperty("os.arch"); + } + + public String getJavaVersion() { + return System.getProperty("java.version"); + } + + public String getVmName() { + return System.getProperty("java.vm.version"); + } + + public String getVmVersion() { + return System.getProperty("java.vm.name"); + } + + public void setDate(String date) { + this.date = date; + } + } diff -r be25709c3ecd -r 581695c2fab3 templates/index.html --- a/templates/index.html Mon Jul 16 16:16:03 2012 +0200 +++ b/templates/index.html Tue Jul 17 13:49:01 2012 +0200 @@ -2,14 +2,14 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - Rhino tests report + Rhino tests report: JDK ${JAVA_VERSION} -

Rhino tests report

+

Rhino tests report: JDK ${JAVA_VERSION}


@@ -49,11 +49,43 @@ Graphs -  All tests +  All tests  Last n results: [10][20][30] + +   + + System info + + OS name + ${OS_NAME} + + + Version + ${OS_VER} + + + Architecture + ${OS_ARCH} + + +   + + JDK/JRE info + + Java version + ${JAVA_VERSION} + + + VM name + ${VM_NAME} + + + VM version + ${VM_VERSION} + From bugzilla-daemon at icedtea.classpath.org Tue Jul 17 06:10:13 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 17 Jul 2012 13:10:13 +0000 Subject: [Bug 1073] Chrome can't load plugin In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1073 --- Comment #3 from Adam Domurad --- Glad to hear it. Apologies for completely blanking on the depencies though! "yum-builddep icedtea-web" Should have been on my list of commands. The xul-runner dependency is non-obvious - I remember taking a while to figure that one out too before learning the builddep command :) -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120717/5bb72c52/attachment.html From bugzilla-daemon at icedtea.classpath.org Tue Jul 17 06:45:14 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 17 Jul 2012 13:45:14 +0000 Subject: [Bug 1073] Chrome can't load plugin In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1073 --- Comment #4 from Adam Domurad --- Doh, just realized you were on ubuntu, so that yum command wouldn't work. I'll list dependencies next time around. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120717/b3ddc825/attachment.html From adomurad at redhat.com Tue Jul 17 12:07:38 2012 From: adomurad at redhat.com (adomurad) Date: Tue, 17 Jul 2012 15:07:38 -0400 Subject: [RFC][icedtea-web]: PR1049 fix - extension jnlp with empty jars In-Reply-To: <4FFB0CD7.8020509@redhat.com> References: <4FFB0CD7.8020509@redhat.com> Message-ID: <1342552058.14979.15.camel@linux-laptop> Hey thanks for tackling this, comments inline. On Mon, 2012-07-09 at 12:54 -0400, Saad Mohammad wrote: > Hi, > > The following patch fixes PR1049 and accepts extension loaders > containing only empty jars (jars with no content or only META-INF/*). > The handling of empty jars behaves much like the proprietary plugin, it > will not pop up any security dialog even if the content of META-INF/* is > signed. Changelog and reproducers are also attached. > > http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1049 > > [More information] > Presently, JarCertVerifier verifies empty jars with the result as > verifyResult.SIGNED_OK and causes problems when > JarCertVerifier.isFullySignedByASingleCert() is called because the list > of certificates is empty (certificates arenot added from empty jars if > found). This patch resolves this issue by keeping track > ofJarCertVerifier with allempty jars. > > [Changelog] > > 2012-07-09 Saad Mohammad > > * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: > (initializeResources): Removes the display of the security dialog for > loaders with only empty jars. > * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: > (JarCertVerifier): Tracks whether all jars verified are empty jars. > (hasAllEmptyJars): Returns true if all jars verified are empty jars. > (verifyJars): Checks whether signable entries and certificates are > found and > decides if all jars are empty jars. > (isFullySignedByASingleCert): If all jars are emptyJars, returns true. > * > tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJar.jnlp: > Launching jnlp with the resource of a the main jar and an extension > jnlp. > * > tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarExtension.jnlp: > Extension jnlp containing only an empty jar. > * > tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java: > Testcase that tests jnlp files with empty jars. > * > tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp: > Launches SignedJarResource class directly. > Reproducer patch: > diff --git a/tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJar.jnlp b/tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJar.jnlp > [snipped] > +*********************************************************************** > +This file contains the main jar and an extension jnlp for its resources - the extension jnlp > +contains a empty jar > +*********************************************************************** > + --> > + > + > + > + EmptySignedJar > + IcedTea > + > + EmptySignedJar > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarExtension.jnlp b/tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarExtension.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarExtension.jnlp > @@ -0,0 +1,58 @@ > + > + > + > + > + EmptySignedJarExtension > + IcedTea > + > + EmptySignedJarExtension > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java b/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java > @@ -0,0 +1,66 @@ > +/* EmptySignedJar.java > > +> [snipped] > + > +import java.util.Arrays; > +import java.util.Collections; > +import java.util.List; > +import net.sourceforge.jnlp.ServerAccess; > +import net.sourceforge.jnlp.annotations.Bug; > + > +import org.junit.Assert; > +import org.junit.Test; > + > +public class EmptySignedJarTest { > + > + private static ServerAccess server = new ServerAccess(); > + private final List l = Collections.unmodifiableList(Arrays.asList(new String[] { "-Xtrustall" })); > + private final String jarOutput = "Running SignedJarResource.."; > + > + @Test > + public void checkingForRequiredResources() throws Exception { > + String s = "Running SignedJarResource.."; > + ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJarResource.jnlp"); > + Assert.assertTrue("Could not locate SignedJarResource class within SignedJarResource jar", pr.stdout.contains(s)); > + } > + > + @Bug(id = "PR1049") > + @Test > + public void usingExtensionWithEmptyJar() throws Exception { > + ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/EmptySignedJar.jnlp"); > + Assert.assertTrue("Stdout should contain " + jarOutput + " but did not", pr.stdout.contains(jarOutput)); > + } > +} This test 'passes' with HEAD ? It does bring up a pop up window, however this is not a proper test if it claims a pass if you close the window... > diff --git a/tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp b/tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp > @@ -0,0 +1,62 @@ > +[snipped] > +*********************************************************************** > +Launches SignedJarResource directly > +*********************************************************************** > + --> > + > + > + > + SignedJarResource > + IcedTea > + > + SignedJarResource > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + Patch itself: > diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java > @@ -600,7 +600,7 @@ > file.setSignedJNLPAsMissing(); > > //user does not trust this publisher > - if (!jcv.getAlreadyTrustPublisher()) { > + if (!jcv.getAlreadyTrustPublisher() && !jcv.hasAllEmptyJars()) { > checkTrustWithUser(jcv); > } else { > /** > diff --git a/netx/net/sourceforge/jnlp/tools/JarCertVerifier.java b/netx/net/sourceforge/jnlp/tools/JarCertVerifier.java > --- a/netx/net/sourceforge/jnlp/tools/JarCertVerifier.java > +++ b/netx/net/sourceforge/jnlp/tools/JarCertVerifier.java > @@ -103,6 +103,16 @@ > > private int totalSignableEntries = 0; > > + /** Whether all jars are empty (jars with no content or only META-INF/*) */ > + private boolean allEmptyJars = false; I think this isn't something JCV should concern itself with. I think a better solution would be to check if there are non-META_INF/ entries, and only run JarCertVerifier then. Or, as an alternative, you could remain this to 'triviallySigned', to align it more with the intent of JCV. > + > + /** > + * Return true if all jars are empty jars > + */ > + public boolean hasAllEmptyJars() { > + return allEmptyJars; > + } > + As above, if you're going to keep this, a clearer name will probably be 'isTriviallySigned'. > /* (non-Javadoc) > * @see net.sourceforge.jnlp.tools.CertVerifier2#getAlreadyTrustPublisher() > */ > @@ -167,6 +177,9 @@ > */ > public boolean isFullySignedByASingleCert() { > > + if(allEmptyJars) > + return true; > + Spacing issue, it helps to apply autoformat whenever you write code (it may mess up rest of file, so highlight just your code before doing so). > for (CertPath cPath : certs.keySet()) { > // If this cert has signed everything, return true > if (certs.get(cPath) == totalSignableEntries) > @@ -197,6 +210,7 @@ > > String localFile = jarFile.getAbsolutePath(); > verifyResult result = verifyJar(localFile); > + allEmptyJars = false; > > if (result == verifyResult.UNSIGNED) { > unverifiedJars.add(localFile); > @@ -205,6 +219,7 @@ > verifiedJars.add(localFile); > } else if (result == verifyResult.SIGNED_OK) { > verifiedJars.add(localFile); > + allEmptyJars = totalSignableEntries <= 0 && certs.size() <= 0; > } > } catch (Exception e) { > // We may catch exceptions from using verifyJar() Overall patch looks OK... however behaviour of reproducers does not seem to change when it is applied ? From adomurad at redhat.com Tue Jul 17 13:37:41 2012 From: adomurad at redhat.com (adomurad) Date: Tue, 17 Jul 2012 16:37:41 -0400 Subject: [RFC][icedtea-web]: Added signed jnlp tests for applications using multiple jars In-Reply-To: <4FF4B022.2000608@redhat.com> References: <4FF4B022.2000608@redhat.com> Message-ID: <1342557461.15784.16.camel@linux-laptop> Hi Saad. Thanks for the patches! General question, what motivated you to test these aspects (which all seem to pass?) You'll have to forgive my ignorance of jnlp templates, I would appreciate a brief elaboration on the aspects under test here. Comments inline. On Wed, 2012-07-04 at 17:05 -0400, Saad Mohammad wrote: > Hello, > > I have attached the patch that tests the launching of applications which > have multiple jars containing signed jnlp files. > > ChangeLog: > > 2012-07-05 Saad Mohammad > > Added multiple jars with signed jnlp tests. > * > tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp: > Launches SignedJarResource class directly. > * > tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithMatchingSignedJnlp.jnlp: > * > tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithUnmatchingSignedJnlp.jnlp: > * > tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithoutSignedJnlp.jnlp: > Launching jnlp file that contains multiple jars as its resource. > * > tests/reproducers/signed/SignedJnlpMultipleJars/srcs/JNLP-INF/APPLICATION.jnlp: > Signed jnlp file. > * > tests/reproducers/signed/SignedJnlpMultipleJars/srcs/SignedJnlpApplication.java: > A simple java class that outputs a string. > * > tests/reproducers/signed/SignedJnlpMultipleJars/testcases/SignedJnlpMultipleJarsTest.java: > Testcase that tests the launching of jnlp files containing multple jar > as its resources. > * > tests/reproducers/signed/SignedJnlpResource/resources/SignedJnlpResource.jnlp: > Launches SignedJnlpResource class. > * > tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithMatchingSignedJnlpTemplate.jnlp: > * > tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithUnmatchingSignedJnlpTemplate.jnlp: > Launching jnlp file that contains multiple jars as its resource. > * > tests/reproducers/signed/SignedJnlpResource2/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp: > Signed jnlp file. > * > tests/reproducers/signed/SignedJnlpResource2/srcs/SignedJnlpApplicationTemplate.java: > A simple java class that outputs a string. > > /* SignedJnlpMultipleJarsTest.java > Copyright (C) 2012 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.util.Arrays; > import java.util.Collections; > import java.util.List; > import net.sourceforge.jnlp.ServerAccess; > import org.junit.Assert; > import org.junit.Test; > > public class SignedJnlpMultipleJarsTest { > > private static ServerAccess server = new ServerAccess(); > private final List l = Collections.unmodifiableList(Arrays.asList(new String[] { "-Xtrustall" })); > private final String signedJnlpException = "net.sourceforge.jnlp.LaunchException: Fatal: Application Error: " > + "The signed JNLP file did not match the launching JNLP file. Missing Resource: Signed Application " > + "did not match launching JNLP File"; > > @Test > public void checkingForRequiredResources() throws Exception { > String s = "Running SignedJarResource.."; > ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJarResource.jnlp"); > Assert.assertTrue("Could not locate SignedJarResource class within SignedJarResource jar", pr.stdout.contains(s)); The failure messages here and below assume too much based on the condition. > > s = "Running SignedJnlpResource.."; > pr = server.executeJavawsHeadless(l, "/SignedJnlpResource.jnlp"); > Assert.assertTrue("Could not locate SignedJnlpResource class within SignedJnlpResource jar", pr.stdout.contains(s)); What functionality does this test exactly ? It seems like SignedJnlpResource more or less just loads a .jar in a fashion that is already well tested. > > pr = server.executeJavawsHeadless(l, "/MainJarWithMatchingSignedJnlpTemplate.jnlp"); > s = "Ending signed application_template in main"; > Assert.assertTrue("Could not locate SignedJnlpApplicationTemplate class within SignedJnlpResource2 jar", pr.stdout.contains(s)); How is MainJarWithMatchingSignedJnlpTemplate.jnlp being used in the test other than this ? If this is aiming to test that it runs correctly than it should be its own test imo. > > pr = server.executeJavawsHeadless(l, "/MainJarWithMatchingSignedJnlp.jnlp"); > s = "Ending signed application in main"; > Assert.assertTrue("Could not locate SignedJnlpApplication class within SignedJnlpMultipleJars jar", pr.stdout.contains( > } > > @Test > public void mainJarWithUnmatchingSignedJnlpApplication() throws Exception { > ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/MainJarWithUnmatchingSignedJnlp.jnlp"); > Assert.assertTrue("Stdout should contains " + signedJnlpException + " but did not", pr.stderr.contains(signedJnlpException)); contains -> contain, same below. > } > > @Test > public void mainJarWithUnmatchingSignedJnlpTemplate() throws Exception { > ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/MainJarWithUnmatchingSignedJnlpTemplate.jnlp"); > Assert.assertTrue("Stdout should contains " + signedJnlpException + " but did not", pr.stderr.contains(signedJnlpException)); > } > > @Test > public void mainJarWithoutSignedJnlp() throws Exception { > ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/MainJarWithoutSignedJnlp.jnlp"); > String s = "Running SignedJarResource.."; > Assert.assertTrue("Stdout should contains " + s + " but did not", pr.stdout.contains(s)); > } > > } > > diff --git a/tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp b/tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp > @@ -0,0 +1,62 @@ > + > + > + > + > + SignedJarResource > + IcedTea > + > + SignedJarResource > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + What does this JNLP try to test ? It doesn't seem to add any extra testing coverage of features. > diff --git a/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithMatchingSignedJnlp.jnlp b/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithMatchingSignedJnlp.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithMatchingSignedJnlp.jnlp > @@ -0,0 +1,64 @@ > + > + > + > + > + Matching Signed JNLP Value > + IcedTea > + > + Matching Signed JNLP Value > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithUnmatchingSignedJnlp.jnlp b/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithUnmatchingSignedJnlp.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithUnmatchingSignedJnlp.jnlp > @@ -0,0 +1,64 @@ > + > + > + > + > + DOES NOT Match Signed JNLP Value > + IcedTea > + > + DOES NOT Match Signed JNLP Value > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithoutSignedJnlp.jnlp b/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithoutSignedJnlp.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithoutSignedJnlp.jnlp > @@ -0,0 +1,65 @@ > + > + > + > + > + Does not have a Signed Jnlp > + IcedTea > + > + Does not have a Signed Jnlp > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/SignedJnlpMultipleJars/srcs/JNLP-INF/APPLICATION.jnlp b/tests/reproducers/signed/SignedJnlpMultipleJars/srcs/JNLP-INF/APPLICATION.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpMultipleJars/srcs/JNLP-INF/APPLICATION.jnlp > @@ -0,0 +1,64 @@ > + > + > + > + > + Matching Signed JNLP Value > + IcedTea > + > + Matching Signed JNLP Value > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/SignedJnlpMultipleJars/srcs/SignedJnlpApplication.java b/tests/reproducers/signed/SignedJnlpMultipleJars/srcs/SignedJnlpApplication.java > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpMultipleJars/srcs/SignedJnlpApplication.java > @@ -0,0 +1,56 @@ > +/* SignedJnlpApplication.java > +Copyright (C) 2012 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.lang.reflect.*; > + > +public class SignedJnlpApplication { > + > + @SuppressWarnings({ "unchecked", "rawtypes" }) > + public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, > + IllegalArgumentException, InvocationTargetException { > + System.out.println("Starting signed application in main"); > + > + Class c1 = Class.forName("SignedJarResource"); > + Method m1 = c1.getDeclaredMethod("main", args.getClass()); > + m1.invoke((Object) null, (Object) args); > + > + Class c2 = Class.forName("SignedJnlpResource"); > + Method m2 = c2.getDeclaredMethod("main", args.getClass()); > + m2.invoke((Object) null, (Object) args); > + > + System.out.println("Ending signed application in main"); > + } > +} > > diff --git a/tests/reproducers/signed/SignedJnlpResource/resources/SignedJnlpResource.jnlp b/tests/reproducers/signed/SignedJnlpResource/resources/SignedJnlpResource.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpResource/resources/SignedJnlpResource.jnlp > @@ -0,0 +1,62 @@ > + > + > + > + > + SignedJnlpResource > + IcedTea > + > + SignedJnlpResource > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithMatchingSignedJnlpTemplate.jnlp b/tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithMatchingSignedJnlpTemplate.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithMatchingSignedJnlpTemplate.jnlp > @@ -0,0 +1,64 @@ > + > + > + > + > + Matching Signed Template Value > + IcedTea > + > + Matching Signed Template Value > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithUnmatchingSignedJnlpTemplate.jnlp b/tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithUnmatchingSignedJnlpTemplate.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithUnmatchingSignedJnlpTemplate.jnlp > @@ -0,0 +1,64 @@ > + > + > + > + > + DOES NOT Match Signed Jnlp Template > + IcedTea > + > + DOES NOT Match Signed Jnlp Template > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/SignedJnlpResource2/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp b/tests/reproducers/signed/SignedJnlpResource2/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpResource2/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp > @@ -0,0 +1,64 @@ > + > + > + > + > + Matching Signed Template Value > + IcedTea > + > + Matching Signed Template Value > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/reproducers/signed/SignedJnlpResource2/srcs/SignedJnlpApplicationTemplate.java b/tests/reproducers/signed/SignedJnlpResource2/srcs/SignedJnlpApplicationTemplate.java > new file mode 100644 > --- /dev/null > +++ b/tests/reproducers/signed/SignedJnlpResource2/srcs/SignedJnlpApplicationTemplate.java > @@ -0,0 +1,56 @@ > +/* SignedJnlpApplicationTemplate.java > +Copyright (C) 2012 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.lang.reflect.*; > + > +public class SignedJnlpApplicationTemplate { > + > + @SuppressWarnings({ "unchecked", "rawtypes" }) > + public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, > + IllegalArgumentException, InvocationTargetException { > + System.out.println("Starting signed application_template in main"); > + > + Class c1 = Class.forName("SignedJarResource"); > + Method m1 = c1.getDeclaredMethod("main", args.getClass()); > + m1.invoke((Object) null, (Object) args); > + > + Class c2 = Class.forName("SignedJnlpResource"); > + Method m2 = c2.getDeclaredMethod("main", args.getClass()); > + m2.invoke((Object) null, (Object) args); > + > + System.out.println("Ending signed application_template in main"); > + } > +} From jvanek at redhat.com Wed Jul 18 00:15:49 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Wed, 18 Jul 2012 09:15:49 +0200 Subject: [RFC][icedtea-web]: Added signed jnlp tests for applications using multiple jars In-Reply-To: <1342557461.15784.16.camel@linux-laptop> References: <4FF4B022.2000608@redhat.com> <1342557461.15784.16.camel@linux-laptop> Message-ID: <500662A5.4000609@redhat.com> On 07/17/2012 10:37 PM, adomurad wrote: > Hi Saad. Thanks for the patches! General question, what motivated you to Testing untested combinations, lines and behaviours is always wanted. Some day somebody will do something what will cause following tests to fail. And then we will be happy to have them and so cougth and fix the issue before release! > test these aspects (which all seem to pass?) You'll have to forgive my > ignorance of jnlp templates, I would appreciate a brief elaboration on > the aspects under test here. > > Comments inline. > > On Wed, 2012-07-04 at 17:05 -0400, Saad Mohammad wrote: >> Hello, >> >> I have attached the patch that tests the launching of applications which >> have multiple jars containing signed jnlp files. >> >> ChangeLog: From ptisnovs at icedtea.classpath.org Wed Jul 18 04:34:23 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Wed, 18 Jul 2012 11:34:23 +0000 Subject: /hg/rhino-tests: Added new test case with twenty tests for a cla... Message-ID: changeset bdd13e29e245 in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=bdd13e29e245 author: Pavel Tisnovsky date: Wed Jul 18 13:36:53 2012 +0200 Added new test case with twenty tests for a class ScriptContext. diffstat: ChangeLog | 5 + src/org/RhinoTests/ScriptContextClassTest.java | 369 +++++++++++++++++++++++++ 2 files changed, 374 insertions(+), 0 deletions(-) diffs (385 lines): diff -r 581695c2fab3 -r bdd13e29e245 ChangeLog --- a/ChangeLog Tue Jul 17 13:49:01 2012 +0200 +++ b/ChangeLog Wed Jul 18 13:36:53 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-18 Pavel Tisnovsky + + * src/org/RhinoTests/ScriptContextClassTest.java: + Added new test case with twenty tests for a class ScriptContext. + 2012-07-17 Pavel Tisnovsky * src/org/RhinoTests/Reporter/StringUtils.java: diff -r 581695c2fab3 -r bdd13e29e245 src/org/RhinoTests/ScriptContextClassTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/RhinoTests/ScriptContextClassTest.java Wed Jul 18 13:36:53 2012 +0200 @@ -0,0 +1,369 @@ +/* + Rhino test framework + + Copyright (C) 2011, 2012 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.RhinoTests; + +import java.util.Arrays; +import java.util.ArrayList; +import java.util.List; +import java.lang.reflect.Constructor; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import javax.script.ScriptContext; +import javax.script.SimpleScriptContext; + + + +/** + * Set of tests which check the API of ScriptContext interface using + * Java reflection API. + * + * @author Pavel Tisnovsky + */ +public class ScriptContextClassTest extends BaseRhinoTest { + + /** + * Object that represents the type of ScriptContext. + */ + Class scriptContextClass = null; + + @Override + protected void setUp(String[] args) { + // setup attribute used by tests + this.scriptContextClass = ScriptContext.class; + } + + @Override + protected void tearDown() { + // this block could be empty + return; + } + + /** + * Test for method javax.script.ScriptContext.getClass().isAssignableFrom() + */ + protected void testIsAssignableFrom() { + assertTrue(this.scriptContextClass.isAssignableFrom(ScriptContext.class), + "Method ScriptContext.getClass().isAssignableFrom() returns wrong value"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().isInstance() + */ + protected void testIsInstance() { + assertTrue(this.scriptContextClass.isInstance(new SimpleScriptContext()), + "Method ScriptContext.getClass().isInstance() returns wrong value"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().isInterface() + */ + protected void testIsInterface() { + assertTrue(this.scriptContextClass.isInterface(), + "Method ScriptContext.getClass().isInterface() returns wrong value"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().isLocalClass() + */ + protected void testIsLocalClass() { + assertFalse(this.scriptContextClass.isLocalClass(), + "Method ScriptContext.getClass().isLocalClass() returns wrong value"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().isMemberClass() + */ + protected void testIsMemberClass() { + assertFalse(this.scriptContextClass.isMemberClass(), + "Method ScriptContext.getClass().isMemberClass() returns wrong value"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().isPrimitive() + */ + protected void testIsIsPrimitive() { + assertFalse(this.scriptContextClass.isPrimitive(), + "Method ScriptContext.getClass().isPrimitive() returns wrong value"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().isSynthetic() + */ + protected void testIsIsSynthetic() { + assertFalse(this.scriptContextClass.isSynthetic(), + "Method ScriptContext.getClass().isSynthetic() returns wrong value"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getInterfaces() + */ + protected void testGetInterfaces() { + List interfaces = Arrays.asList(this.scriptContextClass.getInterfaces()); + assertTrue(interfaces.isEmpty(), + "list of implemented interfaces should be empty"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getModifiers() + */ + protected void testGetModifiers() { + int modifiers = this.scriptContextClass.getModifiers(); + assertTrue(Modifier.isPublic(modifiers), + "Method ScriptContext.getClass().getModifiers() - isPublic modifier is set to a wrong value"); + assertFalse(Modifier.isPrivate(modifiers), + "Method ScriptContext.getClass().getModifiers() - isPrivate modifier is set to a wrong value"); + assertFalse(Modifier.isProtected(modifiers), + "Method ScriptContext.getClass().getModifiers() - isProtected modifier is set to a wrong value"); + assertTrue(Modifier.isAbstract(modifiers), + "Method ScriptContext.getClass().getModifiers() - isAbstract modifier is set to a wrong value"); + assertFalse(Modifier.isFinal(modifiers), + "Method ScriptContext.getClass().getModifiers() - isFinal modifier is set to a wrong value"); + assertTrue(Modifier.isInterface(modifiers), + "Method ScriptContext.getClass().getModifiers() - isInterface modifier is set to a wrong value"); + assertFalse(Modifier.isNative(modifiers), + "Method ScriptContext.getClass().getModifiers() - isNative modifier is set to a wrong value"); + assertFalse(Modifier.isStatic(modifiers), + "Method ScriptContext.getClass().getModifiers() - isStatic modifier is set to a wrong value"); + assertFalse(Modifier.isStrict(modifiers), + "Method ScriptContext.getClass().getModifiers() - isStrict modifier is set to a wrong value"); + assertFalse(Modifier.isSynchronized(modifiers), + "Method ScriptContext.getClass().getModifiers() - isSynchronized modifier is set to a wrong value"); + assertFalse(Modifier.isTransient(modifiers), + "Method ScriptContext.getClass().getModifiers() - isTransient modifier is set to a wrong value"); + assertFalse(Modifier.isVolatile(modifiers), + "Method ScriptContext.getClass().getModifiers() - isVolatile modifier is set to a wrong value"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getName() + */ + protected void testGetName() { + String name = this.scriptContextClass.getName(); + assertEquals(name, "javax.script.ScriptContext", + "Method ScriptContext.getClass().getName() returns wrong value " + name); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getPackage() + */ + protected void testGetPackage() { + Package p = this.scriptContextClass.getPackage(); + String packageName = p.getName(); + assertEquals(packageName, "javax.script", + "Method ScriptContext.getClass().getPackage().getName() returns wrong value " + packageName); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getSimpleName() + */ + protected void testGetSimpleName() { + String simpleName = this.scriptContextClass.getSimpleName(); + assertEquals(simpleName, "ScriptContext", + "Method ScriptContext.getClass().getSimpleName() returns wrong value " + simpleName); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getSuperclass() + */ + protected void testGetSuperclass() { + Class superClass = this.scriptContextClass.getSuperclass(); + assertNull(superClass, + "Method ScriptContext.getClass().getSuperclass() does not return null"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getGetConstructors() + */ + protected void testGetConstructors() { + Constructor[] constructors = this.scriptContextClass.getConstructors(); + assertEquals(constructors.length, 0, "no constructors should be set"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getGetDeclaredConstructors() + */ + protected void testGetDeclaredConstructors() { + Constructor[] constructors = this.scriptContextClass.getDeclaredConstructors(); + assertEquals(constructors.length, 0, "no constructors should be set"); + } + + /** + * Test for method javax.script.ScriptContext.getClass().getGetFields() + */ + protected void testGetFields() { + // following fields should exists + final String[] fieldsThatShouldExists = { + "public static final int javax.script.ScriptContext.ENGINE_SCOPE", + "public static final int javax.script.ScriptContext.GLOBAL_SCOPE", + }; + // get all fields + Field[] fields = this.scriptContextClass.getFields(); + // and transform the array into a list of field names + List fieldsAsString = new ArrayList(); + for (Field field : fields) { + fieldsAsString.add(field.toString()); + } + // check if all required fields really exists + for (String fieldThatShouldExists : fieldsThatShouldExists) { + assertTrue(fieldsAsString.contains(fieldThatShouldExists), + "field " + fieldThatShouldExists + " not found"); + } + } + + /** + * Test for method javax.script.ScriptContext.getClass().getGetDeclaredFields() + */ + protected void testGetDeclaredFields() { + // following fields should be declared + final String[] fieldsThatShouldExists = { + "public static final int javax.script.ScriptContext.ENGINE_SCOPE", + "public static final int javax.script.ScriptContext.GLOBAL_SCOPE", + }; + // get all declared fields + Field[] declaredFields = this.scriptContextClass.getDeclaredFields(); + // and transform the array into a list of field names + List fieldsAsString = new ArrayList(); + for (Field field : declaredFields) { + fieldsAsString.add(field.toString()); + } + // check if all required fields really exists + for (String fieldThatShouldExists : fieldsThatShouldExists) { + assertTrue(fieldsAsString.contains(fieldThatShouldExists), + "field " + fieldThatShouldExists + " not found"); + } + } + + /** + * Test for method javax.script.ScriptContext.getClass().getGetMethods() + */ + protected void testGetMethods() { + // following methods should be inherited + final String[] methodsThatShouldExists = { + "public abstract java.lang.Object javax.script.ScriptContext.getAttribute(java.lang.String)", + "public abstract java.lang.Object javax.script.ScriptContext.getAttribute(java.lang.String,int)", + "public abstract int javax.script.ScriptContext.getAttributesScope(java.lang.String)", + "public abstract javax.script.Bindings javax.script.ScriptContext.getBindings(int)", + "public abstract java.io.Writer javax.script.ScriptContext.getErrorWriter()", + "public abstract java.io.Reader javax.script.ScriptContext.getReader()", + "public abstract java.util.List javax.script.ScriptContext.getScopes()", + "public abstract java.io.Writer javax.script.ScriptContext.getWriter()", + "public abstract java.lang.Object javax.script.ScriptContext.removeAttribute(java.lang.String,int)", + "public abstract void javax.script.ScriptContext.setAttribute(java.lang.String,java.lang.Object,int)", + "public abstract void javax.script.ScriptContext.setBindings(javax.script.Bindings,int)", + "public abstract void javax.script.ScriptContext.setErrorWriter(java.io.Writer)", + "public abstract void javax.script.ScriptContext.setReader(java.io.Reader)", + "public abstract void javax.script.ScriptContext.setWriter(java.io.Writer)", + }; + // get all inherited methods + Method[] methods = this.scriptContextClass.getMethods(); + // and transform the array into a list of method names + List methodsAsString = new ArrayList(); + for (Method method : methods) { + methodsAsString.add(method.toString()); + } + // check if all required methods really exists + for (String methodThatShouldExists : methodsThatShouldExists) { + assertTrue(methodsAsString.contains(methodThatShouldExists), + "method " + methodThatShouldExists + " not found"); + } + } + + /** + * Test for method javax.script.ScriptContext.getClass().getGetDeclaredMethods() + */ + protected void testGetDeclaredMethods() { + // following methods should be declared + final String[] declaredMethodsThatShouldExists = { + "public abstract java.lang.Object javax.script.ScriptContext.getAttribute(java.lang.String)", + "public abstract java.lang.Object javax.script.ScriptContext.getAttribute(java.lang.String,int)", + "public abstract int javax.script.ScriptContext.getAttributesScope(java.lang.String)", + "public abstract javax.script.Bindings javax.script.ScriptContext.getBindings(int)", + "public abstract java.io.Writer javax.script.ScriptContext.getErrorWriter()", + "public abstract java.io.Reader javax.script.ScriptContext.getReader()", + "public abstract java.util.List javax.script.ScriptContext.getScopes()", + "public abstract java.io.Writer javax.script.ScriptContext.getWriter()", + "public abstract java.lang.Object javax.script.ScriptContext.removeAttribute(java.lang.String,int)", + "public abstract void javax.script.ScriptContext.setAttribute(java.lang.String,java.lang.Object,int)", + "public abstract void javax.script.ScriptContext.setBindings(javax.script.Bindings,int)", + "public abstract void javax.script.ScriptContext.setErrorWriter(java.io.Writer)", + "public abstract void javax.script.ScriptContext.setReader(java.io.Reader)", + "public abstract void javax.script.ScriptContext.setWriter(java.io.Writer)", + }; + // get all declared methods + Method[] declaredMethods = this.scriptContextClass.getDeclaredMethods(); + // and transform the array into a list of method names + List methodsAsString = new ArrayList(); + for (Method method : declaredMethods) { + methodsAsString.add(method.toString()); + } + // check if all required methods really exists + for (String methodThatShouldExists : declaredMethodsThatShouldExists) { + assertTrue(methodsAsString.contains(methodThatShouldExists), + "declared method " + methodThatShouldExists + " not found"); + } + } + + /** + * Test for instanceof operator applied to a class javax.script.ScriptContext + */ + protected void testInstanceOf() { + // tested object + Object o = new SimpleScriptContext(); + + // basic check of instanceof operator + assertTrue(o instanceof ScriptContext, "instanceof ScriptContext is wrongly evaluated to false"); + + // check operator instanceof against all superclasses + assertTrue(o instanceof Object, "instanceof Object is wrongly evaluated to false"); + } + + /** + * Entry point to this test case. + * + * @param args parameters passed from command line + */ + public static void main(String[] args) { + new ScriptContextClassTest().doTests(args); + } +} + + From bugzilla-daemon at icedtea.classpath.org Wed Jul 18 05:16:43 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 18 Jul 2012 12:16:43 +0000 Subject: [Bug 1073] Chrome can't load plugin In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1073 --- Comment #5 from birdstream at hotmail.com --- No problem! I managed to find it out myself and so I learned something new, which is a good thing :) It would probably have been more obvious to me if I was a programmer/developer myself, but I'm really just an everyday linux user. Except from a few "hello world" examples in various languages my programming skills is virtually close to zero ;) I've posted the issue in ubuntu launchpad and it seems they're already on it. So hopefully the bug fix will be included in the next update. Regards Joakim -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120718/f164a434/attachment.html From adomurad at redhat.com Wed Jul 18 07:31:37 2012 From: adomurad at redhat.com (Adam Domurad) Date: Wed, 18 Jul 2012 10:31:37 -0400 Subject: [RFC][icedtea-web]: Added signed jnlp tests for applications using multiple jars In-Reply-To: <500662A5.4000609@redhat.com> References: <4FF4B022.2000608@redhat.com> <1342557461.15784.16.camel@linux-laptop> <500662A5.4000609@redhat.com> Message-ID: <1342621897.2560.37.camel@voip-10-15-18-79.yyz.redhat.com> On Wed, 2012-07-18 at 09:15 +0200, Jiri Vanek wrote: > On 07/17/2012 10:37 PM, adomurad wrote: > > Hi Saad. Thanks for the patches! General question, what motivated you to > > Testing untested combinations, lines and behaviours is always wanted. Some day somebody will do > something what will cause following tests to fail. And then we will be happy to have them and so > cougth and fix the issue before release! Yes, this is very true. I was just asking for his motivation so I could better understand under which conditions the tests might fail. > > > test these aspects (which all seem to pass?) You'll have to forgive my > > ignorance of jnlp templates, I would appreciate a brief elaboration on > > the aspects under test here. > > > > Comments inline. > > > > On Wed, 2012-07-04 at 17:05 -0400, Saad Mohammad wrote: > >> Hello, > >> > >> I have attached the patch that tests the launching of applications which > >> have multiple jars containing signed jnlp files. > >> > >> ChangeLog: From dbhole at redhat.com Wed Jul 18 10:11:21 2012 From: dbhole at redhat.com (Deepak Bhole) Date: Wed, 18 Jul 2012 13:11:21 -0400 Subject: [rfc][icedtea-web] PAV - Add missing timeout check In-Reply-To: <50051E36.1010207@redhat.com> References: <9AA653DD-1943-4AC8-B69A-9A59751405D3@m3y3r.de> <20120716202212.GD15891@redhat.com> <50048E5C.1010101@redhat.com> <50051E36.1010207@redhat.com> Message-ID: <20120718171120.GD8692@redhat.com> * Jiri Vanek [2012-07-17 04:10]: > Imho worthy also for 1.3 Sure, approved for 1.3 with changelog as well. Cheers, Deepak > J. > > On 07/16/2012 11:57 PM, Danesh Dadachanji wrote: > > > > > >On 16/07/12 04:22 PM, Deepak Bhole wrote: > >>* Thomas Meyer [2012-07-16 16:17]: > >>>Resend. > >>> > >> > >>Sorry, missed this. Looks fine to me, OK for head. > >> > > > >Needs a ChangeLog entry though, couldn't see one anywhere. =) > > > >Cheers, > >Danesh > > > >>Thanks! > >>Deepak > >> > >>># HG changeset patch > >>># Parent 01544fb823842910b062b5b05b6872812ceecb98 > >>> > >>>diff -r 01544fb82384 plugin/icedteanp/java/sun/applet/PluginAppletViewer.java > >>>--- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Wed Jul 11 16:18:58 2012 +0200 > >>>+++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Mon Jul 16 22:08:38 2012 +0200 > >>>@@ -745,9 +745,19 @@ > >>> long maxTimeToSleep = APPLET_TIMEOUT; > >>> panelLock.lock(); > >>> try { > >>>- while (panel == null || !panel.isAlive()) > >>>+ while (panel == null || !panel.isAlive()) { > >>> maxTimeToSleep -= waitTillTimeout(panelLock, panelLive, > >>> maxTimeToSleep); > >>>+ > >>>+ /* we already waited till timeout, give up here directly, > >>>+ * instead of waiting 180s again in below waitForAppletInit() > >>>+ */ > >>>+ if(maxTimeToSleep < 0) { > >>>+ panelLock.unlock(); > >>>+ streamhandler.write("instance " + identifier + " reference " + -1 + " > >>>fatalError: " + "Initialization timed out"); > >>>+ return; > >>>+ } > >>>+ } > >>> } > >>> finally { > >>> panelLock.unlock(); > >>> > >> > > > > From ddadacha at redhat.com Wed Jul 18 13:10:32 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Wed, 18 Jul 2012 16:10:32 -0400 Subject: [RFC][icedtea-web] Update security dialogs to be more descriptive Message-ID: <50071838.30707@redhat.com> Hello, The following patch fixes RH838417 and RH838559. [1][2] It adds the following message along with the description to dialogs that are shown when a jar cert is unverified or has signing errors: "The code executed will be given full permissions, ignoring any java policies you may have." I've also added the warning.png icon to HTTPS cert dialogs. You can test the patch using this[3] website or see my attached image. =) ChangeLog: +2012-07-18 Danesh Dadachanji + + Update message to security dialog, explicitly telling users they will be + executing code that has AllPermissions and ignores policy files. + * NEWS: Added entries for RH838417 and RH838559. + * netx/net/sourceforge/jnlp/resources/Messages.properties: + Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. + * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display + SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either + unverified or has a signing error. Also added warning.png to HTTPS dialogs. + [1] https://bugzilla.redhat.com/show_bug.cgi?id=838417 [2] https://bugzilla.redhat.com/show_bug.cgi?id=838559 [3] https://www.portalbank.no/1100/ -------------- next part -------------- A non-text attachment was scrubbed... Name: cert-dialog-update-01.patch Type: text/x-patch Size: 6186 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120718/7049ad63/cert-dialog-update-01.patch -------------- next part -------------- A non-text attachment was scrubbed... Name: cert-warning-new.png Type: image/png Size: 35459 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120718/7049ad63/cert-warning-new.png From ddadacha at redhat.com Wed Jul 18 13:12:02 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Wed, 18 Jul 2012 16:12:02 -0400 Subject: [RFC][icedtea-web] Update security dialogs to be more descriptive In-Reply-To: <50071838.30707@redhat.com> References: <50071838.30707@redhat.com> Message-ID: <50071892.1090009@redhat.com> On 18/07/12 04:10 PM, Danesh Dadachanji wrote: > Hello, > > The following patch fixes RH838417 and RH838559. [1][2] > > It adds the following message along with the description to dialogs that are shown when a jar cert is unverified or has signing errors: > "The code executed will be given full permissions, ignoring any java policies you may have." > > I've also added the warning.png icon to HTTPS cert dialogs. > > You can test the patch using this[3] website or see my attached image. =) > > ChangeLog: > +2012-07-18 Danesh Dadachanji > + > + Update message to security dialog, explicitly telling users they will be > + executing code that has AllPermissions and ignores policy files. > + * NEWS: Added entries for RH838417 and RH838559. > + * netx/net/sourceforge/jnlp/resources/Messages.properties: > + Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. > + * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display > + SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either > + unverified or has a signing error. Also added warning.png to HTTPS dialogs. > + > > [1] https://bugzilla.redhat.com/show_bug.cgi?id=838417 > [2] https://bugzilla.redhat.com/show_bug.cgi?id=838559 > [3] https://www.portalbank.no/1100/ Woops, forgot to mention, I'd like to push this to 1.2, 1.3 on top of HEAD if others think it's okay. Cheers, Danesh From thomas at m3y3r.de Wed Jul 18 15:10:57 2012 From: thomas at m3y3r.de (Thomas Meyer) Date: Thu, 19 Jul 2012 00:10:57 +0200 Subject: [rfc][icedtea-web] PAV - Add missing timeout check In-Reply-To: <50048E5C.1010101@redhat.com> References: <9AA653DD-1943-4AC8-B69A-9A59751405D3@m3y3r.de> <20120716202212.GD15891@redhat.com> <50048E5C.1010101@redhat.com> Message-ID: <1342649457.3807.4.camel@localhost.localdomain> Am Montag, den 16.07.2012, 17:57 -0400 schrieb Danesh Dadachanji: > > > Sorry, missed this. Looks fine to me, OK for head. > > > > Needs a ChangeLog entry though, couldn't see one anywhere. =) New patch attached: I removed the panelLock.unlock() as it's get's called in the finally block anyway. ChangeLog: 2012-07-18 Thomas Meyer * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java (handleMessage): fix possible endless loop while waiting for the applet object instance to get created. > > Cheers, > Danesh > -------------- next part -------------- A non-text attachment was scrubbed... Name: PAV-fix-possible-endless-loop-in-handleMessage.patch Type: text/x-patch Size: 1700 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120719/13a47116/PAV-fix-possible-endless-loop-in-handleMessage.patch From ptisnovs at icedtea.classpath.org Thu Jul 19 02:06:27 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Thu, 19 Jul 2012 09:06:27 +0000 Subject: /hg/gfx-test: Added ten new tests to the test suite PrintTestPol... Message-ID: changeset fe17c684bae1 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=fe17c684bae1 author: Pavel Tisnovsky date: Thu Jul 19 11:08:39 2012 +0200 Added ten new tests to the test suite PrintTestPolylines.java diffstat: ChangeLog | 5 + src/org/gfxtest/testsuites/PrintTestPolylines.java | 373 +++++++++++++++++++++ 2 files changed, 378 insertions(+), 0 deletions(-) diffs (395 lines): diff -r bbe4d2bd6894 -r fe17c684bae1 ChangeLog --- a/ChangeLog Tue Jul 17 10:35:26 2012 +0200 +++ b/ChangeLog Thu Jul 19 11:08:39 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-18 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/PrintTestPolylines.java: + Added ten new tests to this test suite. + 2012-07-17 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestPaths.java: diff -r bbe4d2bd6894 -r fe17c684bae1 src/org/gfxtest/testsuites/PrintTestPolylines.java --- a/src/org/gfxtest/testsuites/PrintTestPolylines.java Tue Jul 17 10:35:26 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestPolylines.java Thu Jul 19 11:08:39 2012 +0200 @@ -259,6 +259,379 @@ } /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to bevel style and end caps is set to CAP_BUTT. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapButtJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to miter style and end caps is set to CAP_BUTT. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapButtJoinMiter(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to round style and end caps is set to CAP_BUTT. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapButtJoinRound(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to bevel style and end caps is set to CAP_ROUND. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapRoundJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to miter style and end caps is set to CAP_ROUND. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapRoundJoinMiter(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to round style and end caps is set to CAP_ROUND. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapRoundJoinRound(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to bevel style and end caps is set to CAP_SQUARE. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapSquareJoinBevel(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to miter style and end caps is set to CAP_SQUARE. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapSquareJoinMiter(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to round style and end caps is set to CAP_SQUARE. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapSquareJoinRound(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + float strokeWidth = 0.0f; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_ROUND)); + // set new stroke width + this.strokeWidth = this.strokeWidth < MAX_STROKE_WIDTH ? this.strokeWidth + STROKE_WIDTH_DELTA : this.strokeWidth; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a palette. + * + * @param image + * image to which rectangles are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesColorPaletteInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP, new PolylineDrawCallbacks() + { + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set polyline color + this.graphics.setColor(ColorPalette.getColor(MAX_COLOR_INDEX - index)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** * Entry point to the test suite. * * @param args From ptisnovs at icedtea.classpath.org Thu Jul 19 02:41:26 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Thu, 19 Jul 2012 09:41:26 +0000 Subject: /hg/rhino-tests: Makefile: Updated - added new test to compile &... Message-ID: changeset 223d536c00b4 in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=223d536c00b4 author: Pavel Tisnovsky date: Thu Jul 19 11:44:01 2012 +0200 Makefile: Updated - added new test to compile & run. diffstat: ChangeLog | 1 + Makefile | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diffs (30 lines): diff -r bdd13e29e245 -r 223d536c00b4 ChangeLog --- a/ChangeLog Wed Jul 18 13:36:53 2012 +0200 +++ b/ChangeLog Thu Jul 19 11:44:01 2012 +0200 @@ -2,6 +2,7 @@ * src/org/RhinoTests/ScriptContextClassTest.java: Added new test case with twenty tests for a class ScriptContext. + * Makefile: Updated - added new test to compile & run. 2012-07-17 Pavel Tisnovsky diff -r bdd13e29e245 -r 223d536c00b4 Makefile --- a/Makefile Wed Jul 18 13:36:53 2012 +0200 +++ b/Makefile Thu Jul 19 11:44:01 2012 +0200 @@ -60,6 +60,7 @@ CompiledScriptTest \ InvocableTest \ ScriptContextTest \ + ScriptContextClassTest \ ScriptExceptionTest \ SimpleScriptContextTest @@ -82,6 +83,7 @@ $(BUILD_DIR)/$(TEST_PACKAGE)/InvocableTest.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/JavaScriptsTest.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/ScriptContextTest.class \ + $(BUILD_DIR)/$(TEST_PACKAGE)/ScriptContextClassTest.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/ScriptEngineFactoryTest.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/ScriptEngineManagerTest.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/ScriptEngineTest.class \ From ptisnovs at icedtea.classpath.org Thu Jul 19 03:28:59 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Thu, 19 Jul 2012 10:28:59 +0000 Subject: /hg/rhino-tests: Added new test case for a class SimpleScriptCon... Message-ID: changeset 25d5ea98c051 in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=25d5ea98c051 author: Pavel Tisnovsky date: Thu Jul 19 12:31:34 2012 +0200 Added new test case for a class SimpleScriptContext. diffstat: ChangeLog | 6 + Makefile | 7 +- src/org/RhinoTests/SimpleScriptContextClassTest.java | 389 +++++++++++++++++++ 3 files changed, 400 insertions(+), 2 deletions(-) diffs (430 lines): diff -r 223d536c00b4 -r 25d5ea98c051 ChangeLog --- a/ChangeLog Thu Jul 19 11:44:01 2012 +0200 +++ b/ChangeLog Thu Jul 19 12:31:34 2012 +0200 @@ -1,3 +1,9 @@ +2012-07-19 Pavel Tisnovsky + + * src/org/RhinoTests/SimpleScriptContextClassTest.java: + Added new test case for a class SimpleScriptContext. + * Makefile: Added new tests to compile & run. + 2012-07-18 Pavel Tisnovsky * src/org/RhinoTests/ScriptContextClassTest.java: diff -r 223d536c00b4 -r 25d5ea98c051 Makefile --- a/Makefile Thu Jul 19 11:44:01 2012 +0200 +++ b/Makefile Thu Jul 19 12:31:34 2012 +0200 @@ -62,7 +62,9 @@ ScriptContextTest \ ScriptContextClassTest \ ScriptExceptionTest \ - SimpleScriptContextTest + SimpleBindingsTests \ + SimpleScriptContextTest \ + SimpleScriptContextClassTest ALL_CLASSES = \ $(BUILD_DIR)/$(TEST_CLASSES_PACKAGE)/TestClass.class \ @@ -89,7 +91,8 @@ $(BUILD_DIR)/$(TEST_PACKAGE)/ScriptEngineTest.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/ScriptExceptionTest.class \ $(BUILD_DIR)/$(TEST_PACKAGE)/SimpleBindingsTest.class \ - $(BUILD_DIR)/$(TEST_PACKAGE)/SimpleScriptContextTest.class + $(BUILD_DIR)/$(TEST_PACKAGE)/SimpleScriptContextTest.class \ + $(BUILD_DIR)/$(TEST_PACKAGE)/SimpleScriptContextClassTest.class ALL_SCRIPTS = \ $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test1.js \ diff -r 223d536c00b4 -r 25d5ea98c051 src/org/RhinoTests/SimpleScriptContextClassTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/RhinoTests/SimpleScriptContextClassTest.java Thu Jul 19 12:31:34 2012 +0200 @@ -0,0 +1,389 @@ +/* + Rhino test framework + + Copyright (C) 2011, 2012 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.RhinoTests; + +import java.util.Arrays; +import java.util.ArrayList; +import java.util.List; +import java.lang.reflect.Constructor; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import javax.script.ScriptContext; +import javax.script.SimpleScriptContext; + + + +/** + * Set of tests which check the API of SimpleScriptContext class using + * Java reflection API. + * + * @author Pavel Tisnovsky + */ +public class SimpleScriptContextClassTest extends BaseRhinoTest { + + /** + * Instance of SimpleScriptContext class + */ + Object simpleScriptContextInstance = null; + + /** + * Object that represents the type of one SimpleScriptContext instance. + */ + Class simpleScriptContextClass = null; + + @Override + protected void setUp(String[] args) { + // setup both attributes used by tests + this.simpleScriptContextInstance = new SimpleScriptContext(); + this.simpleScriptContextClass = this.simpleScriptContextInstance.getClass(); + } + + @Override + protected void tearDown() { + // this block could be empty + return; + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().isAssignableFrom() + */ + protected void testIsAssignableFrom() { + assertTrue(this.simpleScriptContextClass.isAssignableFrom(SimpleScriptContext.class), + "Method SimpleScriptContext.getClass().isAssignableFrom() returns wrong value"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().isInstance() + */ + protected void testIsInstance() { + assertTrue(this.simpleScriptContextClass.isInstance(new SimpleScriptContext()), + "Method SimpleScriptContext.getClass().isInstance() returns wrong value"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().isInterface() + */ + protected void testIsInterface() { + assertFalse(this.simpleScriptContextClass.isInterface(), + "Method SimpleScriptContext.getClass().isInterface() returns wrong value"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().isLocalClass() + */ + protected void testIsLocalClass() { + assertFalse(this.simpleScriptContextClass.isLocalClass(), + "Method SimpleScriptContext.getClass().isLocalClass() returns wrong value"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().isMemberClass() + */ + protected void testIsMemberClass() { + assertFalse(this.simpleScriptContextClass.isMemberClass(), + "Method SimpleScriptContext.getClass().isMemberClass() returns wrong value"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().isPrimitive() + */ + protected void testIsIsPrimitive() { + assertFalse(this.simpleScriptContextClass.isPrimitive(), + "Method SimpleScriptContext.getClass().isPrimitive() returns wrong value"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().isSynthetic() + */ + protected void testIsIsSynthetic() { + assertFalse(this.simpleScriptContextClass.isSynthetic(), + "Method SimpleScriptContext.getClass().isSynthetic() returns wrong value"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getInterfaces() + */ + protected void testGetInterfaces() { + List interfaces = Arrays.asList(this.simpleScriptContextClass.getInterfaces()); + assertTrue(interfaces.contains(ScriptContext.class), + "list of implemented interfaces does not contains ScriptContex"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getModifiers() + */ + protected void testGetModifiers() { + int modifiers = this.simpleScriptContextClass.getModifiers(); + assertTrue(Modifier.isPublic(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isPublic modifier is set to a wrong value"); + assertFalse(Modifier.isPrivate(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isPrivate modifier is set to a wrong value"); + assertFalse(Modifier.isProtected(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isProtected modifier is set to a wrong value"); + assertFalse(Modifier.isAbstract(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isAbstract modifier is set to a wrong value"); + assertFalse(Modifier.isFinal(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isFinal modifier is set to a wrong value"); + assertFalse(Modifier.isInterface(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isInterface modifier is set to a wrong value"); + assertFalse(Modifier.isNative(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isNative modifier is set to a wrong value"); + assertFalse(Modifier.isStatic(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isStatic modifier is set to a wrong value"); + assertFalse(Modifier.isStrict(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isStrict modifier is set to a wrong value"); + assertFalse(Modifier.isSynchronized(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isSynchronized modifier is set to a wrong value"); + assertFalse(Modifier.isTransient(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isTransient modifier is set to a wrong value"); + assertFalse(Modifier.isVolatile(modifiers), + "Method SimpleScriptContext.getClass().getModifiers() - isVolatile modifier is set to a wrong value"); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getName() + */ + protected void testGetName() { + String name = this.simpleScriptContextClass.getName(); + assertEquals(name, "javax.script.SimpleScriptContext", + "Method SimpleScriptContext.getClass().getName() returns wrong value " + name); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getPackage() + */ + protected void testGetPackage() { + Package p = this.simpleScriptContextClass.getPackage(); + String packageName = p.getName(); + assertEquals(packageName, "javax.script", + "Method SimpleScriptContext.getClass().getPackage().getName() returns wrong value " + packageName); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getSimpleName() + */ + protected void testGetSimpleName() { + String simpleName = this.simpleScriptContextClass.getSimpleName(); + assertEquals(simpleName, "SimpleScriptContext", + "Method SimpleScriptContext.getClass().getSimpleName() returns wrong value " + simpleName); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getSuperclass() + */ + protected void testGetSuperclass() { + Class superClass = this.simpleScriptContextClass.getSuperclass(); + String superClassName = superClass.getName(); + assertEquals(superClassName, "java.lang.Object", + "Method SimpleScriptContext.getClass().getSuperclass() returns wrong value " + superClassName); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getGetConstructors() + */ + protected void testGetConstructors() { + Constructor[] constructors = this.simpleScriptContextClass.getConstructors(); + assertEquals(constructors.length, 1, "only one constructor should be set"); + String constructorName = constructors[0].getName(); + String constructorString = constructors[0].toString(); + assertEquals(constructorName, "javax.script.SimpleScriptContext", + "wrong constructor name " + constructorName); + assertEquals(constructorString, "public javax.script.SimpleScriptContext()", + "wrong constructor.toString() " + constructorName); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getGetDeclaredConstructors() + */ + protected void testGetDeclaredConstructors() { + Constructor[] constructors = this.simpleScriptContextClass.getDeclaredConstructors(); + assertEquals(constructors.length, 1, "only one constructor should be set"); + String constructorName = constructors[0].getName(); + String constructorString = constructors[0].toString(); + assertEquals(constructorName, "javax.script.SimpleScriptContext", + "wrong constructor name " + constructorName); + assertEquals(constructorString, "public javax.script.SimpleScriptContext()", + "wrong constructor.toString() " + constructorName); + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getGetFields() + */ + protected void testGetFields() { + // following fields should be inherited + final String[] fieldsThatShouldExists = { + "public static final int javax.script.ScriptContext.ENGINE_SCOPE", + "public static final int javax.script.ScriptContext.GLOBAL_SCOPE", + }; + // get all inherited fields + Field[] declaredFields = this.simpleScriptContextClass.getFields(); + // and transform the array into a list of field names + List fieldsAsString = new ArrayList(); + for (Field field : declaredFields) { + fieldsAsString.add(field.toString()); + } + // check if all required fields really exists + for (String fieldThatShouldExists : fieldsThatShouldExists) { + assertTrue(fieldsAsString.contains(fieldThatShouldExists), + "field " + fieldThatShouldExists + " not found"); + } + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getGetDeclaredFields() + */ + protected void testGetDeclaredFields() { + // following fields should be declared + final String[] fieldsThatShouldExists = { + "protected java.io.Writer javax.script.SimpleScriptContext.writer", + "protected java.io.Writer javax.script.SimpleScriptContext.errorWriter", + "protected java.io.Reader javax.script.SimpleScriptContext.reader", + "protected javax.script.Bindings javax.script.SimpleScriptContext.engineScope", + "protected javax.script.Bindings javax.script.SimpleScriptContext.globalScope", + }; + // get all declared fields + Field[] declaredFields = this.simpleScriptContextClass.getDeclaredFields(); + // and transform the array into a list of field names + List declaredFieldsAsString = new ArrayList(); + for (Field field : declaredFields) { + declaredFieldsAsString.add(field.toString()); + } + // check if all required fields really exists + for (String fieldThatShouldExists : fieldsThatShouldExists) { + assertTrue(declaredFieldsAsString.contains(fieldThatShouldExists), + "field " + fieldThatShouldExists + " not found"); + } + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getGetMethods() + */ + protected void testGetMethods() { + // following methods should be inherited + final String[] methodsThatShouldExists = { + "public java.lang.Object javax.script.SimpleScriptContext.getAttribute(java.lang.String)", + "public java.lang.Object javax.script.SimpleScriptContext.getAttribute(java.lang.String,int)", + "public int javax.script.SimpleScriptContext.getAttributesScope(java.lang.String)", + "public javax.script.Bindings javax.script.SimpleScriptContext.getBindings(int)", + "public java.io.Writer javax.script.SimpleScriptContext.getErrorWriter()", + "public java.io.Reader javax.script.SimpleScriptContext.getReader()", + "public java.util.List javax.script.SimpleScriptContext.getScopes()", + "public java.io.Writer javax.script.SimpleScriptContext.getWriter()", + "public java.lang.Object javax.script.SimpleScriptContext.removeAttribute(java.lang.String,int)", + "public void javax.script.SimpleScriptContext.setAttribute(java.lang.String,java.lang.Object,int)", + "public void javax.script.SimpleScriptContext.setBindings(javax.script.Bindings,int)", + "public void javax.script.SimpleScriptContext.setErrorWriter(java.io.Writer)", + "public void javax.script.SimpleScriptContext.setReader(java.io.Reader)", + "public void javax.script.SimpleScriptContext.setWriter(java.io.Writer)", + }; + // get all inherited methods + Method[] methods = this.simpleScriptContextClass.getMethods(); + // and transform the array into a list of method names + List methodsAsString = new ArrayList(); + for (Method method : methods) { + methodsAsString.add(method.toString()); + } + // check if all required methods really exists + for (String methodThatShouldExists : methodsThatShouldExists) { + assertTrue(methodsAsString.contains(methodThatShouldExists), + "method " + methodThatShouldExists + " not found"); + } + } + + /** + * Test for method javax.script.SimpleScriptContext.getClass().getGetDeclaredMethods() + */ + protected void testGetDeclaredMethods() { + // following methods should be declared + final String[] declaredMethodsThatShouldExists = { + "public void javax.script.SimpleScriptContext.setBindings(javax.script.Bindings,int)", + "public java.io.Writer javax.script.SimpleScriptContext.getWriter()", + "public java.io.Reader javax.script.SimpleScriptContext.getReader()", + "public void javax.script.SimpleScriptContext.setReader(java.io.Reader)", + "public void javax.script.SimpleScriptContext.setWriter(java.io.Writer)", + "public java.io.Writer javax.script.SimpleScriptContext.getErrorWriter()", + "public void javax.script.SimpleScriptContext.setErrorWriter(java.io.Writer)", + "public int javax.script.SimpleScriptContext.getAttributesScope(java.lang.String)", + "public javax.script.Bindings javax.script.SimpleScriptContext.getBindings(int)", + "public java.util.List javax.script.SimpleScriptContext.getScopes()", + "public java.lang.Object javax.script.SimpleScriptContext.getAttribute(java.lang.String)", + "public java.lang.Object javax.script.SimpleScriptContext.getAttribute(java.lang.String,int)", + "public java.lang.Object javax.script.SimpleScriptContext.removeAttribute(java.lang.String,int)", + "public void javax.script.SimpleScriptContext.setAttribute(java.lang.String,java.lang.Object,int)", + }; + // get all declared methods + Method[] declaredMethods = this.simpleScriptContextClass.getDeclaredMethods(); + // and transform the array into a list of method names + List methodsAsString = new ArrayList(); + for (Method method : declaredMethods) { + methodsAsString.add(method.toString()); + } + // check if all required methods really exists + for (String methodThatShouldExists : declaredMethodsThatShouldExists) { + assertTrue(methodsAsString.contains(methodThatShouldExists), + "declared method " + methodThatShouldExists + " not found"); + } + } + + /** + * Test for instanceof operator applied to a class javax.script.SimpleScriptContext + */ + protected void testInstanceOf() { + // tested object + Object o = this.simpleScriptContextInstance; + // basic check of instanceof operator + assertTrue(o instanceof SimpleScriptContext, "instanceof SimpleScriptContext is wrongly evaluated to false"); + + // check operator instanceof against all superclasses + assertTrue(o instanceof Object, "instanceof Object is wrongly evaluated to false"); + } + + /** + * Entry point to this test case. + * + * @param args parameters passed from command line + */ + public static void main(String[] args) { + new SimpleScriptContextClassTest().doTests(args); + } +} + From ahughes at redhat.com Thu Jul 19 06:14:47 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Thu, 19 Jul 2012 09:14:47 -0400 (EDT) Subject: Native zlib libraries In-Reply-To: Message-ID: <2f5606b6-5c4a-4855-aec0-2205bc6c1c4e@zmail17.collab.prod.int.phx2.redhat.com> ----- Original Message ----- > Two other obvious candidates are the bundled jpeg and gif libraries. > Please suggest a patch for build-infra/jdk8! Yes, we already have this. We already have patches but it sounds like they now have to be completely rewritten for this new build. For us, it's more useful to fix the old build system as we use the work in 6 & 7 primarily. That's actually what's held me back. I'm not sure how to proceed. Are we going to have to propose two completely different patches for 8 & 6/7? > > Backporting the new build system for jdk7/jdk6 is not even on the > horizon. It > would be nice though, and probably not impossible. I wasn't suggesting backporting the whole build system, but applying the same feature addition to the old build. > > //Fredrik > > 9 jul 2012 kl. 01:52 skrev Andrew Hughes: > > > > > > > ----- Original Message ----- > >> The new build system offers a convenient option to the configure > >> script: > >> --with-zlib=system > >> this will pickup the zlib libraries from the system. > >> > >> The default behavior is: --with-zlib=bundled > >> > > > > Have you done any others? And is this available from the old bug > > system? > > > > This is the first I've heard of this being done and we need it in 6 > > & 7 too. > > > >> //Fredrik > >> > >> 2012/7/5 Andrew Hughes : > >>> > >>> > >>> ----- Original Message ----- > >>>> Is there a way to get the native zlib libraries to get picked up > >>>> instead of the hardcoded version within the JVM? > >>>> > >>>> -- > >>>> Azeem Jiva > >>>> @javawithjiva > >>> > >>> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get > >>> it > >>> upstream. > >>> > >>> However, I don't see how this is related to HotSpot, as the zlib > >>> usage > >>> is in the jdk tree. > >>> -- > >>> Andrew :) > >>> > >>> Free Java Software Engineer > >>> Red Hat, Inc. (http://www.redhat.com) > >>> > >>> PGP Key: 248BDC07 (https://keys.indymedia.org/) > >>> Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 > >>> > >> > > > > -- > > Andrew :) > > > > Free Java Software Engineer > > Red Hat, Inc. (http://www.redhat.com) > > > > PGP Key: 248BDC07 (https://keys.indymedia.org/) > > Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 > > > > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From ahughes at redhat.com Thu Jul 19 06:20:44 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Thu, 19 Jul 2012 09:20:44 -0400 (EDT) Subject: Native zlib libraries In-Reply-To: <4FFD2F95.90905@oracle.com> Message-ID: <87bfdc62-8fa3-4fbe-bed0-a9cf083af064@zmail17.collab.prod.int.phx2.redhat.com> ----- Original Message ----- > On 05/07/2012 17:11, Andrew Hughes wrote: > > > > ----- Original Message ----- > >> Is there a way to get the native zlib libraries to get picked up > >> instead of the hardcoded version within the JVM? > >> > >> -- > >> Azeem Jiva > >> @javawithjiva > > We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get it > > upstream. > > > > However, I don't see how this is related to HotSpot, as the zlib > > usage > > is in the jdk tree. > I think we need to (re)start the discussion on core-libs-dev with a > view > to eliminating the patches that the JDK has to zlib, see: > > http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java > > One of these changes relates to the zip64 support and I believe there > are corner cases when inflating or deflating >2GB that won't work if > using the system zlib. Sherman will likely recall the details. Given > that the new build already supports using the system zlib (at least > on > Linux) then it would be good to sort this out so that it just works. > Hmmm... this is interesting as we've been shipping OpenJDK with system zlib the whole time. Are some of the issues resolved in newer versions? My system copy is 1.2.7. Not only is it generally against GNU/Linux distribution policy to bundle libraries without good reason, but it also means we then have to rebuild OpenJDK for any security issues in those dependencies. > -Alan > > > > > > > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From Alan.Bateman at oracle.com Thu Jul 19 06:43:54 2012 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Thu, 19 Jul 2012 14:43:54 +0100 Subject: Native zlib libraries In-Reply-To: <87bfdc62-8fa3-4fbe-bed0-a9cf083af064@zmail17.collab.prod.int.phx2.redhat.com> References: <87bfdc62-8fa3-4fbe-bed0-a9cf083af064@zmail17.collab.prod.int.phx2.redhat.com> Message-ID: <50080F1A.6090004@oracle.com> On 19/07/2012 14:20, Andrew Hughes wrote: > : > > Hmmm... this is interesting as we've been shipping OpenJDK with system zlib the whole time. > > Are some of the issues resolved in newer versions? My system copy is 1.2.7. > > Not only is it generally against GNU/Linux distribution policy to bundle libraries without good reason, but it also means > we then have to rebuild OpenJDK for any security issues in those dependencies. > I think using the system zlib (or libz as it seems to shipped as on Solaris and MacOSX) would have been okay with jdk6, it's just that the zip64 support in jdk7 changed total_in/out to "long long". The copy that we have in the jdk repository at this time is 1.2.5. I'm not aware of any updates that avoid this patch but I think the right thing is to change the java.util.zip code so that it works with an unmodified zlib. I think Sherman has ideas on this, just hasn't got to it yet. If you have cycles to look at it that would be great (and I understand that distributions would frown on attempts to bundle a private copy with OpenJDK). -Alan. From dbhole at redhat.com Thu Jul 19 07:18:02 2012 From: dbhole at redhat.com (Deepak Bhole) Date: Thu, 19 Jul 2012 10:18:02 -0400 Subject: [rfc][icedtea-web] PAV - Add missing timeout check In-Reply-To: <1342649457.3807.4.camel@localhost.localdomain> References: <9AA653DD-1943-4AC8-B69A-9A59751405D3@m3y3r.de> <20120716202212.GD15891@redhat.com> <50048E5C.1010101@redhat.com> <1342649457.3807.4.camel@localhost.localdomain> Message-ID: <20120719141801.GM8692@redhat.com> * Thomas Meyer [2012-07-18 18:11]: > Am Montag, den 16.07.2012, 17:57 -0400 schrieb Danesh Dadachanji: > > > > > Sorry, missed this. Looks fine to me, OK for head. > > > > > > > Needs a ChangeLog entry though, couldn't see one anywhere. =) > > New patch attached: > > I removed the panelLock.unlock() as it's get's called in the finally > block anyway. > One very minor thing .. the f for "fix" should be capital in the changelog :) Otherwise okay for HEAD and 1.3 Thanks! Deepak > ChangeLog: > > 2012-07-18 Thomas Meyer > > * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java (handleMessage): > fix possible endless loop while waiting for the applet object instance to > get created. > > > > Cheers, > > Danesh > > > > > > # HG changeset patch > # Parent 01544fb823842910b062b5b05b6872812ceecb98 > > diff -r 01544fb82384 ChangeLog > --- a/ChangeLog Wed Jul 11 16:18:58 2012 +0200 > +++ b/ChangeLog Thu Jul 19 00:02:50 2012 +0200 > @@ -1,3 +1,9 @@ > +2012-07-18 Thomas Meyer > + > + * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java (handleMessage): > + fix possible endless loop while waiting for the applet object instance to > + get created. > + > 2012-07-11 Jiri Vanek > > try to close browser before kill it > diff -r 01544fb82384 plugin/icedteanp/java/sun/applet/PluginAppletViewer.java > --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Wed Jul 11 16:18:58 2012 +0200 > +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Thu Jul 19 00:02:50 2012 +0200 > @@ -745,9 +745,18 @@ > long maxTimeToSleep = APPLET_TIMEOUT; > panelLock.lock(); > try { > - while (panel == null || !panel.isAlive()) > + while (panel == null || !panel.isAlive()) { > maxTimeToSleep -= waitTillTimeout(panelLock, panelLive, > maxTimeToSleep); > + > + /* we already waited till timeout, give up here directly, > + * instead of waiting 180s again in below waitForAppletInit() > + */ > + if(maxTimeToSleep < 0) { > + streamhandler.write("instance " + identifier + " reference " + -1 + " fatalError: " + "Initialization timed out"); > + return; > + } > + } > } > finally { > panelLock.unlock(); From meyert at icedtea.classpath.org Thu Jul 19 10:18:45 2012 From: meyert at icedtea.classpath.org (meyert at icedtea.classpath.org) Date: Thu, 19 Jul 2012 17:18:45 +0000 Subject: /hg/icedtea-web: Fix possible endless loop while waiting for the... Message-ID: changeset d6e1139ec7d9 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=d6e1139ec7d9 author: Thomas Meyer date: Thu Jul 19 18:44:51 2012 +0200 Fix possible endless loop while waiting for the applet object instance to get create get created diffstat: ChangeLog | 6 ++++++ plugin/icedteanp/java/sun/applet/PluginAppletViewer.java | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletions(-) diffs (36 lines): diff -r 01544fb82384 -r d6e1139ec7d9 ChangeLog --- a/ChangeLog Wed Jul 11 16:18:58 2012 +0200 +++ b/ChangeLog Thu Jul 19 18:44:51 2012 +0200 @@ -1,3 +1,9 @@ +2012-07-18 Thomas Meyer + + * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java (handleMessage): + Fix possible endless loop while waiting for the applet object instance to + get created. + 2012-07-11 Jiri Vanek try to close browser before kill it diff -r 01544fb82384 -r d6e1139ec7d9 plugin/icedteanp/java/sun/applet/PluginAppletViewer.java --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Wed Jul 11 16:18:58 2012 +0200 +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java Thu Jul 19 18:44:51 2012 +0200 @@ -745,9 +745,18 @@ long maxTimeToSleep = APPLET_TIMEOUT; panelLock.lock(); try { - while (panel == null || !panel.isAlive()) + while (panel == null || !panel.isAlive()) { maxTimeToSleep -= waitTillTimeout(panelLock, panelLive, maxTimeToSleep); + + /* we already waited till timeout, give up here directly, + * instead of waiting 180s again in below waitForAppletInit() + */ + if(maxTimeToSleep < 0) { + streamhandler.write("instance " + identifier + " reference " + -1 + " fatalError: " + "Initialization timed out"); + return; + } + } } finally { panelLock.unlock(); From dbhole at redhat.com Thu Jul 19 13:40:38 2012 From: dbhole at redhat.com (Deepak Bhole) Date: Thu, 19 Jul 2012 16:40:38 -0400 Subject: [RFC][icedtea-web] Update security dialogs to be more descriptive In-Reply-To: <50071892.1090009@redhat.com> References: <50071838.30707@redhat.com> <50071892.1090009@redhat.com> Message-ID: <20120719204038.GG30191@redhat.com> * Danesh Dadachanji [2012-07-18 16:14]: > On 18/07/12 04:10 PM, Danesh Dadachanji wrote: > >Hello, > > > >The following patch fixes RH838417 and RH838559. [1][2] > > > >It adds the following message along with the description to dialogs that are shown when a jar cert is unverified or has signing errors: > >"The code executed will be given full permissions, ignoring any java policies you may have." > > > >I've also added the warning.png icon to HTTPS cert dialogs. > > > >You can test the patch using this[3] website or see my attached image. =) > > > >ChangeLog: > >+2012-07-18 Danesh Dadachanji > >+ > >+ Update message to security dialog, explicitly telling users they will be > >+ executing code that has AllPermissions and ignores policy files. > >+ * NEWS: Added entries for RH838417 and RH838559. > >+ * netx/net/sourceforge/jnlp/resources/Messages.properties: > >+ Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. > >+ * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display > >+ SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either > >+ unverified or has a signing error. Also added warning.png to HTTPS dialogs. > >+ > > > >[1] https://bugzilla.redhat.com/show_bug.cgi?id=838417 > >[2] https://bugzilla.redhat.com/show_bug.cgi?id=838559 > >[3] https://www.portalbank.no/1100/ > > Woops, forgot to mention, I'd like to push this to 1.2, 1.3 on top of HEAD if others think it's okay. > Assuming you have tested this, OK for 1.2, 1.3 and HEAD. However please add bug #/summary to changelog before pushing. Thanks, Deepak From ddadacha at icedtea.classpath.org Fri Jul 20 07:38:43 2012 From: ddadacha at icedtea.classpath.org (ddadacha at icedtea.classpath.org) Date: Fri, 20 Jul 2012 14:38:43 +0000 Subject: /hg/icedtea-web: Fix RH838417, Fix RH838559: Disambiguate signed... Message-ID: changeset be423d1f265d in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=be423d1f265d author: Danesh Dadachanji date: Fri Jul 20 10:38:07 2012 -0400 Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt from certificate warning. diffstat: ChangeLog | 11 ++++++++ NEWS | 2 + netx/net/sourceforge/jnlp/resources/Messages.properties | 3 +- netx/net/sourceforge/jnlp/security/CertWarningPane.java | 23 ++++++++-------- 4 files changed, 27 insertions(+), 12 deletions(-) diffs (120 lines): diff -r d6e1139ec7d9 -r be423d1f265d ChangeLog --- a/ChangeLog Thu Jul 19 18:44:51 2012 +0200 +++ b/ChangeLog Fri Jul 20 10:38:07 2012 -0400 @@ -1,3 +1,14 @@ +2012-07-18 Danesh Dadachanji + + Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt + from certificate warning. + * NEWS: Added entries for RH838417 and RH838559. + * netx/net/sourceforge/jnlp/resources/Messages.properties: + Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. + * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display + SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either + unverified or has a signing error. Also added warning.png to HTTPS dialogs. + 2012-07-18 Thomas Meyer * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java (handleMessage): diff -r d6e1139ec7d9 -r be423d1f265d NEWS --- a/NEWS Thu Jul 19 18:44:51 2012 +0200 +++ b/NEWS Fri Jul 20 10:38:07 2012 -0400 @@ -23,6 +23,8 @@ - PR1011: Folders treated as jar files in archive tag * Common - PR918: java applet windows uses a low resulution black/white icon + - RH838417: Disambiguate signed applet security prompt from certificate warning + - RH838559: Disambiguate signed applet security prompt from certificate warning New in release 1.2 (2011-XX-XX): * Security updates: diff -r d6e1139ec7d9 -r be423d1f265d netx/net/sourceforge/jnlp/resources/Messages.properties --- a/netx/net/sourceforge/jnlp/resources/Messages.properties Thu Jul 19 18:44:51 2012 +0200 +++ b/netx/net/sourceforge/jnlp/resources/Messages.properties Fri Jul 20 10:38:07 2012 -0400 @@ -205,6 +205,7 @@ SSigVerified=The application's digital signature has been verified. Do you want to run the application? SSignatureError=The application's digital signature has an error. Do you want to run the application? SUntrustedSource=The digital signature could not be verified by a trusted source. Only run if you trust the origin of the application. +SWarnFullPermissionsIgnorePolicy=The code executed will be given full permissions, ignoring any java policies you may have. STrustedSource=The digital signature has been validated by a trusted source. SClipboardReadAccess=The application has requested read-only access to the system clipboard. Do you want to allow this action? SClipboardWriteAccess=The application has requested write-only access to the system clipboard. Do you want to allow this action? @@ -213,7 +214,7 @@ SNoAssociatedCertificate= SUnverified=(unverified) SAlwaysTrustPublisher=Always trust content from this publisher -SHttpsUnverified=The website's certificate cannot be verified. +SHttpsUnverified=The website's HTTPS certificate cannot be verified. SNotAllSignedSummary=Only parts of this application code are signed. SNotAllSignedDetail=This application contains both signed and unsigned code. While signed code is safe if you trust the provider, unsigned code may imply code outside of the trusted provider's control. SNotAllSignedQuestion=Do you wish to proceed and run this application anyway? diff -r d6e1139ec7d9 -r be423d1f265d netx/net/sourceforge/jnlp/security/CertWarningPane.java --- a/netx/net/sourceforge/jnlp/security/CertWarningPane.java Thu Jul 19 18:44:51 2012 +0200 +++ b/netx/net/sourceforge/jnlp/security/CertWarningPane.java Fri Jul 20 10:38:07 2012 -0400 @@ -1,5 +1,5 @@ /* CertWarningPane.java - Copyright (C) 2008 Red Hat, Inc. + Copyright (C) 2012 Red Hat, Inc. This file is part of IcedTea. @@ -132,15 +132,19 @@ } catch (Exception e) { } - //Top label + // Labels String topLabelText = ""; + String bottomLabelText = parent.getCertVerifier().getRootInCacerts() ? + R("STrustedSource") : R("SUntrustedSource"); String propertyName = ""; String iconLocation = "net/sourceforge/jnlp/resources/"; boolean alwaysTrustSelected = false; if (certVerifier instanceof HttpsCertVerifier) { - topLabelText = R("SHttpsUnverified") + " " + - R("Continue"); + // HTTPS certs that are verified do not prompt for a dialog. + // @see VariableX509TrustManager#checkServerTrusted + topLabelText = R("SHttpsUnverified") + " " + R("Continue"); propertyName = "OptionPane.warningIcon"; + iconLocation += "warning.png"; } else switch (type) { case VERIFIED: @@ -153,11 +157,13 @@ topLabelText = R("SSigUnverified"); propertyName = "OptionPane.warningIcon"; iconLocation += "warning.png"; + bottomLabelText += " " + R("SWarnFullPermissionsIgnorePolicy"); break; case SIGNING_ERROR: topLabelText = R("SSignatureError"); propertyName = "OptionPane.warningIcon"; iconLocation += "warning.png"; + bottomLabelText += " " + R("SWarnFullPermissionsIgnorePolicy"); break; } @@ -218,20 +224,15 @@ add(infoPanel); add(buttonPanel); - JLabel bottomLabel; + JLabel bottomLabel = new JLabel(htmlWrap(bottomLabelText));; JButton moreInfo = new JButton(R("ButMoreInformation")); moreInfo.addActionListener(new MoreInfoButtonListener()); - if (parent.getCertVerifier().getRootInCacerts()) - bottomLabel = new JLabel(htmlWrap(R("STrustedSource"))); - else - bottomLabel = new JLabel(htmlWrap(R("SUntrustedSource"))); - JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BoxLayout(bottomPanel, BoxLayout.X_AXIS)); bottomPanel.add(bottomLabel); bottomPanel.add(moreInfo); - bottomPanel.setPreferredSize(new Dimension(500, 100)); + bottomPanel.setPreferredSize(new Dimension(600, 100)); bottomPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); add(bottomPanel); From ddadacha at icedtea.classpath.org Fri Jul 20 07:45:32 2012 From: ddadacha at icedtea.classpath.org (ddadacha at icedtea.classpath.org) Date: Fri, 20 Jul 2012 14:45:32 +0000 Subject: /hg/release/icedtea-web-1.3: Fix RH838417, Fix RH838559: Disambi... Message-ID: changeset c9d0e375f07c in /hg/release/icedtea-web-1.3 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.3?cmd=changeset;node=c9d0e375f07c author: Danesh Dadachanji date: Fri Jul 20 10:44:46 2012 -0400 Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt from certificate warning. diffstat: ChangeLog | 11 ++++++++ NEWS | 2 + netx/net/sourceforge/jnlp/resources/Messages.properties | 3 +- netx/net/sourceforge/jnlp/security/CertWarningPane.java | 23 ++++++++-------- 4 files changed, 27 insertions(+), 12 deletions(-) diffs (120 lines): diff -r 270a09e38dfb -r c9d0e375f07c ChangeLog --- a/ChangeLog Wed Jul 11 16:19:27 2012 +0200 +++ b/ChangeLog Fri Jul 20 10:44:46 2012 -0400 @@ -1,3 +1,14 @@ +2012-07-18 Danesh Dadachanji + + Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt + from certificate warning. + * NEWS: Added entries for RH838417 and RH838559. + * netx/net/sourceforge/jnlp/resources/Messages.properties: + Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. + * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display + SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either + unverified or has a signing error. Also added warning.png to HTTPS dialogs. + 2012-07-11 Jiri Vanek try to close browser before kill it diff -r 270a09e38dfb -r c9d0e375f07c NEWS --- a/NEWS Wed Jul 11 16:19:27 2012 +0200 +++ b/NEWS Fri Jul 20 10:44:46 2012 -0400 @@ -23,6 +23,8 @@ - PR1011: Folders treated as jar files in archive tag * Common - PR918: java applet windows uses a low resulution black/white icon + - RH838417: Disambiguate signed applet security prompt from certificate warning + - RH838559: Disambiguate signed applet security prompt from certificate warning New in release 1.2 (2011-XX-XX): * Security updates: diff -r 270a09e38dfb -r c9d0e375f07c netx/net/sourceforge/jnlp/resources/Messages.properties --- a/netx/net/sourceforge/jnlp/resources/Messages.properties Wed Jul 11 16:19:27 2012 +0200 +++ b/netx/net/sourceforge/jnlp/resources/Messages.properties Fri Jul 20 10:44:46 2012 -0400 @@ -205,6 +205,7 @@ SSigVerified=The application's digital signature has been verified. Do you want to run the application? SSignatureError=The application's digital signature has an error. Do you want to run the application? SUntrustedSource=The digital signature could not be verified by a trusted source. Only run if you trust the origin of the application. +SWarnFullPermissionsIgnorePolicy=The code executed will be given full permissions, ignoring any java policies you may have. STrustedSource=The digital signature has been validated by a trusted source. SClipboardReadAccess=The application has requested read-only access to the system clipboard. Do you want to allow this action? SClipboardWriteAccess=The application has requested write-only access to the system clipboard. Do you want to allow this action? @@ -213,7 +214,7 @@ SNoAssociatedCertificate= SUnverified=(unverified) SAlwaysTrustPublisher=Always trust content from this publisher -SHttpsUnverified=The website's certificate cannot be verified. +SHttpsUnverified=The website's HTTPS certificate cannot be verified. SNotAllSignedSummary=Only parts of this application code are signed. SNotAllSignedDetail=This application contains both signed and unsigned code. While signed code is safe if you trust the provider, unsigned code may imply code outside of the trusted provider's control. SNotAllSignedQuestion=Do you wish to proceed and run this application anyway? diff -r 270a09e38dfb -r c9d0e375f07c netx/net/sourceforge/jnlp/security/CertWarningPane.java --- a/netx/net/sourceforge/jnlp/security/CertWarningPane.java Wed Jul 11 16:19:27 2012 +0200 +++ b/netx/net/sourceforge/jnlp/security/CertWarningPane.java Fri Jul 20 10:44:46 2012 -0400 @@ -1,5 +1,5 @@ /* CertWarningPane.java - Copyright (C) 2008 Red Hat, Inc. + Copyright (C) 2012 Red Hat, Inc. This file is part of IcedTea. @@ -132,15 +132,19 @@ } catch (Exception e) { } - //Top label + // Labels String topLabelText = ""; + String bottomLabelText = parent.getCertVerifier().getRootInCacerts() ? + R("STrustedSource") : R("SUntrustedSource"); String propertyName = ""; String iconLocation = "net/sourceforge/jnlp/resources/"; boolean alwaysTrustSelected = false; if (certVerifier instanceof HttpsCertVerifier) { - topLabelText = R("SHttpsUnverified") + " " + - R("Continue"); + // HTTPS certs that are verified do not prompt for a dialog. + // @see VariableX509TrustManager#checkServerTrusted + topLabelText = R("SHttpsUnverified") + " " + R("Continue"); propertyName = "OptionPane.warningIcon"; + iconLocation += "warning.png"; } else switch (type) { case VERIFIED: @@ -153,11 +157,13 @@ topLabelText = R("SSigUnverified"); propertyName = "OptionPane.warningIcon"; iconLocation += "warning.png"; + bottomLabelText += " " + R("SWarnFullPermissionsIgnorePolicy"); break; case SIGNING_ERROR: topLabelText = R("SSignatureError"); propertyName = "OptionPane.warningIcon"; iconLocation += "warning.png"; + bottomLabelText += " " + R("SWarnFullPermissionsIgnorePolicy"); break; } @@ -218,20 +224,15 @@ add(infoPanel); add(buttonPanel); - JLabel bottomLabel; + JLabel bottomLabel = new JLabel(htmlWrap(bottomLabelText));; JButton moreInfo = new JButton(R("ButMoreInformation")); moreInfo.addActionListener(new MoreInfoButtonListener()); - if (parent.getCertVerifier().getRootInCacerts()) - bottomLabel = new JLabel(htmlWrap(R("STrustedSource"))); - else - bottomLabel = new JLabel(htmlWrap(R("SUntrustedSource"))); - JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BoxLayout(bottomPanel, BoxLayout.X_AXIS)); bottomPanel.add(bottomLabel); bottomPanel.add(moreInfo); - bottomPanel.setPreferredSize(new Dimension(500, 100)); + bottomPanel.setPreferredSize(new Dimension(600, 100)); bottomPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); add(bottomPanel); From ddadacha at icedtea.classpath.org Fri Jul 20 08:02:32 2012 From: ddadacha at icedtea.classpath.org (ddadacha at icedtea.classpath.org) Date: Fri, 20 Jul 2012 15:02:32 +0000 Subject: /hg/release/icedtea-web-1.2: Fix RH838417, Fix RH838559: Disambi... Message-ID: changeset ad4c1debd54f in /hg/release/icedtea-web-1.2 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.2?cmd=changeset;node=ad4c1debd54f author: Danesh Dadachanji date: Fri Jul 20 11:02:23 2012 -0400 Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt from certificate warning. diffstat: ChangeLog | 11 ++++++++ NEWS | 3 ++ netx/net/sourceforge/jnlp/resources/Messages.properties | 3 +- netx/net/sourceforge/jnlp/security/CertWarningPane.java | 23 ++++++++-------- 4 files changed, 28 insertions(+), 12 deletions(-) diffs (121 lines): diff -r d5cec52b3c5b -r ad4c1debd54f ChangeLog --- a/ChangeLog Tue Jul 03 13:51:29 2012 +0200 +++ b/ChangeLog Fri Jul 20 11:02:23 2012 -0400 @@ -1,3 +1,14 @@ +2012-07-18 Danesh Dadachanji + + Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt + from certificate warning. + * NEWS: Added entries for RH838417 and RH838559. + * netx/net/sourceforge/jnlp/resources/Messages.properties: + Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. + * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display + SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either + unverified or has a signing error. Also added warning.png to HTTPS dialogs. + 2012-07-23 Jiri Vanek Last hope for not downloaded resources to be verified diff -r d5cec52b3c5b -r ad4c1debd54f NEWS --- a/NEWS Tue Jul 03 13:51:29 2012 +0200 +++ b/NEWS Fri Jul 20 11:02:23 2012 -0400 @@ -17,6 +17,9 @@ - PR863: Error passing strings to applet methods in Chromium - PR895: IcedTea-Web searches for missing classes on each loadClass or findClass - PR518: NPString.utf8characters not guaranteed to be nul-terminated +* Common + - RH838417: Disambiguate signed applet security prompt from certificate warning + - RH838559: Disambiguate signed applet security prompt from certificate warning New in release 1.2 (2012-03-05): * Security updates: diff -r d5cec52b3c5b -r ad4c1debd54f netx/net/sourceforge/jnlp/resources/Messages.properties --- a/netx/net/sourceforge/jnlp/resources/Messages.properties Tue Jul 03 13:51:29 2012 +0200 +++ b/netx/net/sourceforge/jnlp/resources/Messages.properties Fri Jul 20 11:02:23 2012 -0400 @@ -208,6 +208,7 @@ SSigVerified=The application's digital signature has been verified. Do you want to run the application? SSignatureError=The application's digital signature has an error. Do you want to run the application? SUntrustedSource=The digital signature could not be verified by a trusted source. Only run if you trust the origin of the application. +SWarnFullPermissionsIgnorePolicy=The code executed will be given full permissions, ignoring any java policies you may have. STrustedSource=The digital signature has been validated by a trusted source. SClipboardReadAccess=The application has requested read-only access to the system clipboard. Do you want to allow this action? SClipboardWriteAccess=The application has requested write-only access to the system clipboard. Do you want to allow this action? @@ -216,7 +217,7 @@ SNoAssociatedCertificate= SUnverified=(unverified) SAlwaysTrustPublisher=Always trust content from this publisher -SHttpsUnverified=The website's certificate cannot be verified. +SHttpsUnverified=The website's HTTPS certificate cannot be verified. SNotAllSignedSummary=Only parts of this application code are signed. SNotAllSignedDetail=This application contains both signed and unsigned code. While signed code is safe if you trust the provider, unsigned code may imply code outside of the trusted provider's control. SNotAllSignedQuestion=Do you wish to proceed and run this application anyway? diff -r d5cec52b3c5b -r ad4c1debd54f netx/net/sourceforge/jnlp/security/CertWarningPane.java --- a/netx/net/sourceforge/jnlp/security/CertWarningPane.java Tue Jul 03 13:51:29 2012 +0200 +++ b/netx/net/sourceforge/jnlp/security/CertWarningPane.java Fri Jul 20 11:02:23 2012 -0400 @@ -1,5 +1,5 @@ /* CertWarningPane.java - Copyright (C) 2008 Red Hat, Inc. + Copyright (C) 2012 Red Hat, Inc. This file is part of IcedTea. @@ -132,15 +132,19 @@ } catch (Exception e) { } - //Top label + // Labels String topLabelText = ""; + String bottomLabelText = parent.getJarSigner().getRootInCacerts() ? + R("STrustedSource") : R("SUntrustedSource"); String propertyName = ""; String iconLocation = "net/sourceforge/jnlp/resources/"; boolean alwaysTrustSelected = false; if (certVerifier instanceof HttpsCertVerifier) { - topLabelText = R("SHttpsUnverified") + " " + - R("Continue"); + // HTTPS certs that are verified do not prompt for a dialog. + // @see VariableX509TrustManager#checkServerTrusted + topLabelText = R("SHttpsUnverified") + " " + R("Continue"); propertyName = "OptionPane.warningIcon"; + iconLocation += "warning.png"; } else switch (type) { case VERIFIED: @@ -153,11 +157,13 @@ topLabelText = R("SSigUnverified"); propertyName = "OptionPane.warningIcon"; iconLocation += "warning.png"; + bottomLabelText += " " + R("SWarnFullPermissionsIgnorePolicy"); break; case SIGNING_ERROR: topLabelText = R("SSignatureError"); propertyName = "OptionPane.warningIcon"; iconLocation += "warning.png"; + bottomLabelText += " " + R("SWarnFullPermissionsIgnorePolicy"); break; } @@ -218,20 +224,15 @@ add(infoPanel); add(buttonPanel); - JLabel bottomLabel; + JLabel bottomLabel = new JLabel(htmlWrap(bottomLabelText));; JButton moreInfo = new JButton(R("ButMoreInformation")); moreInfo.addActionListener(new MoreInfoButtonListener()); - if (parent.getJarSigner().getRootInCacerts()) - bottomLabel = new JLabel(htmlWrap(R("STrustedSource"))); - else - bottomLabel = new JLabel(htmlWrap(R("SUntrustedSource"))); - JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BoxLayout(bottomPanel, BoxLayout.X_AXIS)); bottomPanel.add(bottomLabel); bottomPanel.add(moreInfo); - bottomPanel.setPreferredSize(new Dimension(500, 100)); + bottomPanel.setPreferredSize(new Dimension(600, 100)); bottomPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); add(bottomPanel); From ddadacha at redhat.com Fri Jul 20 08:03:38 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Fri, 20 Jul 2012 11:03:38 -0400 Subject: [RFC][icedtea-web] Update security dialogs to be more descriptive In-Reply-To: <20120719204038.GG30191@redhat.com> References: <50071838.30707@redhat.com> <50071892.1090009@redhat.com> <20120719204038.GG30191@redhat.com> Message-ID: <5009734A.5080604@redhat.com> On 19/07/12 04:40 PM, Deepak Bhole wrote: > * Danesh Dadachanji [2012-07-18 16:14]: >> On 18/07/12 04:10 PM, Danesh Dadachanji wrote: >>> Hello, >>> >>> The following patch fixes RH838417 and RH838559. [1][2] >>> >>> It adds the following message along with the description to dialogs that are shown when a jar cert is unverified or has signing errors: >>> "The code executed will be given full permissions, ignoring any java policies you may have." >>> >>> I've also added the warning.png icon to HTTPS cert dialogs. >>> >>> You can test the patch using this[3] website or see my attached image. =) >>> >>> ChangeLog: >>> +2012-07-18 Danesh Dadachanji >>> + >>> + Update message to security dialog, explicitly telling users they will be >>> + executing code that has AllPermissions and ignores policy files. >>> + * NEWS: Added entries for RH838417 and RH838559. >>> + * netx/net/sourceforge/jnlp/resources/Messages.properties: >>> + Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. >>> + * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display >>> + SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either >>> + unverified or has a signing error. Also added warning.png to HTTPS dialogs. >>> + >>> >>> [1] https://bugzilla.redhat.com/show_bug.cgi?id=838417 >>> [2] https://bugzilla.redhat.com/show_bug.cgi?id=838559 >>> [3] https://www.portalbank.no/1100/ >> >> Woops, forgot to mention, I'd like to push this to 1.2, 1.3 on top of HEAD if others think it's okay. >> > > Assuming you have tested this, OK for 1.2, 1.3 and HEAD. > Thanks for reviewing! > However please add bug #/summary to changelog before pushing. > Done and pushed: http://icedtea.classpath.org/hg/icedtea-web/rev/be423d1f265d http://icedtea.classpath.org/hg/release/icedtea-web-1.2/rev/ad4c1debd54f http://icedtea.classpath.org/hg/release/icedtea-web-1.3/rev/c9d0e375f07c Regards, Danesh From oliver.j.a.parsons at gmail.com Thu Jul 19 03:09:53 2012 From: oliver.j.a.parsons at gmail.com (Oliver) Date: Thu, 19 Jul 2012 11:09:53 +0100 Subject: Ways of contributing Message-ID: Hello, I'm a computer science student within the UK and am interested in contributing to the OpenJDK. Could you advise me on any potential ways to get started and the areas in which you feel someone who has never contributed before could be successful in? Thanks, Oliver. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120719/744a05cd/attachment.html From ptisnovs at icedtea.classpath.org Mon Jul 23 01:36:59 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 23 Jul 2012 08:36:59 +0000 Subject: /hg/gfx-test: Fixed various typos in JavaDoc. Message-ID: changeset 20899e14d776 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=20899e14d776 author: Pavel Tisnovsky date: Mon Jul 23 10:39:34 2012 +0200 Fixed various typos in JavaDoc. * src/org/gfxtest/callbacks/PolylineDrawCallbacks.java: * src/org/gfxtest/testsuites/PrintTestPolylines.java: diffstat: ChangeLog | 6 ++ src/org/gfxtest/callbacks/PolylineDrawCallbacks.java | 4 +- src/org/gfxtest/testsuites/PrintTestPolylines.java | 42 ++++++++++---------- 3 files changed, 29 insertions(+), 23 deletions(-) diffs (203 lines): diff -r fe17c684bae1 -r 20899e14d776 ChangeLog --- a/ChangeLog Thu Jul 19 11:08:39 2012 +0200 +++ b/ChangeLog Mon Jul 23 10:39:34 2012 +0200 @@ -1,3 +1,9 @@ +2012-07-23 Pavel Tisnovsky + + * src/org/gfxtest/callbacks/PolylineDrawCallbacks.java: + * src/org/gfxtest/testsuites/PrintTestPolylines.java: + Fixed various typos in JavaDoc. + 2012-07-18 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestPolylines.java: diff -r fe17c684bae1 -r 20899e14d776 src/org/gfxtest/callbacks/PolylineDrawCallbacks.java --- a/src/org/gfxtest/callbacks/PolylineDrawCallbacks.java Thu Jul 19 11:08:39 2012 +0200 +++ b/src/org/gfxtest/callbacks/PolylineDrawCallbacks.java Mon Jul 23 10:39:34 2012 +0200 @@ -73,7 +73,7 @@ * Setup phase. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas */ @@ -105,7 +105,7 @@ * @param y2 * y-coordinate of the lower right vertex * @param index - * rectangle index + * polyline index */ public abstract void iterationCallBack(int x1, int y1, int x2, int y2, int index); } diff -r fe17c684bae1 -r 20899e14d776 src/org/gfxtest/testsuites/PrintTestPolylines.java --- a/src/org/gfxtest/testsuites/PrintTestPolylines.java Thu Jul 19 11:08:39 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestPolylines.java Mon Jul 23 10:39:34 2012 +0200 @@ -77,15 +77,15 @@ { /** * Method which renders set of polylines using various colors and stroke - * styles. For each rectangle, the callback function/method is called to + * styles. For each polyline, the callback function/method is called to * perform all required setup. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @param step - * between two near rectangles + * between two near polylines * @param polylineDrawCallbacks * class containing set of callback methods */ @@ -109,16 +109,16 @@ // index to color palette int colorIndex = 0; - // draw all rectangles onto a paper + // draw all polylines onto a paper while (x1 < x2 - BORDER && y1 < y2 - BORDER) { - // setup can be made for each rectangle + // setup can be made for each polyline polylineDrawCallbacks.iterationCallBack(x1, y1, x2, y2, colorIndex++); - // render the rectangle + // render the new polyline int xpoints[] = {x1, x2, x2, x1}; int ypoints[] = {y1, y1, y2, y2}; graphics.drawPolyline(xpoints, ypoints, 4); - // setup coordinates for the next rectangle + // setup coordinates for the next polyline x1 += step; y1 += step; x2 -= step; @@ -135,7 +135,7 @@ * polylines are set to black. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -164,7 +164,7 @@ * polylines are selected from a palette. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -195,7 +195,7 @@ * polylines are selected from a grayscale palette. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -227,7 +227,7 @@ * polylines are selected from a grayscale palette. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -265,7 +265,7 @@ * Join style is set to bevel style and end caps is set to CAP_BUTT. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -303,7 +303,7 @@ * Join style is set to miter style and end caps is set to CAP_BUTT. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -341,7 +341,7 @@ * Join style is set to round style and end caps is set to CAP_BUTT. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -379,7 +379,7 @@ * Join style is set to bevel style and end caps is set to CAP_ROUND. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -417,7 +417,7 @@ * Join style is set to miter style and end caps is set to CAP_ROUND. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -455,7 +455,7 @@ * Join style is set to round style and end caps is set to CAP_ROUND. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -493,7 +493,7 @@ * Join style is set to bevel style and end caps is set to CAP_SQUARE. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -531,7 +531,7 @@ * Join style is set to miter style and end caps is set to CAP_SQUARE. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -569,7 +569,7 @@ * Join style is set to round style and end caps is set to CAP_SQUARE. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR @@ -606,7 +606,7 @@ * polylines are selected from a palette. * * @param image - * image to which rectangles are to be drawn + * image to which polylines are to be drawn * @param graphics2d * graphics canvas * @return test result status - PASSED, FAILED or ERROR From ptisnovs at icedtea.classpath.org Mon Jul 23 01:45:52 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 23 Jul 2012 08:45:52 +0000 Subject: /hg/gfx-test: Added new test suite and class containing callback... Message-ID: changeset bcddbf10b1c3 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=bcddbf10b1c3 author: Pavel Tisnovsky date: Mon Jul 23 10:48:30 2012 +0200 Added new test suite and class containing callback methods used by this suite. diffstat: ChangeLog | 10 + Makefile | 5 +- src/org/gfxtest/callbacks/PolygonDrawCallbacks.java | 111 +++++++++++++ src/org/gfxtest/framework/PrintTest.java | 5 + src/org/gfxtest/testsuites/PrintTestPolygons.java | 170 ++++++++++++++++++++ 5 files changed, 300 insertions(+), 1 deletions(-) diffs (356 lines): diff -r 20899e14d776 -r bcddbf10b1c3 ChangeLog --- a/ChangeLog Mon Jul 23 10:39:34 2012 +0200 +++ b/ChangeLog Mon Jul 23 10:48:30 2012 +0200 @@ -1,3 +1,13 @@ +2012-07-23 Pavel Tisnovsky + + * src/org/gfxtest/framework/PrintTest.java: + New constant used by print tests. + * src/org/gfxtest/testsuites/PrintTestPolygons.java: + * src/org/gfxtest/callbacks/PolygonDrawCallbacks.java: + Added new test suite and class containing callback methods + used by this suite. + * Makefile: Updated - added new classes to compile and new test to run. + 2012-07-23 Pavel Tisnovsky * src/org/gfxtest/callbacks/PolylineDrawCallbacks.java: diff -r 20899e14d776 -r bcddbf10b1c3 Makefile --- a/Makefile Mon Jul 23 10:39:34 2012 +0200 +++ b/Makefile Mon Jul 23 10:48:30 2012 +0200 @@ -1,6 +1,6 @@ # Java gfx-test framework # -# Copyright (C) 2010, 2011 Red Hat +# Copyright (C) 2010, 2011, 2012 Red Hat # # This file is part of IcedTea. # @@ -104,6 +104,7 @@ $(CLASSES)/$(CALLBACKS_DIR)/DiagonalLineDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/RectangleDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/PolylineDrawCallbacks.class \ + $(CLASSES)/$(CALLBACKS_DIR)/PolygonDrawCallbacks.class \ $(CLASSES)/$(IMAGE_DIFFER_DIR)/ComparisonResult.class \ $(CLASSES)/$(IMAGE_DIFFER_DIR)/Configuration.class \ $(CLASSES)/$(IMAGE_DIFFER_DIR)/ImageComparator.class \ @@ -194,6 +195,7 @@ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestRoundRectangles.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestPaths.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestPolylines.class \ + $(CLASSES)/$(TESTSUITE_DIR)/PrintTestPolygons.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestQuadraticCurves.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestBitBlt.class \ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestCircles.class \ @@ -282,6 +284,7 @@ $(RESULTS)/PrintTestRoundRectangles \ $(RESULTS)/PrintTestPaths \ $(RESULTS)/PrintTestPolylines \ + $(RESULTS)/PrintTestPolygons \ $(RESULTS)/PrintTestQuadraticCurves \ $(RESULTS)/PrintTestArcs \ $(RESULTS)/PrintTestBitBlt \ diff -r 20899e14d776 -r bcddbf10b1c3 src/org/gfxtest/callbacks/PolygonDrawCallbacks.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/gfxtest/callbacks/PolygonDrawCallbacks.java Mon Jul 23 10:48:30 2012 +0200 @@ -0,0 +1,111 @@ +/* + Java gfx-test framework + + Copyright (C) 2012 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.callbacks; + + + +import java.awt.Color; +import java.awt.Graphics2D; + + + +import org.gfxtest.framework.TestImage; + + + +/** + * Class representing set of callback methods called for each rendered + * polygon. + * + * @author Pavel Tisnovsky + */ +public abstract class PolygonDrawCallbacks +{ + /** + * Image to which polylines are to be drawn. + */ + protected TestImage image; + + /** + * Graphics canvas. + */ + protected Graphics2D graphics; + + /** + * Setup phase. + * + * @param image + * image to which polygons are to be drawn + * @param graphics2d + * graphics canvas + */ + public void setup(TestImage image, Graphics2D graphics) + { + this.image = image; + this.graphics = graphics; + // set drawing color + graphics.setColor(Color.BLACK); + } + + /** + * Cleanup phase. + */ + public void cleanup() + { + return; + } + + /** + * Called for each rendered polygon. + * + * @param x1 + * x-coordinate of the upper left vertex + * @param y1 + * y-coordinate of the upper left vertex + * @param x2 + * x-coordinate of the lower right vertex + * @param y2 + * y-coordinate of the lower right vertex + * @param index + * polygon index + */ + public abstract void iterationCallBack(int x1, int y1, int x2, int y2, int i); +} diff -r 20899e14d776 -r bcddbf10b1c3 src/org/gfxtest/framework/PrintTest.java --- a/src/org/gfxtest/framework/PrintTest.java Mon Jul 23 10:39:34 2012 +0200 +++ b/src/org/gfxtest/framework/PrintTest.java Mon Jul 23 10:48:30 2012 +0200 @@ -122,6 +122,11 @@ protected static final int POLYLINE_STEP = 10; /** + * Horizontal and also vertical distance between polygons in each test iteration. + */ + protected static final int POLYGON_STEP = 10; + + /** * Maximum color index. * (used only in tests which uses color palette) */ diff -r 20899e14d776 -r bcddbf10b1c3 src/org/gfxtest/testsuites/PrintTestPolygons.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/gfxtest/testsuites/PrintTestPolygons.java Mon Jul 23 10:48:30 2012 +0200 @@ -0,0 +1,170 @@ +/* + Java gfx-test framework + + Copyright (C) 2012 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.BasicStroke; +import java.awt.Graphics2D; + + + +import org.gfxtest.callbacks.PolygonDrawCallbacks; +import org.gfxtest.framework.PrintTest; +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 suite checks rendering of various polygons. + * + * @author Pavel Tisnovsky + */ + at TestType(TestTypes.PRINT_TEST) + at GraphicsPrimitive(GraphicsPrimitives.POLYGON) + at RenderStyle(RenderStyles.NORMAL) + at Transformation(Transformations.NONE) + at Zoom(1) +public class PrintTestPolygons extends PrintTest +{ + /** + * Method which renders set of polygons using various colors and stroke + * styles. For each polygon, the callback function/method is called to + * perform all required setup. + * + * @param image + * image to which polygons are to be drawn + * @param graphics2d + * graphics canvas + * @param step + * between two near polygons + * @param polygonDrawCallbacks + * class containing set of callback methods + */ + private static void drawPolygons(TestImage image, Graphics2D graphics, int step, PolygonDrawCallbacks polygonDrawCallbacks) + { + // setup rendering + polygonDrawCallbacks.setup(image, graphics); + + // image width and height + final int width = image.getWidth(); + final int height = image.getHeight(); + + // horizontal coordinates of polygon endpoints + int x1 = BORDER; + int x2 = width - BORDER; + + // vertical coordinates of polygon endpoints + int y1 = BORDER; + int y2 = height - BORDER; + + // index to color palette + int colorIndex = 0; + + // draw all polygons onto a paper + while (x1 < x2 - BORDER && y1 < y2 - BORDER) + { + // setup can be made for each polygon + polygonDrawCallbacks.iterationCallBack(x1, y1, x2, y2, colorIndex++); + // render the polygon + int xpoints[] = {x1, x2, x2, x1}; + int ypoints[] = {y1, y1, y2, y2}; + graphics.drawPolygon(xpoints, ypoints, 4); + // setup coordinates for the next polygon + x1 += step; + y1 += step; + x2 -= step; + y2 -= step; + } + + // cleanup rendering + polygonDrawCallbacks.cleanup(); + } + + /** + * Test basic behavior of method Graphics.drawPolygon(). Polygons are + * rendered with default width and default end caps. Color of all rendered + * polygons are set to black. + * + * @param image + * image to which polygons are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolygonsBasicStyle(TestImage image, Graphics2D graphics2d) + { + drawPolygons(image, graphics2d, POLYGON_STEP, new PolygonDrawCallbacks() + { + /** + * Callback function called before each polygon is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Entry point to the test suite. + * + * @param args + * not used in this case + */ + public static void main(String[] args) + { + new PrintTestPolygons().runTestSuite(args); + } + +} From bugzilla-daemon at icedtea.classpath.org Mon Jul 23 03:37:36 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 23 Jul 2012 10:37:36 +0000 Subject: [Bug 32] Double.toString(string) expands value In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=32 --- Comment #7 from hg commits --- details: http://icedtea.classpath.org//people/rkennke/hotspot-comp-zero/hotspot?cmd=changeset;node=b599a4c6c2df author: iveresov date: Tue Jan 18 18:00:06 2011 -0800 7012766: assert(false) failed: DEBUG MESSAGE in MacroAssembler::debug32 Summary: Interpreter expects to see methodOop in rbx on method entry, which needs to be restored after call to profile_method. Reviewed-by: kvn, never -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/c48e41db/attachment.html From andrew at icedtea.classpath.org Mon Jul 23 04:54:53 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Mon, 23 Jul 2012 11:54:53 +0000 Subject: /hg/release/icedtea7-forest-2.3: 4 new changesets Message-ID: changeset 56291720b5e5 in /hg/release/icedtea7-forest-2.3 details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3?cmd=changeset;node=56291720b5e5 author: katleman date: Fri Jul 06 15:02:47 2012 -0700 Added tag jdk7u6-b18 for changeset 9c41f7b1460b changeset e79fa743fe5a in /hg/release/icedtea7-forest-2.3 details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3?cmd=changeset;node=e79fa743fe5a author: katleman date: Wed Jul 11 11:22:39 2012 -0700 Added tag jdk7u6-b19 for changeset 56291720b5e5 changeset 29f6fb1833eb in /hg/release/icedtea7-forest-2.3 details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3?cmd=changeset;node=29f6fb1833eb author: katleman date: Wed Jul 18 16:10:21 2012 -0700 Added tag jdk7u6-b20 for changeset e79fa743fe5a changeset 6baa9023183f in /hg/release/icedtea7-forest-2.3 details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3?cmd=changeset;node=6baa9023183f author: andrew date: Mon Jul 23 12:29:02 2012 +0100 Merge jdk7u6-b20 diffstat: .hgtags | 10 ++++++++++ make/Defs-internal.gmk | 3 ++- 2 files changed, 12 insertions(+), 1 deletions(-) diffs (72 lines): diff -r 9c41f7b1460b -r 6baa9023183f .hgtags --- a/.hgtags Thu Jul 05 23:01:33 2012 -0700 +++ b/.hgtags Mon Jul 23 12:29:02 2012 +0100 @@ -50,6 +50,7 @@ 3ac6dcf7823205546fbbc3d4ea59f37358d0b0d4 jdk7-b73 2c88089b6e1c053597418099a14232182c387edc jdk7-b74 d1516b9f23954b29b8e76e6f4efc467c08c78133 jdk7-b75 +f0bfd9bd1a0e674288a8a4d17dcbb9e632b42e6d icedtea7-1.12 c8b63075403d53a208104a8a6ea5072c1cb66aab jdk7-b76 1f17ca8353babb13f4908c1f87d11508232518c8 jdk7-b77 ab4ae8f4514693a9fe17ca2fec0239d8f8450d2c jdk7-b78 @@ -63,6 +64,7 @@ 433a60a9c0bf1b26ee7e65cebaa89c541f497aed jdk7-b86 6b1069f53fbc30663ccef49d78c31bb7d6967bde jdk7-b87 82135c848d5fcddb065e98ae77b81077c858f593 jdk7-b88 +195fcceefddce1963bb26ba32920de67806ed2db icedtea7-1.13 7f1ba4459972bf84b8201dc1cc4f62b1fe1c74f4 jdk7-b89 425ba3efabbfe0b188105c10aaf7c3c8fa8d1a38 jdk7-b90 97d8b6c659c29c8493a8b2b72c2796a021a8cf79 jdk7-b91 @@ -111,6 +113,7 @@ ddc2fcb3682ffd27f44354db666128827be7e3c3 jdk7-b134 783bd02b4ab4596059c74b10a1793d7bd2f1c157 jdk7-b135 2fe76e73adaa5133ac559f0b3c2c0707eca04580 jdk7-b136 +d4aea1a51d625f5601c840714c7c94f1de5bc1af icedtea-1.14 7654afc6a29e43cb0a1343ce7f1287bf690d5e5f jdk7-b137 fc47c97bbbd91b1f774d855c48a7e285eb1a351a jdk7-b138 7ed6d0b9aaa12320832a7ddadb88d6d8d0dda4c1 jdk7-b139 @@ -123,6 +126,7 @@ 2d38c2a79c144c30cd04d143d83ee7ec6af40771 jdk7-b146 3ac30b3852876ccad6bd61697b5f9efa91ca7bc6 jdk7u1-b01 d91364304d7c4ecd34caffdba2b840aeb0d10b51 jdk7-b147 +3defd24c2671eb2e7796b5dc45b98954341d73a7 icedtea-2.0-branchpoint 34451dc0580d5c95d97b95a564e6198f36545d68 jdk7u1-b02 bf735d852f79bdbb3373c777eec3ff27e035e7ba jdk7u1-b03 f66a2bada589f4157789e6f66472954d2f1c114e jdk7u1-b04 @@ -141,6 +145,7 @@ b2deaf5bde5ec455a06786e8e2aea2e673be13aa jdk7u2-b12 c95558e566ac3605c480a3d070b1102088dab07f jdk7u2-b13 e30fd289f0019700575593ee4e1635fbc5c9a484 jdk7u2-b21 +a66b58021165f5a43e3974fe5fb9fead29824098 icedtea-2.1-branchpoint e30fd289f0019700575593ee4e1635fbc5c9a484 jdk7u3-b02 becd013ae6072a6633ba015fc4f5862fca589cee jdk7u3-b03 d64361a28584728aa25dca3781cffbaf4199e088 jdk7u3-b04 @@ -157,6 +162,7 @@ 2b07c262a8a9ff78dc908efb9d7b3bb099df9ac4 jdk7u4-b10 1abfee16e8cc7e3950052befa78dbf14a5ca9cfc jdk7u4-b11 e6f915094dccbba16df6ebeb002e6867392eda40 jdk7u4-b12 +e7886f5ad6cc837092386fa513e670d4a770456c icedtea-2.2-branchpoint 9108e3c2f07ffa218641d93893ac9928e95d213a jdk7u4-b13 d9580838fd08872fc0da648ecfc6782704b4aac1 jdk7u4-b14 008753000680a2008175d14b25373356f531aa07 jdk7u4-b15 @@ -191,3 +197,7 @@ 528f1589f5f2adf18d5d21384ba668b9aa79841e jdk7u6-b15 7b77364eb09faac4c37ce9dd2c2308ca5525f18f jdk7u6-b16 b7c1b441d131c70278de299b5d1e59dce0755dc5 jdk7u6-b17 +0e7b94bd450d4270d4e9bd6c040c94fa4be714a6 icedtea-2.3-branchpoint +9c41f7b1460b106d18676899d24b6ea07de5a369 jdk7u6-b18 +56291720b5e578046bc02761dcad2a575f99fd8e jdk7u6-b19 +e79fa743fe5a801db4acc7a7daa68f581423e5d3 jdk7u6-b20 diff -r 9c41f7b1460b -r 6baa9023183f make/Defs-internal.gmk --- a/make/Defs-internal.gmk Thu Jul 05 23:01:33 2012 -0700 +++ b/make/Defs-internal.gmk Mon Jul 23 12:29:02 2012 +0100 @@ -322,7 +322,8 @@ JDK_MICRO_VERSION=$(JDK_MICRO_VERSION) \ PREVIOUS_MAJOR_VERSION=$(PREVIOUS_MAJOR_VERSION) \ PREVIOUS_MINOR_VERSION=$(PREVIOUS_MINOR_VERSION) \ - PREVIOUS_MICRO_VERSION=$(PREVIOUS_MICRO_VERSION) + PREVIOUS_MICRO_VERSION=$(PREVIOUS_MICRO_VERSION) \ + STATIC_CXX=$(STATIC_CXX) ifdef ARCH_DATA_MODEL COMMON_BUILD_ARGUMENTS += ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) From andrew at icedtea.classpath.org Mon Jul 23 05:10:07 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Mon, 23 Jul 2012 12:10:07 +0000 Subject: /hg/release/icedtea7-forest-2.3/corba: 4 new changesets Message-ID: changeset 5c046510b930 in /hg/release/icedtea7-forest-2.3/corba details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/corba?cmd=changeset;node=5c046510b930 author: katleman date: Fri Jul 06 15:02:49 2012 -0700 Added tag jdk7u6-b18 for changeset b3d767dbd67f changeset f0c51b691d34 in /hg/release/icedtea7-forest-2.3/corba details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/corba?cmd=changeset;node=f0c51b691d34 author: katleman date: Wed Jul 11 11:22:44 2012 -0700 Added tag jdk7u6-b19 for changeset 5c046510b930 changeset 353c15c4bc37 in /hg/release/icedtea7-forest-2.3/corba details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/corba?cmd=changeset;node=353c15c4bc37 author: katleman date: Wed Jul 18 16:10:31 2012 -0700 Added tag jdk7u6-b20 for changeset f0c51b691d34 changeset ebe5a3b3ceda in /hg/release/icedtea7-forest-2.3/corba details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/corba?cmd=changeset;node=ebe5a3b3ceda author: andrew date: Mon Jul 23 12:29:09 2012 +0100 Merge jdk7u6-b20 diffstat: .hgtags | 10 ++++++++++ make/Makefile | 2 +- make/common/shared/Platform.gmk | 9 +++++++++ 3 files changed, 20 insertions(+), 1 deletions(-) diffs (104 lines): diff -r b3d767dbd67f -r ebe5a3b3ceda .hgtags --- a/.hgtags Thu Jul 05 23:01:42 2012 -0700 +++ b/.hgtags Mon Jul 23 12:29:09 2012 +0100 @@ -50,6 +50,7 @@ b751c528c55560cf2adeaeef24b39ca1f4d1cbf7 jdk7-b73 5d0cf59a3203b9f57aceebc33ae656b884987955 jdk7-b74 0fb137085952c8e47878e240d1cb40f14de463c4 jdk7-b75 +d728db3889da23d9f74e45154b9261a43b4acd8d icedtea7-1.12 937144222e2219939101b0129d26a872a7956b13 jdk7-b76 6881f0383f623394b5ec73f27a5f329ff55d0467 jdk7-b77 a7f7276b48cd74d8eb1baa83fbf3d1ef4a2603c8 jdk7-b78 @@ -63,6 +64,7 @@ 6253e28826d16cf1aecc39ce04c8de1f6bf2df5f jdk7-b86 09a41111a401d327f65e453384d976a10154d9ea jdk7-b87 39e14d2da687c7e592142137517aaf689544820f jdk7-b88 +e805b4155d76f76d40ffae36a74546f79218c539 icedtea7-1.13 bb4424c5e778b842c064a8b1aa902b35f4397654 jdk7-b89 56ce07b0eb47b93a98a72adef0f21e602c460623 jdk7-b90 bcd2fc089227559ac5be927923609fac29f067fa jdk7-b91 @@ -111,6 +113,7 @@ 918003855fa0dba5acf4bf1fe36526d2fc4c1ba8 jdk7-b134 e0b72ae5dc5e824b342801c8d1d336a55eb54e2c jdk7-b135 48ef0c712e7cbf272f47f9224db92a3c6a9e2612 jdk7-b136 +b62418551e20fa19fbf57c49d4378b7096809e60 icedtea-1.14 a66c01d8bf895261715955df0b95545c000ed6a8 jdk7-b137 78d8cf04697e9df54f7f11e195b7da29b8e345a2 jdk7-b138 60b074ec6fcf5cdf9efce22fdfb02326ed8fa2d3 jdk7-b139 @@ -123,6 +126,7 @@ 770227a4087e4e401fe87ccd19738440111c3948 jdk7-b146 36f0efbc66ef8ace3cca8aa8d0c88f3334080f8a jdk7u1-b01 73323cb3396260d93e0ab731fd2d431096ceed0f jdk7-b147 +d034cc90ecc266d78b87d1429c426669431fcc1f icedtea-2.0-branchpoint 9515a2d034b4727c11aeea36354a549fbc469c4f jdk7u1-b02 dd71cb354c573c1addcda269a7dd9144bfce9587 jdk7u1-b03 eaee830124aa453627591d8f9eccb39d7e040876 jdk7u1-b04 @@ -141,6 +145,7 @@ 56b02f8ef70391a67c9fa71157a8faafbdff4b74 jdk7u2-b12 456ff1f14b14ef8cfe47cef95c8094f8443fa092 jdk7u2-b13 62b846b0c3259cae732e75df50a1b180a2541178 jdk7u2-b21 +ecb9fc90dea4720f5c1ba1354364ed610f463e41 icedtea-2.1-branchpoint 1b648adeeefa9b1fb022459e8e4f590b736c0fdd jdk7u3-b02 730fa05af5a9d10a3a7a1626d248b96d09f8069f jdk7u3-b03 7f7a9b1addb4925f4f6e17f6eb5cce986c3b626d jdk7u3-b04 @@ -157,6 +162,7 @@ 23777178e7eb61859be3f7240561aa1034ff9221 jdk7u4-b10 bdc37f3c09b6008667aff77432bb6d31cbae945e jdk7u4-b11 fddc26b35a31884d64315cf7c296570245e9c481 jdk7u4-b12 +9ffa2340e018131c900e9cc12c9f3a10698aa191 icedtea-2.2-branchpoint f7119745898016a98cddab3e69efb41c5a5aaf78 jdk7u4-b13 6a262c36caebb43972cbae5032cff632ce31d2cc jdk7u4-b14 d9bf21b76f093abfe451880d5db29e4932b1e72e jdk7u4-b15 @@ -191,3 +197,7 @@ 8da4015f405b0fa267cca4780d20cd012d0a9cb4 jdk7u6-b15 7674c7ed99a53a8dcf654ab8a6963199ef562a08 jdk7u6-b16 e4a676826cb3fe2f84e19105a027c15c097f98f1 jdk7u6-b17 +68c35d6e9548bc7be9c3ce73774c6d53b0d72d3b icedtea-2.3-branchpoint +b3d767dbd67f518168c561e078be5e860bc60cfc jdk7u6-b18 +5c046510b9308bf514f078d48fcf0112a376ad41 jdk7u6-b19 +f0c51b691d34b4a06c1e22c7960be71e0d0ee84e jdk7u6-b20 diff -r b3d767dbd67f -r ebe5a3b3ceda make/Makefile --- a/make/Makefile Thu Jul 05 23:01:42 2012 -0700 +++ b/make/Makefile Mon Jul 23 12:29:09 2012 +0100 @@ -150,7 +150,7 @@ #----- bin.zip -BIN_ZIP_FILES = $(BUILD_DIR/lib/orb.idl $(BUILD_DIR)/lib/ir.idl +BIN_ZIP_FILES = $(BUILD_DIR)/lib/orb.idl $(BUILD_DIR)/lib/ir.idl BIN_ZIP = $(LIB_DIR)/bin.zip $(BIN_ZIP): $(BIN_ZIP_FILES) diff -r b3d767dbd67f -r ebe5a3b3ceda make/common/shared/Platform.gmk --- a/make/common/shared/Platform.gmk Thu Jul 05 23:01:42 2012 -0700 +++ b/make/common/shared/Platform.gmk Mon Jul 23 12:29:09 2012 +0100 @@ -153,6 +153,9 @@ OS_VERSION := $(shell uname -r) # Arch and OS name/version mach := $(shell uname -m) + ifneq (,$(wildcard /usr/bin/dpkg-architecture)) + mach := $(shell (dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null || echo $(mach)) | sed 's/powerpc$$/ppc/;s/hppa/parisc/') + endif archExpr = case "$(mach)" in \ i[3-9]86) \ echo i586 \ @@ -169,6 +172,9 @@ arm*) \ echo arm \ ;; \ + sh*) \ + echo sh \ + ;; \ *) \ echo $(mach) \ ;; \ @@ -196,6 +202,9 @@ else ARCH_DATA_MODEL=64 endif + ifeq ($(ARCH), sh) + ARCH_DATA_MODEL=32 + endif endif endif From andrew at icedtea.classpath.org Mon Jul 23 05:10:22 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Mon, 23 Jul 2012 12:10:22 +0000 Subject: /hg/release/icedtea7-forest-2.3/jaxp: 4 new changesets Message-ID: changeset 3ba4c395d2cf in /hg/release/icedtea7-forest-2.3/jaxp details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jaxp?cmd=changeset;node=3ba4c395d2cf author: katleman date: Fri Jul 06 15:03:08 2012 -0700 Added tag jdk7u6-b18 for changeset 1c4b9671de5c changeset 4f7b77cc3b25 in /hg/release/icedtea7-forest-2.3/jaxp details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jaxp?cmd=changeset;node=4f7b77cc3b25 author: katleman date: Wed Jul 11 11:23:01 2012 -0700 Added tag jdk7u6-b19 for changeset 3ba4c395d2cf changeset 7403701aa758 in /hg/release/icedtea7-forest-2.3/jaxp details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jaxp?cmd=changeset;node=7403701aa758 author: katleman date: Wed Jul 18 16:11:04 2012 -0700 Added tag jdk7u6-b20 for changeset 4f7b77cc3b25 changeset 2cd8377a299e in /hg/release/icedtea7-forest-2.3/jaxp details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jaxp?cmd=changeset;node=2cd8377a299e author: andrew date: Mon Jul 23 12:29:10 2012 +0100 Merge jdk7u6-b20 diffstat: .hgtags | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diffs (59 lines): diff -r 1c4b9671de5c -r 2cd8377a299e .hgtags --- a/.hgtags Thu Jul 05 23:02:00 2012 -0700 +++ b/.hgtags Mon Jul 23 12:29:10 2012 +0100 @@ -50,6 +50,7 @@ feb05980f9f2964e6bc2b3a8532f9b3054c2289b jdk7-b73 ea7b88c676dd8b269bc858a4a17c14dc96c8aed1 jdk7-b74 555fb78ee4cebed082ca7ddabff46d2e5b4c9026 jdk7-b75 +fb68fd18eb9f9d94bd7f307097b98a5883018da8 icedtea7-1.12 233a4871d3364ec305efd4a58cfd676620a03a90 jdk7-b76 bfadab8c7b1bf806a49d3e1bc19ec919717f057a jdk7-b77 7a12d3789e1b07a560fc79568b991818d617ede2 jdk7-b78 @@ -63,6 +64,7 @@ 81c0f115bbe5d3bcf59864465b5eca5538567c79 jdk7-b86 8b493f1aa136d86de0885fcba15262c4fa2b1412 jdk7-b87 d8ebd15910034f2ba50b2f129f959f86cca01419 jdk7-b88 +826bafcb6c4abbf24887bfc5a78868e13cddd068 icedtea7-1.13 d2818fd2b036f3b3154a9a7de41afcf4ac679c1b jdk7-b89 c5d932ee326d6f7fd4634b11c7185ea82d184df2 jdk7-b90 b89b2c3044a298d542f84a2e9d957202b7d8cdb9 jdk7-b91 @@ -111,6 +113,7 @@ d56b326ae0544fc16c3e0d0285876f3c82054db2 jdk7-b134 4aa9916693dc1078580c1865e6f2584046851e5a jdk7-b135 1759daa85d33800bd578853f9531f9de73f70fc7 jdk7-b136 +1c2f25bf36b1d43920e94fb82a0afdafd29b1735 icedtea-1.14 1d87f7460cde7f8f30af668490f82b52b879bfd8 jdk7-b137 be3758943770a0a3dd4be6a1cb4063507c4d7062 jdk7-b138 28c7c0ed2444607829ba11ad827f8d52197a2830 jdk7-b139 @@ -123,6 +126,7 @@ bcd31fa1e3c6f51b4fdd427ef905188cdac57164 jdk7-b146 067fb18071e3872698f6218724958bd0cebf30a3 jdk7u1-b01 fc268cd1dd5d2e903ccd4b0275e1f9c2461ed30c jdk7-b147 +b8d01501956a0d41f5587ff1bebbfe5a9b8fea5a icedtea-2.0-branchpoint 104ca42e1e7ca66b074a4619ce6420f15d8f454d jdk7u1-b02 64e323faadf65018c1ffc8bb9c97f7b664e87347 jdk7u1-b03 2256c20e66857f80cacda14ffdbc0979c929d7f8 jdk7u1-b04 @@ -141,6 +145,7 @@ 0e61ef309edd2deb71f53f2bdaf6dcff1c80bfb8 jdk7u2-b12 d9ac427e5149d1db12c6f3e4aa4280587c06aed5 jdk7u2-b13 0efaf5c97fba2ee7864240efaa0df651a2635ae5 jdk7u2-b21 +7300d2ab9fb2068250a96ca4afc481c4beb6a42b icedtea-2.1-branchpoint 0efaf5c97fba2ee7864240efaa0df651a2635ae5 jdk7u3-b02 604dd391203960d0028fc95bc70b0ae161e09d99 jdk7u3-b03 551c076358f6691999f613db9b155c83ec9a648d jdk7u3-b04 @@ -157,6 +162,7 @@ 7a37651d304de62b18b343b3ae675ab1b08fc5fe jdk7u4-b10 3fbd87d50fbf4de3987e36ec5f3e8ce1c383ce3d jdk7u4-b11 b4e5df5b18bb75db15ed97da02e5df086d2c7930 jdk7u4-b12 +c51876b27811ba0f6ea3409ba19d357b7400908a icedtea-2.2-branchpoint 7d18bccaec3781f3d4f2d71879f91e257db2f0f7 jdk7u4-b13 82c5b3166b3194e7348b2a9d146b6760c9a77128 jdk7u4-b14 36490d49683f7be9d8fbbe1f8eefa1fe9fe550fa jdk7u5-b01 @@ -191,3 +197,7 @@ 94474d6f28284a1ef492984dd6d6f66f8787de80 jdk7u6-b15 0b329a8d325b6a58d89c6042dac62ce5852380ab jdk7u6-b16 5eb867cdd08ca299fe03b31760acd57aac2b5673 jdk7u6-b17 +445dd0b578fc2ed12c539eb6f9a71cbd40bed4f6 icedtea-2.3-branchpoint +1c4b9671de5c7ed5713f55509cb2ada38b36dffe jdk7u6-b18 +3ba4c395d2cf973c8c603b2aedc846bd4ae54656 jdk7u6-b19 +4f7b77cc3b252098f52a8f30a74f603783a2e0f1 jdk7u6-b20 From andrew at icedtea.classpath.org Mon Jul 23 05:10:40 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Mon, 23 Jul 2012 12:10:40 +0000 Subject: /hg/release/icedtea7-forest-2.3/jaxws: 4 new changesets Message-ID: changeset 58c1c6ecf8f1 in /hg/release/icedtea7-forest-2.3/jaxws details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jaxws?cmd=changeset;node=58c1c6ecf8f1 author: katleman date: Fri Jul 06 15:03:12 2012 -0700 Added tag jdk7u6-b18 for changeset a1daf7097c61 changeset 6d17242f12ed in /hg/release/icedtea7-forest-2.3/jaxws details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jaxws?cmd=changeset;node=6d17242f12ed author: katleman date: Wed Jul 11 11:23:03 2012 -0700 Added tag jdk7u6-b19 for changeset 58c1c6ecf8f1 changeset 55dcda93e8c8 in /hg/release/icedtea7-forest-2.3/jaxws details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jaxws?cmd=changeset;node=55dcda93e8c8 author: katleman date: Wed Jul 18 16:11:07 2012 -0700 Added tag jdk7u6-b20 for changeset 6d17242f12ed changeset e94e23aa013e in /hg/release/icedtea7-forest-2.3/jaxws details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jaxws?cmd=changeset;node=e94e23aa013e author: andrew date: Mon Jul 23 12:29:10 2012 +0100 Merge jdk7u6-b20 diffstat: .hgtags | 10 ++++++++++ patches/jaxws_src/xjc.patch | 17 +++++++++++++++++ 2 files changed, 27 insertions(+), 0 deletions(-) diffs (80 lines): diff -r a1daf7097c61 -r e94e23aa013e .hgtags --- a/.hgtags Thu Jul 05 23:02:01 2012 -0700 +++ b/.hgtags Mon Jul 23 12:29:10 2012 +0100 @@ -50,6 +50,7 @@ 558985e26fe16f5a6ebb2edb9180a42e1c8e8202 jdk7-b73 f4466e1b608088c90e11beaa4b600f102608c6a1 jdk7-b74 fcf2b8b5d606641659419f247fcee4b284c45e6e jdk7-b75 +0dc08d528c998ca993e759b311e7b54c98e0ef28 icedtea7-1.12 765d2077d1e652e234d27fe85ba58a986b488503 jdk7-b76 5b4968c110476085225d3a71c4210fad2c1116c1 jdk7-b77 fc1c72d1dfbb17db7d46bba8db9afc39cbbb9299 jdk7-b78 @@ -63,6 +64,7 @@ 512b0e924a5ae0c0b7ad326182cae0dc0e4d1aa8 jdk7-b86 3febd6fab2ac8ffddbaf7bed00d11290262af153 jdk7-b87 8c666f8f3565974e301ccb58b7538912551a6e26 jdk7-b88 +1661166c82dc2102f3f0364e28d1e4211f25a4cf icedtea7-1.13 bf3675aa7f20fc6f241ce95760005aef2a30ff41 jdk7-b89 ead7c4566a0017bcb44b468b3ac03b60dc5333ce jdk7-b90 cf4686bf35abd1e573f09fa43cbec66403160ae9 jdk7-b91 @@ -111,6 +113,7 @@ 545de8303fec939db3892f7c324dd7df197e8f09 jdk7-b134 d5fc61f18043765705ef22b57a68c924ab2f1a5b jdk7-b135 c81d289c9a532d6e94af3c09d856a2a20529040f jdk7-b136 +339c2d381d80dbf9b74604e6ba43ead276b8024e icedtea-1.14 ccea3282991ce8b678e188cf32a8239f76ff3bfa jdk7-b137 cc956c8a8255583535597e9a63db23c510e9a063 jdk7-b138 c025078c8362076503bb83b8e4da14ba7b347940 jdk7-b139 @@ -123,6 +126,7 @@ 05469dd4c3662c454f8a019e492543add60795cc jdk7-b146 c01bfd68d0528bc88348813c4d75d7f5c62bc4e2 jdk7u1-b01 d13b1f877bb5ed8dceb2f7ec10365d1db5f70b2d jdk7-b147 +e6cd09c7ef22bbabe31c9f2a32c7e13cfa713fd3 icedtea-2.0-branchpoint 4c24f7019ce939a452154a83151294ad7da66a9d jdk7u1-b02 272778f529d11081f548f37fcd6a7aec0b11a8dd jdk7u1-b03 48b06a6e6f46e5bcd610f4bed57cd5067cf31f8c jdk7u1-b04 @@ -141,6 +145,7 @@ 21131044a61353ac20e360bce52d8f480e08d7a2 jdk7u2-b12 9728fd833e01faa5e51484aeaf3c51d32d1175fb jdk7u2-b13 d6db86a7ca32e6d97844f633badc0d516e55694f jdk7u2-b21 +d26ff33070cb75a0a7349d965ec4f0930ded418d icedtea-2.1-branchpoint d6db86a7ca32e6d97844f633badc0d516e55694f jdk7u3-b02 44e824502fa24440f907205ccdc3959d01bd8109 jdk7u3-b03 6e1cc321aacea944691aa06558f2bbad89baf5b3 jdk7u3-b04 @@ -157,6 +162,7 @@ 3891fe529057431278394c6341cfabaacd5061f5 jdk7u4-b10 2df5cd83fab91f050c4bac54aa06e174ecee38f4 jdk7u4-b11 4d3a9fe44f7531642bc739ec3c8efb2e6d9e08c7 jdk7u4-b12 +1854d8e2547cb18ebcf84db13c22d0987c49c274 icedtea-2.2-branchpoint c3b6659aa169b3f249246497a8d5a87baa1e798a jdk7u4-b13 0f8963feaefda21e72f84b8ea49834a289d537f3 jdk7u4-b14 61516652b59ec411678b38a232a84413652a4172 jdk7u5-b01 @@ -191,3 +197,7 @@ f1dba7ebe6a50c22ffcaf85b14b31462ce008556 jdk7u6-b15 e1d2afbb63d27600dd8c8a021eadff84a901a73c jdk7u6-b16 401bdbbf89c9187b51dc8906c0e2700ef0ffc8a3 jdk7u6-b17 +8888d2790217c31edbf13ea81d9ac06210092ad2 icedtea-2.3-branchpoint +a1daf7097c61181216233e4850ef6ec56b0fe6b6 jdk7u6-b18 +58c1c6ecf8f1e59db9b575ae57b2894d0152d319 jdk7u6-b19 +6d17242f12edc643ecab4263e656003a1ca44c03 jdk7u6-b20 diff -r a1daf7097c61 -r e94e23aa013e patches/jaxws_src/xjc.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/jaxws_src/xjc.patch Mon Jul 23 12:29:10 2012 +0100 @@ -0,0 +1,17 @@ +--- src/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java.prev 2008-10-21 15:50:20.000000000 +0100 ++++ src/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java 2008-10-21 15:57:37.000000000 +0100 +@@ -66,6 +66,14 @@ + + SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI); + sf.setErrorHandler(errorFilter); ++ try { ++ // By default the SchemaFactory imposes a limit of 5000 on ++ // xsd:sequence maxOccurs if a SecurityManager is ++ // installed. This breaks the specification of xjc, ++ // causing TCK failures. ++ sf.setProperty("http://apache.org/xml/properties/security-manager", null); ++ } catch (SAXException e) { ++ } + if( entityResolver != null ) { + sf.setResourceResolver(new LSResourceResolver() { + public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) { From andrew at icedtea.classpath.org Mon Jul 23 05:10:48 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Mon, 23 Jul 2012 12:10:48 +0000 Subject: /hg/release/icedtea7-forest-2.3/langtools: 4 new changesets Message-ID: changeset 474a52eeeafb in /hg/release/icedtea7-forest-2.3/langtools details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/langtools?cmd=changeset;node=474a52eeeafb author: katleman date: Fri Jul 06 15:03:33 2012 -0700 Added tag jdk7u6-b18 for changeset 6aa859ef4287 changeset 32acb67a7953 in /hg/release/icedtea7-forest-2.3/langtools details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/langtools?cmd=changeset;node=32acb67a7953 author: katleman date: Wed Jul 11 11:23:21 2012 -0700 Added tag jdk7u6-b19 for changeset 474a52eeeafb changeset a35ca56cf8d0 in /hg/release/icedtea7-forest-2.3/langtools details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/langtools?cmd=changeset;node=a35ca56cf8d0 author: katleman date: Wed Jul 18 16:11:33 2012 -0700 Added tag jdk7u6-b20 for changeset 32acb67a7953 changeset 8a91dc202019 in /hg/release/icedtea7-forest-2.3/langtools details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/langtools?cmd=changeset;node=8a91dc202019 author: andrew date: Mon Jul 23 12:29:10 2012 +0100 Merge jdk7u6-b20 diffstat: .hgtags | 10 ++++++++++ make/build.xml | 2 +- 2 files changed, 11 insertions(+), 1 deletions(-) diffs (71 lines): diff -r 6aa859ef4287 -r 8a91dc202019 .hgtags --- a/.hgtags Thu Jul 05 23:02:20 2012 -0700 +++ b/.hgtags Mon Jul 23 12:29:10 2012 +0100 @@ -50,6 +50,7 @@ 9596dff460935f09684c11d156ce591f92584f0d jdk7-b73 1a66b08deed0459054b5b1bea3dfbead30d258fa jdk7-b74 2485f5641ed0829205aaaeb31ad711c2c2ef0de3 jdk7-b75 +83367f01297bf255f511f5291bbbbaa24a9c8459 icedtea7-1.12 8fb9b4be3cb1574302acde90549a4d333ef51e93 jdk7-b76 0398ae15b90ac76d87ee21844453e95ff8613e43 jdk7-b77 acc1e40a5874ebf32bebcb6ada565b3b40b7461c jdk7-b78 @@ -63,6 +64,7 @@ ef07347428f2198ae6b8144ac0b9086bbe39fd16 jdk7-b86 409db93d19c002333980df5b797c6b965150c7a0 jdk7-b87 f9b5d4867a26f8c4b90ad37fe2c345b721e93d6b jdk7-b88 +681f1f51926faf4c73d8905a429ff4ead6e9d622 icedtea7-1.13 6cea9a143208bc1185ced046942c0f4e45dbeba5 jdk7-b89 71c2c23a7c35b2896c87004023b9743b6d1b7758 jdk7-b90 97b6fa97b8ddb3a49394011c2a0ec5d6535e594c jdk7-b91 @@ -111,6 +113,7 @@ 3d7acdbb72cab55deedfd35f60d4732abc9d6ac4 jdk7-b134 9d0a61ac567b983da7cc8f4a7030f2245bb6dbab jdk7-b135 ed0f7f1f9511db4f9615b1426d22f8b961629275 jdk7-b136 +8e26c4aee63c04ee129bf9068f5eea47cc385177 icedtea-1.14 a15c9b058ae007d4ccb7e35ce44e4dfa977f090b jdk7-b137 53f212bed4f4304dce7f0bf0fa01c998c65bacd6 jdk7-b138 853b6bb99f9b58eb7cf8211c67d3b6e4f1228a3e jdk7-b139 @@ -123,6 +126,7 @@ 9425dd4f53d5bfcd992d9aecea0eb7d8b2d4f62b jdk7-b146 d34578643d1c6c752d4a6b5e79c6ab1b60850b4a jdk7u1-b01 58bc532d63418ac3c9b42460d89cdaf595c6f3e1 jdk7-b147 +fb7fb3071b642334520e5b9f4a87ce28717af61c icedtea-2.0-branchpoint cd2cc8b5edb045b950aed46d159b4fb8fc2fd1df jdk7u1-b02 82820a30201dbf4b80f1916f3d0f4a92ad21b61a jdk7u1-b03 baa2c13c70fea3d6e259a34f0903197fdceb64b5 jdk7u1-b04 @@ -141,6 +145,7 @@ f0802d8a0909f66ce19d3d44b33ddf4943aee076 jdk7u2-b12 f474527e77e4797d78bd6c3b31923fddcfd9d5c6 jdk7u2-b13 fc0769df8cd03fffc38c7a1ab6b2e2e7cc2506a8 jdk7u2-b21 +58f6a950cd726220e81eddb126ca5c57e3b368f2 icedtea-2.1-branchpoint fc0769df8cd03fffc38c7a1ab6b2e2e7cc2506a8 jdk7u3-b02 0ffc4995457773085f61c39f6d33edc242b41bcf jdk7u3-b03 f6de36b195cd315646213c7affd2cc15702edbfb jdk7u3-b04 @@ -157,6 +162,7 @@ 8919b2b02fcba65f833c68374f3bfdd9bc3ba814 jdk7u4-b10 4672e092f0968d503dc37f860b15ae7e2653f8d7 jdk7u4-b11 a4bf6a1aff54a98e9ff2b3fb53c719f658bec677 jdk7u4-b12 +e3537a4f75c7fcca16c349c3175bb0cdc2fbc29c icedtea-2.2-branchpoint 56eb9150d9ffdb71c47d72871e8ecc98b5f402de jdk7u4-b13 0e55881c2ee2984048c179d1e031cefb56a36bec jdk7u4-b14 0bea057f7ce1577e1b0306f2027c057e35394398 jdk7u5-b01 @@ -191,3 +197,7 @@ 47ae28da508861d77ee6dd408d822acf507b28ec jdk7u6-b15 5c7763489f4d2727c6d9de11f4114fb8ed839042 jdk7u6-b16 66c671f28cb2840ceec5b44c44bac073fc0b4256 jdk7u6-b17 +cee31ee38a190f77b1e21c0515bb28802dcd9678 icedtea-2.3-branchpoint +6aa859ef42876c51bb1b1d7fb4db32a916a7dcaa jdk7u6-b18 +474a52eeeafb1feccffda68b96f651e65415c01d jdk7u6-b19 +32acb67a79531daf678577c7ef1bde1867da807d jdk7u6-b20 diff -r 6aa859ef4287 -r 8a91dc202019 make/build.xml --- a/make/build.xml Thu Jul 05 23:02:20 2012 -0700 +++ b/make/build.xml Mon Jul 23 12:29:10 2012 +0100 @@ -877,7 +877,7 @@ + classpath="${build.toolclasses.dir}:${build.bootstrap.dir}/classes:${ant.home}/lib/ant.jar"/> From andrew at icedtea.classpath.org Mon Jul 23 05:10:59 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Mon, 23 Jul 2012 12:10:59 +0000 Subject: /hg/release/icedtea7-forest-2.3/hotspot: 12 new changesets Message-ID: changeset 1257f4373a06 in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=1257f4373a06 author: katleman date: Fri Jul 06 15:02:58 2012 -0700 Added tag jdk7u6-b18 for changeset df0df4ae5af2 changeset 0aea8f0afd27 in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=0aea8f0afd27 author: katleman date: Wed Jul 11 11:22:49 2012 -0700 Added tag jdk7u6-b19 for changeset 1257f4373a06 changeset 43fe30b725f2 in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=43fe30b725f2 author: amurillo date: Fri Jun 29 16:44:04 2012 -0700 7180884: new hotspot build - hs23.2-b09 Reviewed-by: jcoomes changeset ab0720e5abbb in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=ab0720e5abbb author: dlong date: Mon Jun 25 15:34:06 2012 -0400 7156729: PPC: R_PPC_REL24 relocation error related to some libraries built without -fPIC Summary: build powerpc with -fPIC Reviewed-by: mikael, vladidan, roland Contributed-by: dean.long at oracle.com changeset 3f142ec74a26 in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=3f142ec74a26 author: kamg date: Mon Jul 09 18:03:04 2012 -0400 7167142: Consider a warning when finding a .hotspotrc or .hotspot_compiler file that isn't used Summary: Send warnings to output stream Reviewed-by: dholmes, fparain changeset 571bc10e2a37 in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=571bc10e2a37 author: kamg date: Wed Jul 11 09:17:40 2012 -0400 7181200: JVM new hashing code breaks SA in product mode Summary: Made new_hash() overloaded rather than a virtual function so SA code doesn't need to be changed. Reviewed-by: kvn, acorn, dholmes, fparain Contributed-by: coleen.phillimore at oracle.com changeset cfb2ea9dfefd in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=cfb2ea9dfefd author: minqi date: Fri Jun 22 15:35:30 2012 -0700 7175133: jinfo failed to get system properties after 6924259 Summary: String offset and count fields as fix of 6924259 were removed, and become optional. SA still use offset and count fields to read String contents and failed. Fix if they exist, use them other then use value field only to read, this keeps consistent with the changes in 6924259. Reviewed-by: dholmes, mikael Contributed-by: yumin.qi at oracle.com changeset a4b60109cffc in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=a4b60109cffc author: minqi date: Fri Jun 22 15:39:16 2012 -0700 7177128: SA cannot get correct system properties after 7126277 Summary: Bug fix of 7126277 changed hashing algorithm and also changed key as final field, this led SA unable to set correct value for key. Solution by reading key/value and insert them into the new table. Reviewed-by: dholmes, mikael Contributed-by: yumin.qi at oracle.com changeset a0c2fa4baeb6 in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=a0c2fa4baeb6 author: amurillo date: Fri Jul 13 13:29:49 2012 -0700 Merge changeset 1e31ae50c2cf in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=1e31ae50c2cf author: amurillo date: Fri Jul 13 13:29:50 2012 -0700 Added tag hs23.2-b09 for changeset a0c2fa4baeb6 changeset 02a6c89432d7 in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=02a6c89432d7 author: katleman date: Wed Jul 18 16:10:39 2012 -0700 Added tag jdk7u6-b20 for changeset 1e31ae50c2cf changeset 61f041234eec in /hg/release/icedtea7-forest-2.3/hotspot details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=61f041234eec author: andrew date: Mon Jul 23 12:29:12 2012 +0100 Merge jdk7u6-b20 diffstat: .hgtags | 11 + agent/src/os/linux/Makefile | 11 +- agent/src/os/linux/libproc.h | 29 +- agent/src/share/classes/sun/jvm/hotspot/oops/OopUtilities.java | 19 +- agent/src/share/classes/sun/jvm/hotspot/utilities/ObjectReader.java | 128 +++++++- make/hotspot_version | 2 +- make/linux/makefiles/defs.make | 54 ++- make/linux/makefiles/gcc.make | 47 ++- make/linux/makefiles/jsig.make | 6 +- make/linux/makefiles/rules.make | 10 - make/linux/makefiles/saproc.make | 4 + make/linux/makefiles/vm.make | 24 +- make/linux/platform_zero.in | 2 +- make/pic.make | 9 +- make/solaris/makefiles/dtrace.make | 16 + make/solaris/makefiles/jsig.make | 4 + make/solaris/makefiles/rules.make | 10 - make/solaris/makefiles/saproc.make | 4 + make/solaris/makefiles/vm.make | 12 + make/windows/makefiles/vm.make | 8 + src/cpu/x86/vm/c2_globals_x86.hpp | 2 +- src/cpu/zero/vm/deoptimizerFrame_zero.hpp | 53 +++ src/cpu/zero/vm/methodHandles_zero.hpp | 17 +- src/cpu/zero/vm/sharedRuntime_zero.cpp | 19 +- src/os/linux/vm/os_linux.cpp | 39 ++- src/os_cpu/linux_sparc/vm/assembler_linux_sparc.cpp | 11 +- src/share/vm/asm/codeBuffer.hpp | 2 +- src/share/vm/ci/ciTypeFlow.cpp | 2 +- src/share/vm/classfile/symbolTable.cpp | 24 - src/share/vm/classfile/symbolTable.hpp | 11 - src/share/vm/classfile/systemDictionary.cpp | 1 - src/share/vm/compiler/compilerOracle.cpp | 13 +- src/share/vm/compiler/methodLiveness.cpp | 12 +- src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp | 6 +- src/share/vm/gc_implementation/g1/concurrentMark.cpp | 2 +- src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp | 4 +- src/share/vm/gc_implementation/parallelScavenge/psPermGen.cpp | 2 +- src/share/vm/memory/collectorPolicy.cpp | 2 +- src/share/vm/memory/threadLocalAllocBuffer.cpp | 2 +- src/share/vm/opto/cfgnode.cpp | 2 + src/share/vm/opto/type.cpp | 2 + src/share/vm/prims/jni.cpp | 2 +- src/share/vm/prims/jvmtiEnv.cpp | 3 + src/share/vm/runtime/arguments.cpp | 33 +- src/share/vm/runtime/globals.hpp | 2 +- src/share/vm/runtime/os.cpp | 3 + src/share/vm/runtime/vmStructs.cpp | 10 +- src/share/vm/shark/sharkCompiler.cpp | 4 +- src/share/vm/utilities/bitMap.hpp | 2 +- src/share/vm/utilities/hashtable.cpp | 25 +- src/share/vm/utilities/hashtable.hpp | 9 +- src/share/vm/utilities/macros.hpp | 16 + src/share/vm/utilities/ostream.cpp | 2 +- src/share/vm/utilities/vmError.cpp | 10 +- test/runtime/6929067/Test6929067.sh | 35 ++- test/runtime/7020373/GenOOMCrashClass.java | 157 ++++++++++ test/runtime/7020373/Test7020373.sh | 7 +- test/runtime/7020373/testcase.jar | Bin 58 files changed, 780 insertions(+), 178 deletions(-) diffs (truncated from 2122 to 500 lines): diff -r df0df4ae5af2 -r 61f041234eec .hgtags --- a/.hgtags Thu Jul 05 23:01:51 2012 -0700 +++ b/.hgtags Mon Jul 23 12:29:12 2012 +0100 @@ -50,6 +50,7 @@ faf94d94786b621f8e13cbcc941ca69c6d967c3f jdk7-b73 f4b900403d6e4b0af51447bd13bbe23fe3a1dac7 jdk7-b74 d8dd291a362acb656026a9c0a9da48501505a1e7 jdk7-b75 +b4ab978ce52c41bb7e8ee86285e6c9f28122bbe1 icedtea7-1.12 9174bb32e934965288121f75394874eeb1fcb649 jdk7-b76 455105fc81d941482f8f8056afaa7aa0949c9300 jdk7-b77 e703499b4b51e3af756ae77c3d5e8b3058a14e4e jdk7-b78 @@ -87,6 +88,7 @@ 07226e9eab8f74b37346b32715f829a2ef2c3188 hs18-b01 e7e7e36ccdb5d56edd47e5744351202d38f3b7ad jdk7-b87 4b60f23c42231f7ecd62ad1fcb6a9ca26fa57d1b jdk7-b88 +a393ff93e7e54dd94cc4211892605a32f9c77dad icedtea7-1.13 15836273ac2494f36ef62088bc1cb6f3f011f565 jdk7-b89 4b60f23c42231f7ecd62ad1fcb6a9ca26fa57d1b hs18-b02 605c9707a766ff518cd841fc04f9bb4b36a3a30b jdk7-b90 @@ -160,6 +162,7 @@ b898f0fc3cedc972d884d31a751afd75969531cf hs21-b05 bd586e392d93b7ed7a1636dcc8da2b6a4203a102 jdk7-b136 bd586e392d93b7ed7a1636dcc8da2b6a4203a102 hs21-b06 +591c7dc0b2ee879f87a7b5519a5388e0d81520be icedtea-1.14 2dbcb4a4d8dace5fe78ceb563b134f1fb296cd8f jdk7-b137 2dbcb4a4d8dace5fe78ceb563b134f1fb296cd8f hs21-b07 0930dc920c185afbf40fed9a655290b8e5b16783 jdk7-b138 @@ -182,6 +185,7 @@ 38fa55e5e79232d48f1bb8cf27d88bc094c9375a hs21-b16 81d815b05abb564aa1f4100ae13491c949b9a07e jdk7-b147 81d815b05abb564aa1f4100ae13491c949b9a07e hs21-b17 +7693eb0fce1f6b484cce96c233ea20bdad8a09e0 icedtea-2.0-branchpoint 9b0ca45cd756d538c4c30afab280a91868eee1a5 jdk7u2-b01 0cc8a70952c368e06de2adab1f2649a408f5e577 jdk8-b01 31e253c1da429124bb87570ab095d9bc89850d0a jdk8-b02 @@ -210,6 +214,7 @@ 3ba0bb2e7c8ddac172f5b995aae57329cdd2dafa hs22-b10 f17fe2f4b6aacc19cbb8ee39476f2f13a1c4d3cd jdk7u2-b13 0744602f85c6fe62255326df595785eb2b32166d jdk7u2-b21 +f8f4d3f9b16567b91bcef4caaa8417c8de8015f0 icedtea-2.1-branchpoint a40d238623e5b1ab1224ea6b36dc5b23d0a53880 jdk7u3-b02 6986bfb4c82e00b938c140f2202133350e6e73f8 jdk7u3-b03 8e6375b46717d74d4885f839b4e72d03f357a45f jdk7u3-b04 @@ -264,6 +269,7 @@ f92a171cf0071ca6c3fa8231d7d570377f8b2f4d hs23-b16 f92a171cf0071ca6c3fa8231d7d570377f8b2f4d hs23-b16 931e5f39e365a0d550d79148ff87a7f9e864d2e1 hs23-b16 +a2c5354863dcb3d147b7b6f55ef514b1bfecf920 icedtea-2.2-branchpoint efb5f2662c96c472caa3327090268c75a86dd9c0 jdk7u4-b13 82e719a2e6416838b4421637646cbfd7104c7716 jdk7u4-b14 e5f7f95411fb9e837800b4152741c962118e5d7a jdk7u5-b01 @@ -311,3 +317,8 @@ cefe884c708aa6dfd63aff45f6c698a6bc346791 jdk7u6-b16 270a40a57b3d05ca64070208dcbb895b5b509d8e hs23.2-b08 7a37cec9d0d44ae6ea3d26a95407e42d99af6843 jdk7u6-b17 +354cfde7db2f1fd46312d883a63c8a76d5381bab icedtea-2.3-branchpoint +df0df4ae5af2f40b7f630c53a86e8c3d68ef5b66 jdk7u6-b18 +1257f4373a06f788bd656ae1c7a953a026a285b9 jdk7u6-b19 +a0c2fa4baeb6aad6f33dc87b676b21345794d61e hs23.2-b09 +1e31ae50c2cff8e7945ab8696d4d91f7f83d5d18 jdk7u6-b20 diff -r df0df4ae5af2 -r 61f041234eec agent/src/os/linux/Makefile --- a/agent/src/os/linux/Makefile Thu Jul 05 23:01:51 2012 -0700 +++ b/agent/src/os/linux/Makefile Mon Jul 23 12:29:12 2012 +0100 @@ -23,7 +23,12 @@ # ARCH := $(shell if ([ `uname -m` = "ia64" ]) ; then echo ia64 ; elif ([ `uname -m` = "x86_64" ]) ; then echo amd64; elif ([ `uname -m` = "sparc64" ]) ; then echo sparc; else echo i386 ; fi ) -GCC = gcc + +ifndef BUILD_GCC +BUILD_GCC = gcc +endif + +GCC = $(BUILD_GCC) JAVAH = ${JAVA_HOME}/bin/javah @@ -40,7 +45,7 @@ LIBS = -lthread_db -CFLAGS = -c -fPIC -g -D_GNU_SOURCE -D$(ARCH) $(INCLUDES) -D_FILE_OFFSET_BITS=64 +CFLAGS = -c -fPIC -g -D_GNU_SOURCE -D_$(ARCH)_ $(if $(filter $(ARCH),alpha),,-D$(ARCH)) $(INCLUDES) -D_FILE_OFFSET_BITS=64 LIBSA = $(ARCH)/libsaproc.so @@ -73,7 +78,7 @@ $(GCC) -shared $(LFLAGS_LIBSA) -o $(LIBSA) $(OBJS) $(LIBS) test.o: test.c - $(GCC) -c -o test.o -g -D_GNU_SOURCE -D$(ARCH) $(INCLUDES) test.c + $(GCC) -c -o test.o -g -D_GNU_SOURCE -D_$(ARCH)_ $(if $(filter $(ARCH),alpha),,-D$(ARCH)) $(INCLUDES) test.c test: test.o $(GCC) -o test test.o -L$(ARCH) -lsaproc $(LIBS) diff -r df0df4ae5af2 -r 61f041234eec agent/src/os/linux/libproc.h --- a/agent/src/os/linux/libproc.h Thu Jul 05 23:01:51 2012 -0700 +++ b/agent/src/os/linux/libproc.h Mon Jul 23 12:29:12 2012 +0100 @@ -36,9 +36,34 @@ These two files define pt_regs structure differently */ #ifdef _LP64 -#include "asm-sparc64/ptrace.h" +struct pt_regs { + unsigned long u_regs[16]; /* globals and ins */ + unsigned long tstate; + unsigned long tpc; + unsigned long tnpc; + unsigned int y; + + /* We encode a magic number, PT_REGS_MAGIC, along + * with the %tt (trap type) register value at trap + * entry time. The magic number allows us to identify + * accurately a trap stack frame in the stack + * unwinder, and the %tt value allows us to test + * things like "in a system call" etc. for an arbitray + * process. + * + * The PT_REGS_MAGIC is chosen such that it can be + * loaded completely using just a sethi instruction. + */ + unsigned int magic; +}; #else -#include "asm-sparc/ptrace.h" +struct pt_regs { + unsigned long psr; + unsigned long pc; + unsigned long npc; + unsigned long y; + unsigned long u_regs[16]; /* globals and ins */ +}; #endif #endif //sparc or sparcv9 diff -r df0df4ae5af2 -r 61f041234eec agent/src/share/classes/sun/jvm/hotspot/oops/OopUtilities.java --- a/agent/src/share/classes/sun/jvm/hotspot/oops/OopUtilities.java Thu Jul 05 23:01:51 2012 -0700 +++ b/agent/src/share/classes/sun/jvm/hotspot/oops/OopUtilities.java Mon Jul 23 12:29:12 2012 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -141,18 +141,19 @@ public static String stringOopToString(Oop stringOop) { if (offsetField == null) { InstanceKlass k = (InstanceKlass) stringOop.getKlass(); - offsetField = (IntField) k.findField("offset", "I"); - countField = (IntField) k.findField("count", "I"); + offsetField = (IntField) k.findField("offset", "I"); // optional + countField = (IntField) k.findField("count", "I"); // optional valueField = (OopField) k.findField("value", "[C"); if (Assert.ASSERTS_ENABLED) { - Assert.that(offsetField != null && - countField != null && - valueField != null, "must find all java.lang.String fields"); + Assert.that(valueField != null, "Field \'value\' of java.lang.String not found"); } } - return charArrayToString((TypeArray) valueField.getValue(stringOop), - offsetField.getValue(stringOop), - countField.getValue(stringOop)); + if (offsetField != null && countField != null) { + return charArrayToString((TypeArray) valueField.getValue(stringOop), + offsetField.getValue(stringOop), + countField.getValue(stringOop)); + } + return charArrayToString((TypeArray) valueField.getValue(stringOop)); } public static String stringOopToEscapedString(Oop stringOop) { diff -r df0df4ae5af2 -r 61f041234eec agent/src/share/classes/sun/jvm/hotspot/utilities/ObjectReader.java --- a/agent/src/share/classes/sun/jvm/hotspot/utilities/ObjectReader.java Thu Jul 05 23:01:51 2012 -0700 +++ b/agent/src/share/classes/sun/jvm/hotspot/utilities/ObjectReader.java Mon Jul 23 12:29:12 2012 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -85,6 +85,21 @@ this(new ProcImageClassLoader()); } + static void debugPrintln(String msg) { + if (DEBUG) { + System.err.println("DEBUG>" + msg); + } + } + + static void debugPrintStackTrace(Exception exp) { + if (DEBUG) { + StackTraceElement[] els = exp.getStackTrace(); + for (int i = 0; i < els.length; i++) { + System.err.println("DEBUG>" + els[i].toString()); + } + } + } + public Object readObject(Oop oop) throws ClassNotFoundException { if (oop instanceof Instance) { return readInstance((Instance) oop); @@ -120,13 +135,96 @@ } protected Symbol javaLangString; + protected Symbol javaUtilHashtableEntry; + protected Symbol javaUtilHashtable; + protected Symbol javaUtilProperties; + + protected Symbol getVMSymbol(String name) { + return VM.getVM().getSymbolTable().probe(name); + } + protected Symbol javaLangString() { if (javaLangString == null) { - javaLangString = VM.getVM().getSymbolTable().probe("java/lang/String"); + javaLangString = getVMSymbol("java/lang/String"); } return javaLangString; } + protected Symbol javaUtilHashtableEntry() { + if (javaUtilHashtableEntry == null) { + javaUtilHashtableEntry = getVMSymbol("java/util/Hashtable$Entry"); + } + return javaUtilHashtableEntry; + } + + protected Symbol javaUtilHashtable() { + if (javaUtilHashtable == null) { + javaUtilHashtable = getVMSymbol("java/util/Hashtable"); + } + return javaUtilHashtable; + } + + protected Symbol javaUtilProperties() { + if (javaUtilProperties == null) { + javaUtilProperties = getVMSymbol("java/util/Properties"); + } + return javaUtilProperties; + } + + private void setHashtableEntry(java.util.Hashtable p, Oop oop) { + InstanceKlass ik = (InstanceKlass)oop.getKlass(); + OopField keyField = (OopField)ik.findField("key", "Ljava/lang/Object;"); + OopField valueField = (OopField)ik.findField("value", "Ljava/lang/Object;"); + OopField nextField = (OopField)ik.findField("next", "Ljava/util/Hashtable$Entry;"); + if (DEBUG) { + if (Assert.ASSERTS_ENABLED) { + Assert.that(ik.getName().equals(javaUtilHashtableEntry()), "Not a Hashtable$Entry?"); + Assert.that(keyField != null && valueField != null && nextField != null, "Invalid fields!"); + } + } + + Object key = null; + Object value = null; + Oop next = null; + try { + key = readObject(keyField.getValue(oop)); + value = readObject(valueField.getValue(oop)); + next = (Oop)nextField.getValue(oop); + // For Properties, should use setProperty(k, v). Since it only runs in SA + // using put(k, v) should be OK. + p.put(key, value); + if (next != null) { + setHashtableEntry(p, next); + } + } catch (ClassNotFoundException ce) { + if( DEBUG) { + debugPrintln("Class not found " + ce); + debugPrintStackTrace(ce); + } + } + } + + protected Object getHashtable(Instance oop, boolean isProperties) { + InstanceKlass k = (InstanceKlass)oop.getKlass(); + OopField tableField = (OopField)k.findField("table", "[Ljava/util/Hashtable$Entry;"); + if (tableField == null) { + debugPrintln("Could not find field of [Ljava/util/Hashtable$Entry;"); + return null; + } + java.util.Hashtable table = (isProperties) ? new java.util.Properties() + : new java.util.Hashtable(); + ObjArray kvs = (ObjArray)tableField.getValue(oop); + long size = kvs.getLength(); + debugPrintln("Hashtable$Entry Size = " + size); + for (long i=0; i changeset 0d320971b2c2 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=0d320971b2c2 author: katleman date: Fri Jul 06 15:03:19 2012 -0700 Added tag jdk7u6-b18 for changeset 4a6917092af8 changeset 28e43b980aee in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=28e43b980aee author: mfang date: Mon Jul 09 22:58:53 2012 -0700 7182226: NLS: jdk7u6 message drop20 integration Reviewed-by: yhuang changeset a263f787ced5 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=a263f787ced5 author: mfang date: Tue Jul 10 16:27:14 2012 -0700 Merge changeset 22a3627aafa0 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=22a3627aafa0 author: katleman date: Wed Jul 11 11:23:10 2012 -0700 Added tag jdk7u6-b19 for changeset a263f787ced5 changeset 7cb9be8b6478 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=7cb9be8b6478 author: kizune date: Mon Jul 09 11:40:07 2012 +0400 7178079: REGRESSION: Some AWT Drag-n-Drop tests fail since JDK 7u6 b13 Reviewed-by: anthony, serb changeset 38d2807c7801 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=38d2807c7801 author: mduigou date: Thu Jun 28 16:12:58 2012 -0700 7180621: Hashtable has incorrect alternative hashing threshold default value Reviewed-by: dholmes changeset 5b74dcc8191d in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=5b74dcc8191d author: anthony date: Wed Jul 11 13:46:50 2012 +0400 7177173: [macosx] JFrame.setExtendedState(JFrame.MAXIMIZED_BOTH) not working as expected in JDK 7 Summary: Apply the extended state only when needed Reviewed-by: art, serb changeset dcee29cd4b80 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=dcee29cd4b80 author: coffeys date: Wed Jul 11 21:48:16 2012 +0100 7183209: Backout 7105952 changes for jdk7u Reviewed-by: chegar, darcy, alanb changeset 0039f5c7fb51 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=0039f5c7fb51 author: bpatel date: Wed Jul 11 16:19:41 2012 -0700 7182971: Need to include documentation content for JCMD man page Reviewed-by: robilad, tbell changeset 09145b546a2b in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=09145b546a2b author: lana date: Wed Jul 11 20:30:23 2012 -0700 Merge changeset 243717d7fe95 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=243717d7fe95 author: katleman date: Wed Jul 18 16:11:18 2012 -0700 Added tag jdk7u6-b20 for changeset 09145b546a2b changeset e6f38fd66cb3 in /hg/release/icedtea7-forest-2.3/jdk details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/jdk?cmd=changeset;node=e6f38fd66cb3 author: andrew date: Mon Jul 23 12:29:12 2012 +0100 Merge jdk7u6-b20 diffstat: .hgtags | 10 + make/com/sun/java/pack/Makefile | 22 +- make/common/Defs-linux.gmk | 23 +- make/common/Program.gmk | 10 +- make/common/Release.gmk | 20 +- make/common/shared/Compiler-gcc.gmk | 76 +- make/common/shared/Defs-java.gmk | 20 +- make/common/shared/Defs-versions.gmk | 2 +- make/common/shared/Defs.gmk | 2 +- make/common/shared/Platform.gmk | 9 + make/common/shared/Sanity.gmk | 8 + make/docs/Makefile | 6 +- make/java/jli/Makefile | 38 +- make/java/net/FILES_c.gmk | 7 + make/java/net/Makefile | 26 +- make/java/nio/Makefile | 218 +- make/java/version/Makefile | 5 + make/java/zip/FILES_c.gmk | 2 +- make/java/zip/Makefile | 6 +- make/javax/crypto/Makefile | 3 +- make/javax/sound/SoundDefs.gmk | 48 + make/jdk_generic_profile.sh | 81 +- make/sun/awt/FILES_c_unix.gmk | 10 + make/sun/awt/Makefile | 2 +- make/sun/awt/mawt.gmk | 39 +- make/sun/cmm/lcms/FILES_c_unix.gmk | 7 +- make/sun/cmm/lcms/Makefile | 8 +- make/sun/font/Makefile | 6 +- make/sun/jpeg/FILES_c.gmk | 6 +- make/sun/jpeg/Makefile | 11 +- make/sun/net/FILES_java.gmk | 1 + make/sun/security/pkcs11/mapfile-vers | 6 +- make/sun/splashscreen/FILES_c.gmk | 78 +- make/sun/splashscreen/Makefile | 42 +- make/sun/xawt/FILES_c_unix.gmk | 20 + make/sun/xawt/Makefile | 62 +- make/tools/Makefile | 2 + make/tools/freetypecheck/Makefile | 2 +- make/tools/generate_nimbus/Makefile | 1 + make/tools/src/build/tools/buildmetaindex/BuildMetaIndex.java | 22 +- make/tools/src/build/tools/compileproperties/CompileProperties.java | 9 +- make/tools/src/build/tools/dirdiff/DirDiff.java | 4 +- make/tools/src/build/tools/dtdbuilder/DTDBuilder.java | 34 +- make/tools/src/build/tools/dtdbuilder/DTDInputStream.java | 6 +- make/tools/src/build/tools/dtdbuilder/DTDParser.java | 44 +- make/tools/src/build/tools/dtdbuilder/PublicMapping.java | 6 +- make/tools/src/build/tools/generatebreakiteratordata/CharSet.java | 16 +- make/tools/src/build/tools/generatebreakiteratordata/DictionaryBasedBreakIteratorBuilder.java | 8 +- make/tools/src/build/tools/generatebreakiteratordata/GenerateBreakIteratorData.java | 6 +- make/tools/src/build/tools/generatebreakiteratordata/RuleBasedBreakIteratorBuilder.java | 201 +- make/tools/src/build/tools/generatebreakiteratordata/SupplementaryCharacterData.java | 6 +- make/tools/src/build/tools/generatecharacter/GenerateCharacter.java | 4 +- make/tools/src/build/tools/generatecharacter/SpecialCaseMap.java | 147 +- make/tools/src/build/tools/generatecharacter/UnicodeSpec.java | 22 +- make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java | 4 +- make/tools/src/build/tools/hasher/Hasher.java | 38 +- make/tools/src/build/tools/jarsplit/JarSplit.java | 5 +- make/tools/src/build/tools/javazic/Gen.java | 14 +- make/tools/src/build/tools/javazic/GenDoc.java | 16 +- make/tools/src/build/tools/javazic/Main.java | 3 +- make/tools/src/build/tools/javazic/Simple.java | 23 +- make/tools/src/build/tools/javazic/Time.java | 10 +- make/tools/src/build/tools/javazic/Zoneinfo.java | 18 +- make/tools/src/build/tools/jdwpgen/AbstractCommandNode.java | 7 +- make/tools/src/build/tools/jdwpgen/AbstractGroupNode.java | 7 +- make/tools/src/build/tools/jdwpgen/AbstractNamedNode.java | 14 +- make/tools/src/build/tools/jdwpgen/AbstractTypeListNode.java | 26 +- make/tools/src/build/tools/jdwpgen/AltNode.java | 4 +- make/tools/src/build/tools/jdwpgen/CommandSetNode.java | 11 +- make/tools/src/build/tools/jdwpgen/ConstantSetNode.java | 9 +- make/tools/src/build/tools/jdwpgen/ErrorSetNode.java | 9 +- make/tools/src/build/tools/jdwpgen/Node.java | 25 +- make/tools/src/build/tools/jdwpgen/OutNode.java | 14 +- make/tools/src/build/tools/jdwpgen/RootNode.java | 10 +- make/tools/src/build/tools/jdwpgen/SelectNode.java | 10 +- make/tools/src/build/tools/makeclasslist/MakeClasslist.java | 15 +- make/tools/src/build/tools/stripproperties/StripProperties.java | 4 +- src/linux/doc/man/ja/appletviewer.1 | 4 +- src/linux/doc/man/ja/apt.1 | 4 +- src/linux/doc/man/ja/extcheck.1 | 2 +- src/linux/doc/man/ja/idlj.1 | 10 +- src/linux/doc/man/ja/jar.1 | 22 +- src/linux/doc/man/ja/jarsigner.1 | 12 +- src/linux/doc/man/ja/java.1 | 82 +- src/linux/doc/man/ja/javac.1 | 6 +- src/linux/doc/man/ja/javadoc.1 | 120 +- src/linux/doc/man/ja/javah.1 | 2 +- src/linux/doc/man/ja/javap.1 | 4 +- src/linux/doc/man/ja/javaws.1 | 6 +- src/linux/doc/man/ja/jcmd.1 | 18 +- src/linux/doc/man/ja/jconsole.1 | 14 +- src/linux/doc/man/ja/jdb.1 | 10 +- src/linux/doc/man/ja/jhat.1 | 14 +- src/linux/doc/man/ja/jinfo.1 | 2 +- src/linux/doc/man/ja/jmap.1 | 2 +- src/linux/doc/man/ja/jps.1 | 2 +- src/linux/doc/man/ja/jrunscript.1 | 6 +- src/linux/doc/man/ja/jsadebugd.1 | 6 +- src/linux/doc/man/ja/jstack.1 | 4 +- src/linux/doc/man/ja/jstat.1 | 2 +- src/linux/doc/man/ja/jstatd.1 | 6 +- src/linux/doc/man/ja/jvisualvm.1 | 4 +- src/linux/doc/man/ja/keytool.1 | 14 +- src/linux/doc/man/ja/native2ascii.1 | 4 +- src/linux/doc/man/ja/orbd.1 | 16 +- src/linux/doc/man/ja/pack200.1 | 6 +- src/linux/doc/man/ja/policytool.1 | 12 +- src/linux/doc/man/ja/rmic.1 | 6 +- src/linux/doc/man/ja/rmid.1 | 8 +- src/linux/doc/man/ja/rmiregistry.1 | 6 +- src/linux/doc/man/ja/schemagen.1 | 4 +- src/linux/doc/man/ja/serialver.1 | 4 +- src/linux/doc/man/ja/servertool.1 | 2 +- src/linux/doc/man/ja/tnameserv.1 | 8 +- src/linux/doc/man/ja/unpack200.1 | 6 +- src/linux/doc/man/ja/wsgen.1 | 2 +- src/linux/doc/man/ja/wsimport.1 | 2 +- src/linux/doc/man/ja/xjc.1 | 4 +- src/linux/doc/man/jcmd.1 | 16 +- src/macosx/classes/sun/lwawt/macosx/CDropTargetContextPeer.java | 9 + src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java | 97 +- src/share/bin/java.c | 8 +- src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java | 2 +- src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java | 2 +- src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java | 5 +- src/share/classes/com/sun/java/util/jar/pack/Attribute.java | 14 +- src/share/classes/com/sun/java/util/jar/pack/BandStructure.java | 6 +- src/share/classes/com/sun/java/util/jar/pack/ClassReader.java | 12 +- src/share/classes/com/sun/java/util/jar/pack/ClassWriter.java | 8 +- src/share/classes/com/sun/java/util/jar/pack/Code.java | 4 +- src/share/classes/com/sun/java/util/jar/pack/Coding.java | 7 +- src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java | 34 +- src/share/classes/com/sun/java/util/jar/pack/Constants.java | 12 +- src/share/classes/com/sun/java/util/jar/pack/Fixups.java | 41 +- src/share/classes/com/sun/java/util/jar/pack/Instruction.java | 4 +- src/share/classes/com/sun/java/util/jar/pack/NativeUnpack.java | 2 +- src/share/classes/com/sun/java/util/jar/pack/Package.java | 58 +- src/share/classes/com/sun/java/util/jar/pack/PackageReader.java | 29 +- src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java | 38 +- src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java | 11 +- src/share/classes/com/sun/java/util/jar/pack/PropMap.java | 61 +- src/share/classes/com/sun/java/util/jar/pack/TLGlobals.java | 4 +- src/share/classes/com/sun/java/util/jar/pack/UnpackerImpl.java | 3 +- src/share/classes/com/sun/java/util/jar/pack/Utils.java | 4 +- src/share/classes/com/sun/jmx/remote/security/MBeanServerFileAccessController.java | 2 + src/share/classes/com/sun/jndi/dns/DnsContextFactory.java | 2 +- src/share/classes/com/sun/script/javascript/RhinoScriptEngine.java | 6 +- src/share/classes/com/sun/script/javascript/RhinoScriptEngineFactory.java | 8 +- src/share/classes/com/sun/script/javascript/RhinoTopLevel.java | 3 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_de.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_es.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_fr.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_it.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ja.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ko.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_pt_BR.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_sv.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_CN.properties | 4 +- src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_TW.properties | 4 +- src/share/classes/java/awt/color/ICC_Profile.java | 4 +- src/share/classes/java/io/FileInputStream.java | 68 +- src/share/classes/java/io/FileOutputStream.java | 70 +- src/share/classes/java/io/InputStream.java | 2 +- src/share/classes/java/io/RandomAccessFile.java | 35 +- src/share/classes/java/net/SocksSocketImpl.java | 4 +- src/share/classes/java/security/Policy.java | 1 - src/share/classes/java/util/Hashtable.java | 4 +- src/share/classes/javax/crypto/Cipher.java | 172 +- src/share/classes/javax/crypto/JarVerifier.java | 157 - src/share/classes/javax/crypto/JceSecurity.java | 251 +- src/share/classes/javax/crypto/JceSecurityManager.java | 252 - src/share/classes/javax/swing/JComponent.java | 13 +- src/share/classes/javax/swing/JDialog.java | 3 +- src/share/classes/javax/swing/JEditorPane.java | 11 +- src/share/classes/javax/swing/JFrame.java | 10 +- src/share/classes/javax/swing/JInternalFrame.java | 6 +- src/share/classes/javax/swing/JPopupMenu.java | 10 +- src/share/classes/javax/swing/MenuSelectionManager.java | 5 +- src/share/classes/javax/swing/PopupFactory.java | 14 +- src/share/classes/javax/swing/SwingUtilities.java | 6 +- src/share/classes/javax/swing/SwingWorker.java | 2 +- src/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java | 6 +- src/share/classes/javax/swing/plaf/basic/BasicListUI.java | 5 +- src/share/classes/javax/swing/plaf/basic/BasicPopupMenuUI.java | 16 +- src/share/classes/javax/swing/plaf/basic/BasicTableUI.java | 10 +- src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java | 3 +- src/share/classes/javax/swing/plaf/synth/ImagePainter.java | 5 +- src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java | 3 +- src/share/classes/javax/swing/text/JTextComponent.java | 6 +- src/share/classes/org/jcp/xml/dsig/internal/dom/DOMHMACSignatureMethod.java | 2 - src/share/classes/sun/applet/AppletPanel.java | 10 +- src/share/classes/sun/applet/AppletViewerPanel.java | 18 +- src/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java | 2 +- src/share/classes/sun/awt/image/JPEGImageDecoder.java | 2 +- src/share/classes/sun/java2d/cmm/lcms/LCMS.java | 2 +- src/share/classes/sun/launcher/resources/launcher_de.properties | 4 +- src/share/classes/sun/launcher/resources/launcher_it.properties | 4 +- src/share/classes/sun/launcher/resources/launcher_ko.properties | 4 +- src/share/classes/sun/launcher/resources/launcher_pt_BR.properties | 4 +- src/share/classes/sun/misc/SharedSecrets.java | 7 +- src/share/classes/sun/misc/Version.java.template | 58 +- src/share/classes/sun/rmi/registry/RegistryImpl.java | 14 + src/share/classes/sun/rmi/server/LoaderHandler.java | 2 +- src/share/classes/sun/rmi/server/UnicastServerRef.java | 2 +- src/share/classes/sun/security/pkcs11/P11Digest.java | 185 +- src/share/classes/sun/security/pkcs11/wrapper/PKCS11.java | 377 +- src/share/classes/sun/security/provider/certpath/OCSP.java | 18 +- src/share/classes/sun/security/ssl/SSLEngineImpl.java | 11 + src/share/classes/sun/security/util/ObjectIdentifier.java | 2 +- src/share/classes/sun/swing/DefaultLookup.java | 3 +- src/share/classes/sun/swing/SwingUtilities2.java | 17 +- src/share/classes/sun/tools/jar/Main.java | 2 +- src/share/classes/sun/tools/jar/resources/jar_ja.properties | 2 +- src/share/classes/sun/tools/jconsole/resources/messages_ja.properties | 46 +- src/share/classes/sun/tools/jconsole/resources/messages_zh_CN.properties | 46 +- src/share/classes/sun/tools/native2ascii/Main.java | 9 +- src/share/classes/sun/util/calendar/ZoneInfoFile.java | 41 +- src/share/demo/jvmti/gctest/sample.makefile.txt | 6 +- src/share/demo/jvmti/heapTracker/sample.makefile.txt | 19 +- src/share/demo/jvmti/heapViewer/sample.makefile.txt | 5 +- src/share/demo/jvmti/hprof/sample.makefile.txt | 6 +- src/share/demo/jvmti/minst/sample.makefile.txt | 19 +- src/share/demo/jvmti/mtrace/sample.makefile.txt | 20 +- src/share/demo/jvmti/versionCheck/sample.makefile.txt | 6 +- src/share/demo/jvmti/waiters/sample.makefile.txt | 8 +- src/share/lib/security/java.security | 14 +- src/share/lib/security/sunpkcs11-solaris.cfg | 14 +- src/share/native/com/sun/java/util/jar/pack/defines.h | 14 +- src/share/native/com/sun/java/util/jar/pack/unpack.cpp | 1 - src/share/native/com/sun/media/sound/SoundDefs.h | 8 + src/share/native/java/util/zip/Adler32.c | 2 +- src/share/native/java/util/zip/CRC32.c | 2 +- src/share/native/java/util/zip/Deflater.c | 48 +- src/share/native/java/util/zip/Inflater.c | 8 +- src/share/native/java/util/zip/zip_util.c | 2 +- src/share/native/sun/awt/image/awt_ImageRep.c | 2 +- src/share/native/sun/awt/image/jpeg/README | 385 -- src/share/native/sun/awt/image/jpeg/imageioJPEG.c | 2 +- src/share/native/sun/awt/image/jpeg/jcapimin.c | 284 - src/share/native/sun/awt/image/jpeg/jcapistd.c | 165 - src/share/native/sun/awt/image/jpeg/jccoefct.c | 453 -- src/share/native/sun/awt/image/jpeg/jccolor.c | 462 -- src/share/native/sun/awt/image/jpeg/jcdctmgr.c | 391 -- src/share/native/sun/awt/image/jpeg/jchuff.c | 913 ----- src/share/native/sun/awt/image/jpeg/jchuff.h | 51 - src/share/native/sun/awt/image/jpeg/jcinit.c | 76 - src/share/native/sun/awt/image/jpeg/jcmainct.c | 297 - src/share/native/sun/awt/image/jpeg/jcmarker.c | 682 --- src/share/native/sun/awt/image/jpeg/jcmaster.c | 594 --- src/share/native/sun/awt/image/jpeg/jcomapi.c | 110 - src/share/native/sun/awt/image/jpeg/jconfig.h | 43 - src/share/native/sun/awt/image/jpeg/jcparam.c | 614 --- src/share/native/sun/awt/image/jpeg/jcphuff.c | 837 ---- src/share/native/sun/awt/image/jpeg/jcprepct.c | 358 -- src/share/native/sun/awt/image/jpeg/jcsample.c | 523 --- src/share/native/sun/awt/image/jpeg/jctrans.c | 392 -- src/share/native/sun/awt/image/jpeg/jdapimin.c | 399 -- src/share/native/sun/awt/image/jpeg/jdapistd.c | 279 - src/share/native/sun/awt/image/jpeg/jdcoefct.c | 740 ---- src/share/native/sun/awt/image/jpeg/jdcolor.c | 398 -- src/share/native/sun/awt/image/jpeg/jdct.h | 180 - src/share/native/sun/awt/image/jpeg/jddctmgr.c | 273 - src/share/native/sun/awt/image/jpeg/jdhuff.c | 655 --- src/share/native/sun/awt/image/jpeg/jdhuff.h | 205 - src/share/native/sun/awt/image/jpeg/jdinput.c | 385 -- src/share/native/sun/awt/image/jpeg/jdmainct.c | 516 -- src/share/native/sun/awt/image/jpeg/jdmarker.c | 1384 -------- src/share/native/sun/awt/image/jpeg/jdmaster.c | 561 --- src/share/native/sun/awt/image/jpeg/jdmerge.c | 404 -- src/share/native/sun/awt/image/jpeg/jdphuff.c | 672 --- src/share/native/sun/awt/image/jpeg/jdpostct.c | 294 - src/share/native/sun/awt/image/jpeg/jdsample.c | 482 -- src/share/native/sun/awt/image/jpeg/jdtrans.c | 147 - src/share/native/sun/awt/image/jpeg/jerror.c | 272 - src/share/native/sun/awt/image/jpeg/jerror.h | 295 - src/share/native/sun/awt/image/jpeg/jfdctflt.c | 172 - src/share/native/sun/awt/image/jpeg/jfdctfst.c | 228 - src/share/native/sun/awt/image/jpeg/jfdctint.c | 287 - src/share/native/sun/awt/image/jpeg/jidctflt.c | 246 - src/share/native/sun/awt/image/jpeg/jidctfst.c | 372 -- src/share/native/sun/awt/image/jpeg/jidctint.c | 393 -- src/share/native/sun/awt/image/jpeg/jidctred.c | 402 -- src/share/native/sun/awt/image/jpeg/jinclude.h | 95 - src/share/native/sun/awt/image/jpeg/jmemmgr.c | 1124 ------ src/share/native/sun/awt/image/jpeg/jmemnobs.c | 113 - src/share/native/sun/awt/image/jpeg/jmemsys.h | 202 - src/share/native/sun/awt/image/jpeg/jmorecfg.h | 378 -- src/share/native/sun/awt/image/jpeg/jpeg-6b/README | 385 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jcapimin.c | 284 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jcapistd.c | 165 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jccoefct.c | 453 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jccolor.c | 462 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jcdctmgr.c | 391 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jchuff.c | 913 +++++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jchuff.h | 51 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jcinit.c | 76 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jcmainct.c | 297 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jcmarker.c | 682 +++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jcmaster.c | 594 +++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jcomapi.c | 110 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jconfig.h | 43 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jcparam.c | 614 +++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jcphuff.c | 837 ++++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jcprepct.c | 358 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jcsample.c | 523 +++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jctrans.c | 392 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdapimin.c | 399 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdapistd.c | 279 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jdcoefct.c | 740 ++++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdcolor.c | 398 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdct.h | 180 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jddctmgr.c | 273 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jdhuff.c | 655 +++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdhuff.h | 205 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jdinput.c | 385 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdmainct.c | 516 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdmarker.c | 1384 ++++++++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdmaster.c | 561 +++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdmerge.c | 404 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdphuff.c | 672 +++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdpostct.c | 294 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jdsample.c | 482 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jdtrans.c | 147 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jerror.c | 272 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jerror.h | 295 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jfdctflt.c | 172 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jfdctfst.c | 228 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jfdctint.c | 287 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jidctflt.c | 246 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jidctfst.c | 372 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jidctint.c | 393 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jidctred.c | 402 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jinclude.h | 95 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jmemmgr.c | 1124 ++++++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jmemnobs.c | 113 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jmemsys.h | 202 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jmorecfg.h | 378 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jpegint.h | 396 ++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jpeglib.h | 1100 ++++++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jquant1.c | 860 ++++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jquant2.c | 1314 +++++++ src/share/native/sun/awt/image/jpeg/jpeg-6b/jutils.c | 183 + src/share/native/sun/awt/image/jpeg/jpeg-6b/jversion.h | 18 + src/share/native/sun/awt/image/jpeg/jpegdecoder.c | 2 +- src/share/native/sun/awt/image/jpeg/jpegint.h | 396 -- src/share/native/sun/awt/image/jpeg/jpeglib.h | 1100 ------ src/share/native/sun/awt/image/jpeg/jquant1.c | 860 ---- src/share/native/sun/awt/image/jpeg/jquant2.c | 1314 ------- src/share/native/sun/awt/image/jpeg/jutils.c | 183 - src/share/native/sun/awt/image/jpeg/jversion.h | 18 - src/share/native/sun/awt/splashscreen/splashscreen_gif.c | 2 +- src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c | 7 +- src/share/native/sun/awt/splashscreen/splashscreen_png.c | 2 +- src/share/native/sun/java2d/loops/TransformHelper.c | 11 +- src/share/native/sun/security/pkcs11/wrapper/pkcs11wrapper.h | 6 +- src/solaris/classes/java/io/FileDescriptor.java | 80 +- src/solaris/classes/sun/awt/X11/XWM.java | 10 +- src/solaris/classes/sun/awt/X11/XWindowPeer.java | 2 + src/solaris/doc/sun/man/man1/ja/appletviewer.1 | 4 +- src/solaris/doc/sun/man/man1/ja/apt.1 | 4 +- src/solaris/doc/sun/man/man1/ja/extcheck.1 | 2 +- src/solaris/doc/sun/man/man1/ja/idlj.1 | 10 +- src/solaris/doc/sun/man/man1/ja/jar.1 | 22 +- src/solaris/doc/sun/man/man1/ja/jarsigner.1 | 12 +- src/solaris/doc/sun/man/man1/ja/java.1 | 82 +- src/solaris/doc/sun/man/man1/ja/javac.1 | 6 +- src/solaris/doc/sun/man/man1/ja/javadoc.1 | 120 +- src/solaris/doc/sun/man/man1/ja/javah.1 | 2 +- src/solaris/doc/sun/man/man1/ja/javap.1 | 4 +- src/solaris/doc/sun/man/man1/ja/javaws.1 | 6 +- src/solaris/doc/sun/man/man1/ja/jcmd.1 | 18 +- src/solaris/doc/sun/man/man1/ja/jconsole.1 | 14 +- src/solaris/doc/sun/man/man1/ja/jdb.1 | 10 +- src/solaris/doc/sun/man/man1/ja/jhat.1 | 14 +- src/solaris/doc/sun/man/man1/ja/jinfo.1 | 2 +- src/solaris/doc/sun/man/man1/ja/jmap.1 | 2 +- src/solaris/doc/sun/man/man1/ja/jps.1 | 2 +- src/solaris/doc/sun/man/man1/ja/jrunscript.1 | 6 +- src/solaris/doc/sun/man/man1/ja/jsadebugd.1 | 6 +- src/solaris/doc/sun/man/man1/ja/jstack.1 | 4 +- src/solaris/doc/sun/man/man1/ja/jstat.1 | 2 +- src/solaris/doc/sun/man/man1/ja/jstatd.1 | 6 +- src/solaris/doc/sun/man/man1/ja/jvisualvm.1 | 4 +- src/solaris/doc/sun/man/man1/ja/keytool.1 | 14 +- src/solaris/doc/sun/man/man1/ja/native2ascii.1 | 4 +- src/solaris/doc/sun/man/man1/ja/orbd.1 | 16 +- src/solaris/doc/sun/man/man1/ja/pack200.1 | 6 +- src/solaris/doc/sun/man/man1/ja/policytool.1 | 12 +- src/solaris/doc/sun/man/man1/ja/rmic.1 | 6 +- src/solaris/doc/sun/man/man1/ja/rmid.1 | 8 +- src/solaris/doc/sun/man/man1/ja/rmiregistry.1 | 6 +- src/solaris/doc/sun/man/man1/ja/schemagen.1 | 4 +- src/solaris/doc/sun/man/man1/ja/serialver.1 | 4 +- src/solaris/doc/sun/man/man1/ja/servertool.1 | 2 +- src/solaris/doc/sun/man/man1/ja/tnameserv.1 | 8 +- src/solaris/doc/sun/man/man1/ja/unpack200.1 | 6 +- src/solaris/doc/sun/man/man1/ja/wsgen.1 | 2 +- src/solaris/doc/sun/man/man1/ja/wsimport.1 | 2 +- src/solaris/doc/sun/man/man1/ja/xjc.1 | 4 +- src/solaris/doc/sun/man/man1/jcmd.1 | 16 +- src/solaris/native/common/deps/cups_fp.c | 104 + src/solaris/native/common/deps/cups_fp.h | 61 + src/solaris/native/common/deps/fontconfig2/fontconfig/fontconfig.h | 302 + src/solaris/native/common/deps/fontconfig2/fontconfig_fp.c | 188 + src/solaris/native/common/deps/fontconfig2/fontconfig_fp.h | 164 + src/solaris/native/common/deps/gconf2/gconf/gconf-client.h | 42 + src/solaris/native/common/deps/gconf2/gconf_fp.c | 74 + src/solaris/native/common/deps/gconf2/gconf_fp.h | 48 + src/solaris/native/common/deps/glib2/gio/gio_typedefs.h | 67 + src/solaris/native/common/deps/glib2/gio_fp.c | 109 + src/solaris/native/common/deps/glib2/gio_fp.h | 63 + src/solaris/native/common/deps/gtk2/gtk/gtk.h | 567 +++ src/solaris/native/common/deps/gtk2/gtk_fp.c | 398 ++ src/solaris/native/common/deps/gtk2/gtk_fp.h | 469 ++ src/solaris/native/common/deps/syscalls_fp.c | 138 + src/solaris/native/common/deps/syscalls_fp.h | 124 + src/solaris/native/java/lang/java_props_md.c | 7 +- src/solaris/native/sun/awt/CUPSfuncs.c | 137 +- src/solaris/native/sun/awt/awt_GraphicsEnv.c | 2 +- src/solaris/native/sun/awt/awt_UNIXToolkit.c | 20 +- src/solaris/native/sun/awt/fontconfig.h | 941 ----- src/solaris/native/sun/awt/fontpath.c | 404 +- src/solaris/native/sun/awt/gtk2_interface.c | 979 +---- src/solaris/native/sun/awt/gtk2_interface.h | 577 +--- src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c | 68 +- src/solaris/native/sun/awt/swing_GTKEngine.c | 76 +- src/solaris/native/sun/awt/swing_GTKStyle.c | 20 +- src/solaris/native/sun/net/spi/DefaultProxySelector.c | 465 +- src/solaris/native/sun/nio/ch/EPollArrayWrapper.c | 62 +- src/solaris/native/sun/nio/fs/GnomeFileTypeDetector.c | 94 +- src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c | 50 +- src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c | 111 +- src/solaris/native/sun/xawt/awt_Desktop.c | 103 +- src/windows/classes/java/io/FileDescriptor.java | 81 +- test/TEST.ROOT | 6 + test/com/oracle/security/ucrypto/TestAES.java | 118 +- test/com/oracle/security/ucrypto/TestDigest.java | 24 +- test/com/oracle/security/ucrypto/TestRSA.java | 276 +- test/com/oracle/security/ucrypto/UcryptoTest.java | 28 +- test/com/sun/crypto/provider/Cipher/UTIL/TestUtil.java | 13 +- test/java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java | 9 + test/java/awt/Frame/HideMaximized/HideMaximized.java | 70 + test/java/io/FileDescriptor/FileChannelFDTest.java | 92 + test/java/io/FileDescriptor/Sharing.java | 408 -- test/java/net/URL/TestHttps.java | 34 + test/java/nio/MappedByteBuffer/Basic.java | 91 +- test/java/nio/channels/SocketChannel/LocalAddress.java | 2 +- test/java/nio/channels/TestUtil.java | 6 +- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/linux-i586/libLauncher.so | Bin test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-i586/libLauncher.so | Bin test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so | Bin test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparcv9/libLauncher.so | Bin test/java/rmi/activation/rmidViaInheritedChannel/InheritedChannelNotServerSocket.java | 9 +- test/java/rmi/activation/rmidViaInheritedChannel/RmidViaInheritedChannel.java | 9 +- test/java/util/Locale/data/deflocale.sol10 | 1725 ---------- test/sun/management/jmxremote/bootstrap/linux-i586/launcher | Bin test/sun/management/jmxremote/bootstrap/solaris-i586/launcher | Bin test/sun/management/jmxremote/bootstrap/solaris-sparc/launcher | Bin test/sun/management/windows/revokeall.exe | Bin test/sun/net/InetAddress/nameservice/dns/cname.sh | 2 +- test/sun/net/www/protocol/file/DirPermissionDenied.sh | 1 + test/sun/security/pkcs11/MessageDigest/TestCloning.java | 141 + test/sun/security/ssl/com/sun/net/ssl/internal/ssl/GenSSLConfigs/main.java | 2 +- test/sun/tools/native2ascii/NativeErrors.java | 4 +- test/tools/pack200/MemoryAllocatorTest.java | 369 ++ 465 files changed, 31570 insertions(+), 32748 deletions(-) diffs (truncated from 76515 to 500 lines): diff -r 4a6917092af8 -r e6f38fd66cb3 .hgtags --- a/.hgtags Thu Jul 05 23:02:07 2012 -0700 +++ b/.hgtags Mon Jul 23 12:29:12 2012 +0100 @@ -50,6 +50,7 @@ f708138c9aca4b389872838fe6773872fce3609e jdk7-b73 eacb36e30327e7ae33baa068e82ddccbd91eaae2 jdk7-b74 8885b22565077236a927e824ef450742e434a230 jdk7-b75 +fb2ee5e96b171ae9db67274d87ffaba941e8bfa6 icedtea7-1.12 8fb602395be0f7d5af4e7e93b7df2d960faf9d17 jdk7-b76 e6a5d095c356a547cf5b3c8885885aca5e91e09b jdk7-b77 1143e498f813b8223b5e3a696d79da7ff7c25354 jdk7-b78 @@ -63,6 +64,7 @@ eae6e9ab26064d9ba0e7665dd646a1fd2506fcc1 jdk7-b86 2cafbbe9825e911a6ca6c17d9a18eb1f0bf0873c jdk7-b87 b3c69282f6d3c90ec21056cd1ab70dc0c895b069 jdk7-b88 +2017795af50aebc00f500e58f708980b49bc7cd1 icedtea7-1.13 4a6abb7e224cc8d9a583c23c5782e4668739a119 jdk7-b89 7f90d0b9dbb7ab4c60d0b0233e4e77fb4fac597c jdk7-b90 08a31cab971fcad4695e913d0f3be7bde3a90747 jdk7-b91 @@ -111,6 +113,7 @@ 554adcfb615e63e62af530b1c10fcf7813a75b26 jdk7-b134 d8ced728159fbb2caa8b6adb477fd8efdbbdf179 jdk7-b135 aa13e7702cd9d8aca9aa38f1227f966990866944 jdk7-b136 +1571aa7abe47a54510c62a5b59a8c343cdaf67cb icedtea-1.14 29296ea6529a418037ccce95903249665ef31c11 jdk7-b137 60d3d55dcc9c31a30ced9caa6ef5c0dcd7db031d jdk7-b138 d80954a89b49fda47c0c5cace65a17f5a758b8bd jdk7-b139 @@ -123,6 +126,7 @@ 539e576793a8e64aaf160e0d6ab0b9723cd0bef0 jdk7-b146 69e973991866c948cf1808b06884ef2d28b64fcb jdk7u1-b01 f097ca2434b1412b12ab4a5c2397ce271bf681e7 jdk7-b147 +7ec1845521edfb1843cad3868217983727ece53d icedtea-2.0-branchpoint 2baf612764d215e6f3a5b48533f74c6924ac98d7 jdk7u1-b02 a4781b6d9cfb6901452579adee17c9a17c1b584c jdk7u1-b03 b223ed9a5fdf8ce3af42adfa8815975811d70eae jdk7u1-b04 @@ -141,6 +145,7 @@ 79c8c4608f60e1f981b17ba4077dfcaa2ed67be4 jdk7u2-b12 fb2980d7c9439e3d62ab12f40506a2a2db2df0f4 jdk7u2-b13 24e42f1f9029f9f5a9b1481d523facaf09452e5b jdk7u2-b21 +a75913596199fbb8583f9d74021f54dc76f87b14 icedtea-2.1-branchpoint e3790f3ce50aa4e2a1b03089ac0bcd48f9d1d2c2 jdk7u3-b02 7e8351342f0b22b694bd3c2db979643529f32e71 jdk7u3-b03 fc6b7b6ac837c9e867b073e13fc14e643f771028 jdk7u3-b04 @@ -157,6 +162,7 @@ 6485e842d7f736b6ca3d7e4a7cdc5de6bbdd870c jdk7u4-b10 d568e85567ccfdd75f3f0c42aa0d75c440422827 jdk7u4-b11 16781e84dcdb5f82c287a3b5387dde9f8aaf74e0 jdk7u4-b12 +907555f6191a0cd84886b07c4c40bc6ce498b8b1 icedtea-2.2-branchpoint c929e96aa059c8b79ab94d5b0b1a242ca53a5b32 jdk7u4-b13 09f612bac047b132bb9bf7d4aa8afe6ea4d5b938 jdk7u4-b14 9e15d1f3fa4b35b8c950323c76b9ed094d434b97 jdk7u5-b01 @@ -191,3 +197,7 @@ e50c9a5f001c61f49e7e71b25b97ed4095d3557b jdk7u6-b15 966e21feb7f088e318a35b069c1a61ff6363e554 jdk7u6-b16 aa0ad405f70bc7a7af95fef109f114ceecf31232 jdk7u6-b17 +8ff5fca08814f1f0eeda40aaec6f2936076b7444 icedtea-2.3-branchpoint +4a6917092af80481c1fa5b9ec8ccae75411bb72c jdk7u6-b18 +a263f787ced5bc7c14078ae552c82de6bd011611 jdk7u6-b19 +09145b546a2b6ae1f44d5c8a7d2a37d48e4b39e2 jdk7u6-b20 diff -r 4a6917092af8 -r e6f38fd66cb3 make/com/sun/java/pack/Makefile --- a/make/com/sun/java/pack/Makefile Thu Jul 05 23:02:07 2012 -0700 +++ b/make/com/sun/java/pack/Makefile Mon Jul 23 12:29:12 2012 +0100 @@ -32,6 +32,7 @@ LIBRARY = unpack PRODUCT = sun PGRM = unpack200 +JAVAC_MAX_WARNINGS=true include $(BUILDDIR)/common/Defs.gmk CPLUSPLUSLIBRARY=true @@ -57,7 +58,6 @@ vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR) ifeq ($(STANDALONE),true) - ifneq ($(SYSTEM_ZLIB),true) ZIPOBJDIR = $(OUTPUTDIR)/tmp/sun/java.util.zip/zip/$(OBJDIRNAME) ZIPOBJS = $(ZIPOBJDIR)/zcrc32.$(OBJECT_SUFFIX) \ @@ -71,13 +71,14 @@ $(ZIPOBJDIR)/inftrees.$(OBJECT_SUFFIX) \ $(ZIPOBJDIR)/inffast.$(OBJECT_SUFFIX) - ZINCLUDE=-I$(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION) - OTHER_CXXFLAGS += $(ZINCLUDE) - LDDFLAGS += $(ZIPOBJS) - else - LDDFLAGS += -lz - OTHER_CXXFLAGS += -DSYSTEM_ZLIB - endif + ifdef USE_SYSTEM_ZLIB + OTHER_CXXFLAGS += $(ZLIB_CFLAGS) -DUSE_SYSTEM_ZLIB=1 + OTHER_LDLIBS += $(ZLIB_LIBS) + else + ZINCLUDE=-I$(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION) + OTHER_CXXFLAGS += $(ZINCLUDE) + LDDFLAGS += $(ZIPOBJS) + endif else OTHER_CXXFLAGS += -DNO_ZLIB -DUNPACK_JNI OTHER_LDLIBS += $(JVMLIB) @@ -99,8 +100,7 @@ RES = $(OBJDIR)/$(PGRM).res else LDOUTPUT = -o #Have a space - LDDFLAGS += -lc - OTHER_LDLIBS += $(LIBCXX) + OTHER_LDLIBS += -lc $(LIBCXX) # setup the list of libraries to link in... ifeq ($(PLATFORM), linux) ifeq ("$(CC_VER_MAJOR)", "3") @@ -157,7 +157,7 @@ $(prep-target) $(RM) $(TEMPDIR)/mapfile-vers $(CP) mapfile-vers-unpack200 $(TEMPDIR)/mapfile-vers - $(LINKER) $(LDDFLAGS) $(UNPACK_EXE_FILES_o) $(RES) $(LIBCXX) $(LDOUTPUT)$(TEMPDIR)/unpack200$(EXE_SUFFIX) + $(LINKER) $(LDDFLAGS) $(UNPACK_EXE_FILES_o) $(RES) $(OTHER_LDLIBS) $(LDOUTPUT)$(TEMPDIR)/unpack200$(EXE_SUFFIX) ifdef MT $(MT) /manifest $(OBJDIR)/unpack200$(EXE_SUFFIX).manifest /outputresource:$(TEMPDIR)/unpack200$(EXE_SUFFIX);#1 endif diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/Defs-linux.gmk --- a/make/common/Defs-linux.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/Defs-linux.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -191,15 +191,26 @@ # We need this frame pointer to make it easy to walk the stacks. # This should be the default on X86, but ia64 and amd64 may not have this # as the default. +CFLAGS_REQUIRED_alpha += -mieee -D_LITTLE_ENDIAN CFLAGS_REQUIRED_amd64 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN +CFLAGS_REQUIRED_arm += -D_LITTLE_ENDIAN +CFLAGS_REQUIRED_hppa += CFLAGS_REQUIRED_i586 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN CFLAGS_REQUIRED_ia64 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN +CFLAGS_REQUIRED_m68k += +CFLAGS_REQUIRED_mips += +CFLAGS_REQUIRED_mipsel += -D_LITTLE_ENDIAN +CFLAGS_REQUIRED_ppc += -m32 +CFLAGS_REQUIRED_ppc64 += -m64 +CFLAGS_REQUIRED_s390 += +CFLAGS_REQUIRED_s390x += -m64 CFLAGS_REQUIRED_sparcv9 += -m64 -mcpu=v9 LDFLAGS_COMMON_sparcv9 += -m64 -mcpu=v9 CFLAGS_REQUIRED_sparc += -m32 -mcpu=v9 LDFLAGS_COMMON_sparc += -m32 -mcpu=v9 CFLAGS_REQUIRED_arm += -fsigned-char -D_LITTLE_ENDIAN CFLAGS_REQUIRED_ppc += -fsigned-char -D_BIG_ENDIAN +CFLAGS_REQUIRED_sh += -mieee ifeq ($(ZERO_BUILD), true) CFLAGS_REQUIRED = $(ZERO_ARCHFLAG) ifeq ($(ZERO_ENDIANNESS), little) @@ -289,11 +300,15 @@ CPP_ARCH_FLAGS = -DARCH='"$(ARCH)"' -# Alpha arch does not like "alpha" defined (potential general arch cleanup issue here) -ifneq ($(ARCH),alpha) +# Alpha and sh archs do not like "alpha" or "sh" defined (potential general arch cleanup issue here) +ifeq ($(ARCH),alpha) + CPP_ARCH_FLAGS += -D_$(ARCH)_ +else +ifeq ($(ARCH),sh) + CPP_ARCH_FLAGS += -D_$(ARCH)_ +else CPP_ARCH_FLAGS += -D$(ARCH) -else - CPP_ARCH_FLAGS += -D_$(ARCH)_ +endif endif CPPFLAGS_COMMON = $(CPP_ARCH_FLAGS) -DLINUX $(VERSION_DEFINES) \ diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/Program.gmk --- a/make/common/Program.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/Program.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -62,12 +62,14 @@ program: $(ACTUAL_PROGRAM) # Work-around for missing processor specific mapfiles +ifneq (,$(filter $(ARCH), amd64 i586 sparc sparcv9)) ifndef CROSS_COMPILE_ARCH # reuse the mapfiles in the launcher's directory, the same should # be applicable to the tool launchers as well. FILES_m = $(BUILDDIR)/java/main/java/mapfile-$(ARCH) include $(BUILDDIR)/common/Mapfile-vers.gmk endif +endif include $(JDK_TOPDIR)/make/common/Rules.gmk @@ -108,6 +110,9 @@ endif # ARCH_DATA_MODEL endif # PLATFORM SOLARIS ifeq ($(PLATFORM), linux) + ifdef USE_SYSTEM_ZLIB + OTHER_LDLIBS += $(ZLIB_LIBS) + endif LDFLAGS += $(LDFLAG_Z_ORIGIN) LDFLAGS += -Wl,--allow-shlib-undefined LDFLAGS += -Wl,-rpath -Wl,\$$ORIGIN/../lib/$(LIBARCH)/jli @@ -358,13 +363,16 @@ endif OTHER_INCLUDES += -I$(LAUNCHER_SHARE_SRC)/bin -I$(LAUNCHER_PLATFORM_SRC)/bin + ifeq ($(PLATFORM), macosx) OTHER_INCLUDES += -I$(LAUNCHER_SOLARIS_PLATFORM_SRC)/bin ifneq ($(SYSTEM_ZLIB), true) OTHER_INCLUDES += -I$(SHARE_SRC)/native/java/util/zip/zlib-1.1.3 endif # SYSTEM_ZLIB else # PLATFORM !MACOSX - OTHER_INCLUDES += -I$(SHARE_SRC)/native/java/util/zip/zlib-1.1.3 + ifndef USE_SYSTEM_ZLIB + OTHER_INCLUDES += -I$(SHARE_SRC)/native/java/util/zip/zlib-1.1.3 + endif endif OTHER_CPPFLAGS += -DPROGNAME='"$(PROGRAM)"' diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/Release.gmk --- a/make/common/Release.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/Release.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -1074,13 +1074,9 @@ for d in $(SOURCE_DIRS); do \ $(RM) $(ABS_TEMPDIR)/src-files.list; \ ($(CD) $$d && \ - for sd in $(SOURCES) ; do \ - if [ -d $$sd ] ; then \ - $(FIND) $$sd $(SOURCE_FILES_filter) \ - -name '*.java' -print \ - >> $(ABS_TEMPDIR)/src-files.list ; \ - fi; \ - done ; \ + $(FIND) . $(SOURCE_FILES_filter) \ + -name '*.java' -print \ + >> $(ABS_TEMPDIR)/src-files.list ; \ ) ; \ if [ -f $(ABS_TEMPDIR)/src-files.list ] ; then \ ($(CD) $$d && $(TAR) cf - -T $(ABS_TEMPDIR)/src-files.list ) \ @@ -1091,13 +1087,9 @@ for d in $(SOURCE_DIRS); do \ $(RM) $(ABS_TEMPDIR)/src-files.list; \ ($(CD) $$d && \ - for sd in $(SOURCES) ; do \ - if [ -d $$sd ] ; then \ - $(FIND) $$sd $(SOURCE_FILES_filter) \ - -name '*.java' -print \ - >> $(ABS_TEMPDIR)/src-files.list ; \ - fi; \ - done ; \ + $(FIND) . $(SOURCE_FILES_filter) \ + -name '*.java' -print \ + >> $(ABS_TEMPDIR)/src-files.list ; \ ) ; \ if [ -f $(ABS_TEMPDIR)/src-files.list ] ; then \ ($(CD) $$d && $(TAR) cf - `$(CAT) $(ABS_TEMPDIR)/src-files.list`) \ diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/shared/Compiler-gcc.gmk --- a/make/common/shared/Compiler-gcc.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/shared/Compiler-gcc.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -53,18 +53,84 @@ ifeq ($(PLATFORM), linux) + ifndef BUILD_GCC + BUILD_GCC=$(COMPILER_PATH)gcc + endif + + ifndef BUILD_CPP + BUILD_CPP=$(COMPILER_PATH)g++ + endif + # Settings specific to Linux - CC = $(COMPILER_PATH)gcc - CPP = $(COMPILER_PATH)gcc -E + CC = $(BUILD_GCC) + CPP = $(BUILD_GCC) -E # statically link libstdc++ before C++ ABI is stablized on Linux - STATIC_CXX = true + ifneq ($(STATIC_CXX),false) + STATIC_CXX = true + endif ifeq ($(STATIC_CXX),true) # g++ always dynamically links libstdc++, even we use "-Wl,-Bstatic -lstdc++" # We need to use gcc to statically link the C++ runtime. gcc and g++ use # the same subprocess to compile C++ files, so it is OK to build using gcc. - CXX = $(COMPILER_PATH)gcc + CXX = $(BUILD_GCC) else - CXX = $(COMPILER_PATH)g++ + CXX = $(BUILD_CPP) + endif + ifeq ($(ARCH), alpha) + # alpha + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifeq ($(ARCH), amd64) + # amd64 + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifeq ($(ARCH), arm) + # arm + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifeq ($(ARCH), i586) + # i586 + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.1* + REQUIRED_GCC_VER_INT = 3.2.1-7a + endif + ifeq ($(ARCH), ia64) + # ia64 + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 2.9[56789].* + endif + ifneq ("$(findstring m68k,$(ARCH))", "") + # m68k + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifneq ("$(findstring mips,$(ARCH))", "") + # mips + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifneq ("$(findstring parisc,$(ARCH))", "") + # mips + REQUIRED_CC_VER = 4.4 + REQUIRED_GCC_VER = 4.4.* + endif + ifneq ("$(findstring ppc,$(ARCH))", "") + # ppc or ppc64 + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifneq ("$(findstring s390,$(ARCH))", "") + # s390 or s390x + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifneq ("$(findstring sh,$(ARCH))", "") + # sh4*, sh3* + REQUIRED_CC_VER = 4.0 + REQUIRED_GCC_VER = 4.0.* endif # Option used to create a shared library SHARED_LIBRARY_FLAG = -shared diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/shared/Defs-java.gmk --- a/make/common/shared/Defs-java.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/shared/Defs-java.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -121,12 +121,17 @@ JAVACFLAGS += -g endif ifeq ($(JAVAC_MAX_WARNINGS), true) - JAVACFLAGS += -Xlint:all + JAVAC_LINT_OPTIONS += -Xlint:all endif ifeq ($(JAVAC_WARNINGS_FATAL), true) JAVACFLAGS += -Werror endif +# TODO: Workaround for CR 7063027. Remove -path eventually. +JAVAC_LINT_OPTIONS += -Xlint:-path + +JAVACFLAGS += $(JAVAC_LINT_OPTIONS) + # # Some licensees do not get the Security Source bundles. We will # fall back on the prebuilt jce.jar so that we can do a best @@ -216,9 +221,7 @@ # The javac options supplied to the boot javac is limited. This compiler # should only be used to build the 'make/tools' sources, which are not # class files that end up in the classes directory. -ifeq ($(JAVAC_MAX_WARNINGS), true) - BOOT_JAVACFLAGS += -Xlint:all -endif +BOOT_JAVACFLAGS += $(JAVAC_LINT_OPTIONS) ifeq ($(JAVAC_WARNINGS_FATAL), true) BOOT_JAVACFLAGS += -Werror endif @@ -230,9 +233,16 @@ BOOT_JAVACFLAGS += $(NO_PROPRIETARY_API_WARNINGS) +BOOT_LIB = $(BOOTDIR)/jre/lib/rt.jar +BOOT_JAVACFLAGS += -bootclasspath $(BOOT_LIB) + BOOT_JAVA_CMD = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS) BOOT_JAVAC_CMD = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS) -BOOT_JAR_CMD = $(BOOTDIR)/bin/jar +ifdef ALT_JAR_CMD + BOOT_JAR_CMD = $(ALT_JAR_CMD) +else + BOOT_JAR_CMD = $(BOOTDIR)/bin/jar +endif BOOT_JARSIGNER_CMD = $(BOOTDIR)/bin/jarsigner # Various tools we need to run (FIXUP: Are these the right ones?) diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/shared/Defs-versions.gmk --- a/make/common/shared/Defs-versions.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/shared/Defs-versions.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -208,7 +208,7 @@ # Generic REQUIRED_ANT_VER = 1.7.1 REQUIRED_BOOT_VER = 1.6 -REQUIRED_FREETYPE_VERSION = 2.3.0 +REQUIRED_FREETYPE_VERSION = 2.2.1 REQUIRED_MAKE_VER = 3.81 REQUIRED_UNZIP_VER = 5.12 REQUIRED_ZIP_VER = 2.2 diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/shared/Defs.gmk --- a/make/common/shared/Defs.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/shared/Defs.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -223,7 +223,7 @@ # Default names ifdef OPENJDK - LAUNCHER_NAME = openjdk + LAUNCHER_NAME = java PRODUCT_NAME = OpenJDK PRODUCT_SUFFIX = Runtime Environment JDK_RC_PLATFORM_NAME = Platform diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/shared/Platform.gmk --- a/make/common/shared/Platform.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/shared/Platform.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -160,6 +160,9 @@ else mach := $(shell uname -m) endif + ifneq (,$(wildcard /usr/bin/dpkg-architecture)) + mach := $(shell (dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null || echo $(mach)) | sed 's/powerpc$$/ppc/;s/hppa/parisc/') + endif archExpr = case "$(mach)" in \ i[3-9]86) \ echo i586 \ @@ -176,6 +179,9 @@ arm*) \ echo arm \ ;; \ + sh*) \ + echo sh \ + ;; \ *) \ echo $(mach) \ ;; \ @@ -205,6 +211,9 @@ ifeq ($(ARCH), ia64) ARCH_DATA_MODEL=64 endif + ifeq ($(ARCH), sh) + ARCH_DATA_MODEL=32 + endif endif endif diff -r 4a6917092af8 -r e6f38fd66cb3 make/common/shared/Sanity.gmk --- a/make/common/shared/Sanity.gmk Thu Jul 05 23:02:07 2012 -0700 +++ b/make/common/shared/Sanity.gmk Mon Jul 23 12:29:12 2012 +0100 @@ -95,6 +95,10 @@ echo "RedHat"; \ elif [ -f /etc/SuSE-release ] ; then \ echo "SuSE"; \ + elif [ -f /etc/gentoo-release ] ; then \ + echo "Gentoo"; \ + elif [ -f /etc/debian_version ] ; then \ + echo "Debian"; \ elif [ -f /etc/lsb-release ] ; then \ $(EGREP) DISTRIB_ID /etc/lsb-release | $(SED) -e 's at .*DISTRIB_ID=\(.*\)@\1@'; \ else \ @@ -103,6 +107,10 @@ OS_VARIANT_VERSION := $(shell \ if [ "$(OS_VARIANT_NAME)" = "Fedora" ] ; then \ $(CAT) /etc/fedora-release | $(HEAD) -1 | $(NAWK) '{ print $$3; }' ; \ + elif [ "$(OS_VARIANT_NAME)" = "Gentoo" ] ; then \ + $(CAT) /etc/gentoo-release | $(HEAD) -1 | $(NAWK) '{ print $$5; }' ; \ + elif [ "$(OS_VARIANT_NAME)" = "Debian" ] ; then \ + $(CAT) /etc/debian_version ; \ elif [ -f /etc/lsb-release ] ; then \ $(EGREP) DISTRIB_RELEASE /etc/lsb-release | $(SED) -e 's at .*DISTRIB_RELEASE=\(.*\)@\1@'; \ fi) diff -r 4a6917092af8 -r e6f38fd66cb3 make/docs/Makefile --- a/make/docs/Makefile Thu Jul 05 23:02:07 2012 -0700 +++ b/make/docs/Makefile Mon Jul 23 12:29:12 2012 +0100 @@ -69,11 +69,11 @@ # NOTE: javadoc will not complete without these larger settings. # WARNING: This could cause thrashing on low memory machines. ifeq ($(ARCH_DATA_MODEL),64) - MAX_VM_MEMORY = 1024 + MAX_VM_MEMORY = 1536 else ifeq ($(ARCH),universal) - MAX_VM_MEMORY = 1024 + MAX_VM_MEMORY = 1536 else - MAX_VM_MEMORY = 512 + MAX_VM_MEMORY = 768 endif # List of all possible directories for javadoc to look for sources diff -r 4a6917092af8 -r e6f38fd66cb3 make/java/jli/Makefile --- a/make/java/jli/Makefile Thu Jul 05 23:02:07 2012 -0700 +++ b/make/java/jli/Makefile Mon Jul 23 12:29:12 2012 +0100 @@ -44,7 +44,7 @@ From jvanek at redhat.com Mon Jul 23 06:53:56 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Mon, 23 Jul 2012 15:53:56 +0200 Subject: Icedtea-web splashscreen implementation In-Reply-To: <4F88AA80.3000404@redhat.com> References: <4F50BE87.5070508@redhat.com> <4F6B30A0.1050507@redhat.com> <4F6CAB0A.40305@redhat.com> <4F88AA80.3000404@redhat.com> Message-ID: <500D5774.8010200@redhat.com> On 04/14/2012 12:36 AM, Omair Majid wrote: > Hi Jiri, ...BIG SNIP... Hi! Long pause but here it is. Redesigned as you wished for head and 1.3 All minor stuff you have mentioned and most of mayor stuff should been fixed. Minor changes: * IcedTea instead of ICEDtea * no reflection (interfaces instead) * a lot of renaming as suggested * countless;) Mayor changes: * heavily unittested * more decomposed * separated SplashScreen and ErrorSplashScrren on highest (component and interface) levels as you desired. The only "not fixed" is separation of net.sourceforge.jnlp.LaunchHandler for each applet. I have trued to separate it somehow cleanly and harmlessly but without success. So I would like to proceed without this modification (especially for 1.3) and try to figure out more for head. I hope that you will like this version more then the previous one;) J. -------------- next part -------------- A non-text attachment was scrubbed... Name: splash_impl.diff Type: text/x-patch Size: 142838 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/fea54aa5/splash_impl.diff -------------- next part -------------- A non-text attachment was scrubbed... Name: splash_integration.diff Type: text/x-patch Size: 36396 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/fea54aa5/splash_integration.diff -------------- next part -------------- A non-text attachment was scrubbed... Name: splash_tests.diff Type: text/x-patch Size: 146678 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/fea54aa5/splash_tests.diff -------------- next part -------------- A non-text attachment was scrubbed... Name: splash_all.diff Type: text/x-patch Size: 325913 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/fea54aa5/splash_all.diff -------------- next part -------------- A non-text attachment was scrubbed... Name: javaws_splash.png Type: image/png Size: 12142 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/fea54aa5/javaws_splash.png From fcassia at gmail.com Mon Jul 23 07:07:57 2012 From: fcassia at gmail.com (Fernando Cassia) Date: Mon, 23 Jul 2012 11:07:57 -0300 Subject: Icedtea-web splashscreen implementation In-Reply-To: <500D5774.8010200@redhat.com> References: <4F50BE87.5070508@redhat.com> <4F6B30A0.1050507@redhat.com> <4F6CAB0A.40305@redhat.com> <4F88AA80.3000404@redhat.com> <500D5774.8010200@redhat.com> Message-ID: On Mon, Jul 23, 2012 at 10:53 AM, Jiri Vanek wrote: > I hope that you will like this version more then the previous one;) 1. There?s lots of jagged pixels on the "d" in "IcedTea", as if font hinting is wrong or anti-aliasing is not enabled. 2. I also do not like the "b" in web which looks almost faded. 3. Also, shouldn?t there be the word "plug-in" somewhere? As if, what is loading is the plug-in, not necessarily IcedTea as VM... Thoughts? Comments? Expletives? ;) Just my $0.02 FC From jvanek at redhat.com Mon Jul 23 07:27:50 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Mon, 23 Jul 2012 16:27:50 +0200 Subject: Icedtea-web splashscreen implementation In-Reply-To: References: <4F50BE87.5070508@redhat.com> <4F6B30A0.1050507@redhat.com> <4F6CAB0A.40305@redhat.com> <4F88AA80.3000404@redhat.com> <500D5774.8010200@redhat.com> Message-ID: <500D5F66.3080804@redhat.com> On 07/23/2012 04:07 PM, Fernando Cassia wrote: > On Mon, Jul 23, 2012 at 10:53 AM, Jiri Vanek wrote: > >> I hope that you will like this version more then the previous one;) > > 1. There?s lots of jagged pixels on the "d" in "IcedTea", as if font > hinting is wrong or anti-aliasing is not enabled. > > 2. I also do not like the "b" in web which looks almost faded. > > 3. Also, shouldn?t there be the word "plug-in" somewhere? As if, what > is loading is the plug-in, not necessarily IcedTea as VM... > > Thoughts? Comments? Expletives? ;) > Just my $0.02 > FC > Hi! You have missed the most important part. Whole splashscreen is vectorised and animated both for plugin and applets. This png is nothing more then screenshot.... For plugin there IS word plugin! (but just in vectorised form) If you are interested please check this thread to past, and you will find animated gif (90mb!) which will explain you a lot! Anyway - thanx for comment, I'm glad to hear that somebody is alive here;) J. From fcassia at gmail.com Mon Jul 23 07:39:10 2012 From: fcassia at gmail.com (Fernando Cassia) Date: Mon, 23 Jul 2012 11:39:10 -0300 Subject: Icedtea-web splashscreen implementation In-Reply-To: <500D5F66.3080804@redhat.com> References: <4F50BE87.5070508@redhat.com> <4F6B30A0.1050507@redhat.com> <4F6CAB0A.40305@redhat.com> <4F88AA80.3000404@redhat.com> <500D5774.8010200@redhat.com> <500D5F66.3080804@redhat.com> Message-ID: On Mon, Jul 23, 2012 at 11:27 AM, Jiri Vanek wrote: > Hi! You have missed the most important part. Whole splashscreen is > vectorised and animated both for plugin and applets. This png is nothing > more then screenshot.... Thanks for the info... then it makes sense. Is there a way to see the animation in motion, pardon the redundancy?. Maybe you could render it to a .mpg or mp4? Or animated svg if that?s even possible? (haven?t been keeping up with svg in the last 6 yrs... all I remember was when mozilla added svg support...) FC From smohammad at redhat.com Mon Jul 23 14:07:48 2012 From: smohammad at redhat.com (Saad Mohammad) Date: Mon, 23 Jul 2012 17:07:48 -0400 Subject: [RFC][icedtea-web]: PR1049 fix - extension jnlp with empty jars In-Reply-To: <1342552058.14979.15.camel@linux-laptop> References: <4FFB0CD7.8020509@redhat.com> <1342552058.14979.15.camel@linux-laptop> Message-ID: <500DBD24.7090202@redhat.com> Hi Adam, Thanks for looking into the patch, I have a few comments below. Updated patch is attached. CHANGELOG: 2012-07-23 Saad Mohammad * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeResources): Removes the display of the security dialog for loaders with only empty jars. * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: (JarCertVerifier): Tracks whether all jars verified are empty jars. (hasAllEmptyJars): Returns true if all jars verified are empty jars. (verifyJars): Checks whether signable entries and certificates are found and decides if all jars are empty jars. (isFullySignedByASingleCert): If all jars are emptyJars, returns true. * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJar.jnlp: Launching jnlp with the resource of a the main jar and an extension jnlp. * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarExtension.jnlp: Extension jnlp containing only an empty jar. * tests/reproducers/signed/EmptySignedJar/srcs/META-INF/emptyFile: Empty file within META-INF that is required to generate EmptySignedJar.jar by the test engine. * tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java: Testcase that tests jnlp files with empty jars. * tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp: Launches SignedJarResource class directly. [snip] > Reproducer patch: > [snip] >> diff --git a/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java b/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java >> new file mode 100644 >> --- /dev/null >> +++ b/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java >> @@ -0,0 +1,66 @@ >> +/* EmptySignedJar.java >> >> +> [snipped] >> + >> +import java.util.Arrays; >> +import java.util.Collections; >> +import java.util.List; >> +import net.sourceforge.jnlp.ServerAccess; >> +import net.sourceforge.jnlp.annotations.Bug; >> + >> +import org.junit.Assert; >> +import org.junit.Test; >> + >> +public class EmptySignedJarTest { >> + >> + private static ServerAccess server = new ServerAccess(); >> + private final List l = Collections.unmodifiableList(Arrays.asList(new String[] { "-Xtrustall" })); >> + private final String jarOutput = "Running SignedJarResource.."; >> + >> + @Test >> + public void checkingForRequiredResources() throws Exception { >> + String s = "Running SignedJarResource.."; >> + ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJarResource.jnlp"); >> + Assert.assertTrue("Could not locate SignedJarResource class within SignedJarResource jar", pr.stdout.contains(s)); >> + } >> + >> + @Bug(id = "PR1049") >> + @Test >> + public void usingExtensionWithEmptyJar() throws Exception { >> + ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/EmptySignedJar.jnlp"); >> + Assert.assertTrue("Stdout should contain " + jarOutput + " but did not", pr.stdout.contains(jarOutput)); >> + } >> +} > This test 'passes' with HEAD ? It does bring up a pop up window, however > this is not a proper test if it claims a pass if you close the window... Thanks for pointing this out. The new patch resolves this issue. [snip] > Patch itself: > > >> diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java >> --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java >> +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java >> @@ -600,7 +600,7 @@ >> file.setSignedJNLPAsMissing(); >> >> //user does not trust this publisher >> - if (!jcv.getAlreadyTrustPublisher()) { >> + if (!jcv.getAlreadyTrustPublisher() && !jcv.hasAllEmptyJars()) { >> checkTrustWithUser(jcv); >> } else { >> /** >> diff --git a/netx/net/sourceforge/jnlp/tools/JarCertVerifier.java b/netx/net/sourceforge/jnlp/tools/JarCertVerifier.java >> --- a/netx/net/sourceforge/jnlp/tools/JarCertVerifier.java >> +++ b/netx/net/sourceforge/jnlp/tools/JarCertVerifier.java >> @@ -103,6 +103,16 @@ >> >> private int totalSignableEntries = 0; >> >> + /** Whether all jars are empty (jars with no content or only META-INF/*) */ >> + private boolean allEmptyJars = false; > I think this isn't something JCV should concern itself with. > I think a better solution would be to check if there are non-META_INF/ entries, and only run JarCertVerifier then. > Or, as an alternative, you could remain this to 'triviallySigned', to align it more with the intent of JCV. > I went with your alternative solution and changed the method and variable names instead. I think JCV handling this check is fine since it already keeps track of the number of sign-able entries found in each jar. It would be redundant to have another class go through a similar check. [snip] Thanks again! -- Cheers, Saad Mohammad -------------- next part -------------- A non-text attachment was scrubbed... Name: changelogEntry-2.patch Type: text/x-patch Size: 1514 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/a7866f10/changelogEntry-2.patch -------------- next part -------------- A non-text attachment was scrubbed... Name: PR1049-2.patch Type: text/x-patch Size: 2385 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/a7866f10/PR1049-2.patch -------------- next part -------------- A non-text attachment was scrubbed... Name: reproducers_2.patch Type: text/x-patch Size: 11769 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/a7866f10/reproducers_2.patch From smohammad at redhat.com Mon Jul 23 15:47:30 2012 From: smohammad at redhat.com (Saad Mohammad) Date: Mon, 23 Jul 2012 18:47:30 -0400 Subject: [RFC][icedtea-web]: PR1049 fix - extension jnlp with empty jars In-Reply-To: <1342552058.14979.15.camel@linux-laptop> References: <4FFB0CD7.8020509@redhat.com> <1342552058.14979.15.camel@linux-laptop> Message-ID: <500DD482.6090307@redhat.com> Hi Adam, Sorry for multiple emails but it seems like the patch command does not like empty files too much :(. The previous patch was not creating the new empty file because it had no content (tests/reproducers/signed/EmptySignedJar/srcs/META-INF/emptyFile). I have fixed this problem in the updated reproducer patch attached. This patch contains two filename changes and an added test. I have attached the PRO1049 fix in my previous email with some comments. Please let me know if you run into any problems. Sorry again for all the trouble. Thanks. Changelog: 2012-07-23 Saad Mohammad * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeResources): Removes the display of the security dialog for loaders with only empty jars. * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: (JarCertVerifier): Tracks whether all jars verified are empty jars. (hasAllEmptyJars): Returns true if all jars verified are empty jars. (verifyJars): Checks whether signable entries and certificates are found and decides if all jars are empty jars. (isFullySignedByASingleCert): If all jars are emptyJars, returns true. * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarInLaunchingJnlp.jnlp: Launching jnlp with the resource of an empty jar and an extension jnlp containing the main jar. * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarInExtensionJnlp.jnlp: Launching jnlp with the resource of the main jar and an extension jnlp containing the empty jar. * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarExtension.jnlp: Extension jnlp containing only an empty jar. * tests/reproducers/signed/EmptySignedJar/srcs/META-INF/emptyFile: Empty file within META-INF; required to create EmptySignedJar.jar by the test engine. * tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java: Testcase that tests jnlp files with empty jars. * tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp: Launches SignedJarResource class directly. -- Cheers, Saad Mohammad -------------- next part -------------- A non-text attachment was scrubbed... Name: changelogEntry-3.patch Type: text/x-patch Size: 1744 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/41c62235/changelogEntry-3.patch -------------- next part -------------- A non-text attachment was scrubbed... Name: reproducers_3.patch Type: text/x-patch Size: 15264 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120723/41c62235/reproducers_3.patch From aph at redhat.com Tue Jul 24 01:16:28 2012 From: aph at redhat.com (Andrew Haley) Date: Tue, 24 Jul 2012 09:16:28 +0100 Subject: Ways of contributing In-Reply-To: References: Message-ID: <500E59DC.6090403@redhat.com> On 07/19/2012 11:09 AM, Oliver wrote: > I'm a computer science student within the UK and am interested in > contributing to the OpenJDK. Could you advise me on any potential ways to > get started and the areas in which you feel someone who has never > contributed before could be successful in? You have put your finger on one of the biggest problems we have in OpenJDK development. We've been discussing how to get more people started (a process known as "onboarding") in the OpenJDK Governing Board and we still don't know how best to do it. There should be a simple process of finding a bug, fixing it, and submitting a patch, but we don't have that set up. Is there any particular area you're interested in? Low-level VM work, libraries, graphics? Andrew. From jvanek at redhat.com Tue Jul 24 03:01:46 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Tue, 24 Jul 2012 12:01:46 +0200 Subject: [PATCH] Introduced --with-gtk option for configure.ac In-Reply-To: <1338884105-12356-1-git-send-email-phatina@redhat.com> References: <1338884105-12356-1-git-send-email-phatina@redhat.com> Message-ID: <500E728A.6070509@redhat.com> Ping? Or was it approved? (should be O:) J. On 06/05/2012 10:15 AM, Peter Hatina wrote: > Review, please. > > Peter Hatina > EMEA ENG-Desktop Development > Red Hat Czech, Brno > > --- > ChangeLog | 8 ++++++++ > NEWS | 1 + > acinclude.m4 | 40 +++++++++++++++++++++++++++++++++++++++- > 3 files changed, 48 insertions(+), 1 deletion(-) > > diff --git a/ChangeLog b/ChangeLog > index 82c0feb..f1d97bf 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -1,3 +1,11 @@ > +2012-05-28 Peter Hatina > + > + Introduced configure option --with-gtk=2|3|default to be able > + to compile against different version of GTK+ (2.x or 3.x). > + * NEWS: mentioned bug fix > + * acinclude.m4: (ITW_GTK_CHECK_VERSION) macro for getting GTK+ version > + (ITW_GTK_CHECK) macro for checking GTK+ version > + > 2012-05-02 Jiri Vanek > > Introduced new annotations Bug (to connect test/reproducer with documentation) > diff --git a/NEWS b/NEWS > index 8397639..cf2a54e 100644 > --- a/NEWS > +++ b/NEWS > @@ -16,6 +16,7 @@ New in release 1.3 (2012-XX-XX): > - PR895: IcedTea-Web searches for missing classes on each loadClass or findClass > * Common > - PR918: java applet windows uses a low resulution black/white icon > + - RH720836: project can be compiled against GTK+ 2 or 3 libraries > > New in release 1.2 (2011-XX-XX): > * Security updates: > diff --git a/acinclude.m4 b/acinclude.m4 > index a330d0f..a2eafd0 100644 > --- a/acinclude.m4 > +++ b/acinclude.m4 > @@ -359,13 +359,51 @@ AC_ARG_ENABLE([plugin], > AC_MSG_RESULT(${enable_plugin}) > ]) > > +dnl ITW_GTK_CHECK_VERSION([gtk version]) > +AC_DEFUN([ITW_GTK_CHECK_VERSION], > +[ > + AC_MSG_CHECKING([for GTK$1 version]) > + GTK_VER=`$PKG_CONFIG --modversion gtk+-$1.0` > + AC_MSG_RESULT([$GTK_VER]) > +]) > + > +dnl ITW_GTK_CHECK([gtk version]) > +AC_DEFUN([ITW_GTK_CHECK], > +[ > + case "$1" in > + default) > + PKG_CHECK_MODULES(GTK, gtk+-3.0, > + [ITW_GTK_CHECK_VERSION([3])], > + [PKG_CHECK_MODULES(GTK, gtk+-2.0, > + [ITW_GTK_CHECK_VERSION([2])], > + [AC_MSG_ERROR([GTK not found])] > + )] > + ) > + ;; > + *) > + PKG_CHECK_MODULES(GTK, gtk+-$1.0, > + [ITW_GTK_CHECK_VERSION([$1])], > + [AC_MSG_ERROR([GTK not found])] > + ) > + ;; > + esac > +]) > + > AC_DEFUN_ONCE([IT_CHECK_PLUGIN_DEPENDENCIES], > [ > dnl Check for plugin support headers and libraries. > dnl FIXME: use unstable > AC_REQUIRE([IT_CHECK_PLUGIN]) > if test "x${enable_plugin}" = "xyes" ; then > - PKG_CHECK_MODULES(GTK, gtk+-2.0) > + AC_ARG_WITH([gtk], > + [AS_HELP_STRING([--with-gtk=[2|3|default]], > + [the GTK+ version to use (default: 3)])], > + [case "$with_gtk" in > + 2|3|default) ;; > + *) AC_MSG_ERROR([invalid GTK+ version specified]) ;; > + esac], > + [with_gtk=default]) > + ITW_GTK_CHECK([$with_gtk]) > PKG_CHECK_MODULES(GLIB, glib-2.0) > AC_SUBST(GLIB_CFLAGS) > AC_SUBST(GLIB_LIBS) > From bugzilla-daemon at icedtea.classpath.org Tue Jul 24 04:24:54 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 24 Jul 2012 11:24:54 +0000 Subject: [Bug 1092] New: After choosing the eclipse workspace, eclipse crashes (doesn't even start) -> error.log Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1092 Priority: P3 Bug ID: 1092 Assignee: unassigned at icedtea.classpath.org Summary: After choosing the eclipse workspace, eclipse crashes (doesn't even start) -> error.log Severity: critical Classification: Unclassified OS: Linux Reporter: hapi at hs-furtwangen.de Hardware: x86_64 Status: NEW Version: 6-1.11.3 Component: IcedTea Product: IcedTea Created attachment 730 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=730&action=edit Errorlog of Eclipse # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f93d7ab65c0, pid=19238, tid=140273468892928 # # JRE version: 6.0_24-b24 # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops) # Derivative: IcedTea6 1.11.3 # Distribution: Dummy Product (x86_64), package suse-6.2-x86_64 # Problematic frame: # C [libgobject-2.0.so.0+0x195c0] g_object_get_qdata+0x20 # # If you would like to submit a bug report, please include # instructions how to reproduce the bug and visit: # http://icedtea.classpath.org/bugzilla # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # [...] (full errorlog attached) CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1 Memory: 4k page, physical 1017020k(72048k free), swap 2103292k(1802708k free) vm_info: OpenJDK 64-Bit Server VM (20.0-b12) for linux-amd64 JRE (1.6.0_24-b24), built on Jun 19 2012 22:04:07 by "abuild" with gcc 4.6.2 time: Tue Jul 24 13:17:31 2012 elapsed time: 30 seconds -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120724/c1674d21/attachment.html From ptisnovs at icedtea.classpath.org Tue Jul 24 04:28:04 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Tue, 24 Jul 2012 11:28:04 +0000 Subject: /hg/rhino-tests: Added new targets generated dynamically which c... Message-ID: changeset 6c5e550a5579 in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=6c5e550a5579 author: Pavel Tisnovsky date: Tue Jul 24 13:30:43 2012 +0200 Added new targets generated dynamically which can be used to run just one selected test. Added target "listtests" to list all tests. diffstat: ChangeLog | 8 ++++++++ Makefile | 13 +++++++++++++ README | 15 +++++++++++++++ 3 files changed, 36 insertions(+), 0 deletions(-) diffs (60 lines): diff -r 25d5ea98c051 -r 6c5e550a5579 ChangeLog --- a/ChangeLog Thu Jul 19 12:31:34 2012 +0200 +++ b/ChangeLog Tue Jul 24 13:30:43 2012 +0200 @@ -1,3 +1,11 @@ +2012-07-24 Pavel Tisnovsky + + * Makefile: + Added new targets generated dynamically which can be + used to run just one selected test. + Added target "listtests" to list all tests. + * README: Mention new functionality. + 2012-07-19 Pavel Tisnovsky * src/org/RhinoTests/SimpleScriptContextClassTest.java: diff -r 25d5ea98c051 -r 6c5e550a5579 Makefile --- a/Makefile Thu Jul 19 12:31:34 2012 +0200 +++ b/Makefile Tue Jul 24 13:30:43 2012 +0200 @@ -116,6 +116,19 @@ $(JAVA) -cp $(BUILD_DIR) org.RhinoTests.$$tst 2>&1 | tee $(LOGS_DIR)/$(DATE)/$$tst.log ; \ done +# targets for all test suites +TESTSUITES = $(shell ls -1 $(SOURCE_DIR)/$(TEST_PACKAGE) | sed -n -e 's/\([A-Za-z0-9]*\)\.java/\1/p') + +$(TESTSUITES): build + mkdir -p $(LOGS_DIR) + mkdir -p $(LOGS_DIR)/$(DATE) + $(JAVA) -cp $(BUILD_DIR) $(TEST_PACKAGE).$@ 2>&1 | tee $(LOGS_DIR)/$(DATE)/$@.log + +listtests: + for tst in $(TESTS); do \ + echo $$tst ; \ + done + report: $(ALL_CLASSES) mkdir -p $(REPORT_DIR) cp -u $(TEMPLATE_DIR)/style.css $(REPORT_DIR)/style.css diff -r 25d5ea98c051 -r 6c5e550a5579 README --- a/README Thu Jul 19 12:31:34 2012 +0200 +++ b/README Tue Jul 24 13:30:43 2012 +0200 @@ -36,3 +36,18 @@ make runtests > test_results + + +Running just one selected Rhino test +==================================== + +It is also possible to run just one selected Rhino test. To do this +use following command: + +make test_name + +It's possible to run following command to get a list of all tests: + +make listtests + + From adomurad at redhat.com Tue Jul 24 06:40:34 2012 From: adomurad at redhat.com (Adam Domurad) Date: Tue, 24 Jul 2012 09:40:34 -0400 Subject: [icedtea-web][rfc] Correction in IcedTeaPluginUtils::strSplit Message-ID: <1343137234.2560.56.camel@voip-10-15-18-79.yyz.redhat.com> 2012-07-24 Adam Domurad * plugin/icedteanp/IcedTeaPluginUtils.cc (IcedTeaPluginUtilities::strSplit): Replace usage of " " with proper delimiter -------------- next part -------------- A non-text attachment was scrubbed... Name: strsplit.patch Type: text/x-patch Size: 436 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120724/2b3dae77/strsplit.patch From dbhole at redhat.com Tue Jul 24 06:50:48 2012 From: dbhole at redhat.com (Deepak Bhole) Date: Tue, 24 Jul 2012 09:50:48 -0400 Subject: [icedtea-web][rfc] Correction in IcedTeaPluginUtils::strSplit In-Reply-To: <1343137234.2560.56.camel@voip-10-15-18-79.yyz.redhat.com> References: <1343137234.2560.56.camel@voip-10-15-18-79.yyz.redhat.com> Message-ID: <20120724135048.GG6482@redhat.com> * Adam Domurad [2012-07-24 09:42]: > 2012-07-24 Adam Domurad > > * plugin/icedteanp/IcedTeaPluginUtils.cc > (IcedTeaPluginUtilities::strSplit): Replace usage of " " with proper > delimiter OK for HEAD and all affected branches. Deepak > diff --git a/plugin/icedteanp/IcedTeaPluginUtils.cc b/plugin/icedteanp/IcedTeaPluginUtils.cc > --- a/plugin/icedteanp/IcedTeaPluginUtils.cc > +++ b/plugin/icedteanp/IcedTeaPluginUtils.cc > @@ -311,7 +311,7 @@ IcedTeaPluginUtilities::strSplit(const c > std::string* s = new std::string(); > s->append(tok_ptr); > v->push_back(s); > - tok_ptr = strtok (NULL, " "); > + tok_ptr = strtok (NULL, delim); > } > free(copy); > From adomurad at icedtea.classpath.org Tue Jul 24 07:20:15 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Tue, 24 Jul 2012 14:20:15 +0000 Subject: /hg/release/icedtea-web-1.1: Small correction to strSplit Message-ID: changeset a9a689478c96 in /hg/release/icedtea-web-1.1 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=a9a689478c96 author: Adam Domurad date: Tue Jul 24 10:20:10 2012 -0400 Small correction to strSplit diffstat: ChangeLog | 5 +++++ plugin/icedteanp/IcedTeaPluginUtils.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diffs (24 lines): diff -r a8abb4b08bf8 -r a9a689478c96 ChangeLog --- a/ChangeLog Fri Jun 08 13:45:35 2012 -0400 +++ b/ChangeLog Tue Jul 24 10:20:10 2012 -0400 @@ -1,3 +1,8 @@ +2012-07-24 Adam Domurad + + * plugin/icedteanp/IcedTeaPluginUtils.cc + (IcedTeaPluginUtilities::strSplit): Replace usage of " " with proper + delimiter 2012-06-04 Adam Domurad This patch fixes PR518, ensures null termination of strings based off diff -r a8abb4b08bf8 -r a9a689478c96 plugin/icedteanp/IcedTeaPluginUtils.cc --- a/plugin/icedteanp/IcedTeaPluginUtils.cc Fri Jun 08 13:45:35 2012 -0400 +++ b/plugin/icedteanp/IcedTeaPluginUtils.cc Tue Jul 24 10:20:10 2012 -0400 @@ -316,7 +316,7 @@ std::string* s = new std::string(); s->append(tok_ptr); v->push_back(s); - tok_ptr = strtok (NULL, " "); + tok_ptr = strtok (NULL, delim); } return v; From adomurad at icedtea.classpath.org Tue Jul 24 07:25:32 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Tue, 24 Jul 2012 14:25:32 +0000 Subject: /hg/release/icedtea-web-1.2: Small correction to strSplit Message-ID: changeset 087d8407b2e1 in /hg/release/icedtea-web-1.2 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.2?cmd=changeset;node=087d8407b2e1 author: Adam Domurad date: Tue Jul 24 10:24:57 2012 -0400 Small correction to strSplit diffstat: ChangeLog | 6 ++++++ plugin/icedteanp/IcedTeaPluginUtils.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) diffs (25 lines): diff -r ad4c1debd54f -r 087d8407b2e1 ChangeLog --- a/ChangeLog Fri Jul 20 11:02:23 2012 -0400 +++ b/ChangeLog Tue Jul 24 10:24:57 2012 -0400 @@ -1,3 +1,9 @@ +2012-07-24 Adam Domurad + + * plugin/icedteanp/IcedTeaPluginUtils.cc + (IcedTeaPluginUtilities::strSplit): Replace usage of " " with proper + delimiter + 2012-07-18 Danesh Dadachanji Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt diff -r ad4c1debd54f -r 087d8407b2e1 plugin/icedteanp/IcedTeaPluginUtils.cc --- a/plugin/icedteanp/IcedTeaPluginUtils.cc Fri Jul 20 11:02:23 2012 -0400 +++ b/plugin/icedteanp/IcedTeaPluginUtils.cc Tue Jul 24 10:24:57 2012 -0400 @@ -316,7 +316,7 @@ std::string* s = new std::string(); s->append(tok_ptr); v->push_back(s); - tok_ptr = strtok (NULL, " "); + tok_ptr = strtok (NULL, delim); } return v; From adomurad at icedtea.classpath.org Tue Jul 24 07:34:13 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Tue, 24 Jul 2012 14:34:13 +0000 Subject: /hg/release/icedtea-web-1.3: Refactor launch type of JNLPFile in... Message-ID: changeset b1b5b91b9830 in /hg/release/icedtea-web-1.3 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.3?cmd=changeset;node=b1b5b91b9830 author: Adam Domurad date: Tue Jul 24 10:34:08 2012 -0400 Refactor launch type of JNLPFile into its own type, LaunchDesc diffstat: ChangeLog | 16 ++++++ netx/net/sourceforge/jnlp/AppletDesc.java | 3 +- netx/net/sourceforge/jnlp/ApplicationDesc.java | 3 +- netx/net/sourceforge/jnlp/InstallerDesc.java | 3 +- netx/net/sourceforge/jnlp/JNLPFile.java | 4 +- netx/net/sourceforge/jnlp/LaunchDesc.java | 42 ++++++++++++++++++ netx/net/sourceforge/jnlp/Parser.java | 2 +- netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 19 +++---- 8 files changed, 75 insertions(+), 17 deletions(-) diffs (207 lines): diff -r c9d0e375f07c -r b1b5b91b9830 ChangeLog --- a/ChangeLog Fri Jul 20 10:44:46 2012 -0400 +++ b/ChangeLog Tue Jul 24 10:34:08 2012 -0400 @@ -1,3 +1,19 @@ +2012-07-24 Adam Domurad + + Refactor JNLPFile#launchType into its own interface type (as opposed to + Object), LaunchDesc. + * netx/net/sourceforge/jnlp/AppletDesc.java: Add override annotation to + getMainClass(). + * netx/net/sourceforge/jnlp/ApplicationDesc.java: Same as above + * netx/net/sourceforge/jnlp/InstallerDesc.java: Same as above + * netx/net/sourceforge/jnlp/JNLPFile.java: Make launchType a + LaunchDesc object. Update getLaunchInfo() accordingly. + * netx/net/sourceforge/jnlp/LaunchDesc.java: New launch description. + * netx/net/sourceforge/jnlp/Parser.java + (getLauncher): Return type changed to LaunchDesc + * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Replace + occurences of instanceof with respect to launchType. + 2012-07-18 Danesh Dadachanji Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt diff -r c9d0e375f07c -r b1b5b91b9830 netx/net/sourceforge/jnlp/AppletDesc.java --- a/netx/net/sourceforge/jnlp/AppletDesc.java Fri Jul 20 10:44:46 2012 -0400 +++ b/netx/net/sourceforge/jnlp/AppletDesc.java Tue Jul 24 10:34:08 2012 -0400 @@ -25,7 +25,7 @@ * @author Jon A. Maxwell (JAM) - initial author * @version $Revision: 1.8 $ */ -public class AppletDesc { +public class AppletDesc implements LaunchDesc { /** the applet name */ private String name; @@ -75,6 +75,7 @@ /** * Returns the main class name in the dot-separated form (eg: foo.bar.Baz) */ + @Override public String getMainClass() { return mainClass; } diff -r c9d0e375f07c -r b1b5b91b9830 netx/net/sourceforge/jnlp/ApplicationDesc.java --- a/netx/net/sourceforge/jnlp/ApplicationDesc.java Fri Jul 20 10:44:46 2012 -0400 +++ b/netx/net/sourceforge/jnlp/ApplicationDesc.java Tue Jul 24 10:34:08 2012 -0400 @@ -24,7 +24,7 @@ * @author Jon A. Maxwell (JAM) - initial author * @version $Revision: 1.7 $ */ -public class ApplicationDesc { +public class ApplicationDesc implements LaunchDesc { /** the main class name and package */ private String mainClass; @@ -46,6 +46,7 @@ /** * Returns the main class name */ + @Override public String getMainClass() { return mainClass; } diff -r c9d0e375f07c -r b1b5b91b9830 netx/net/sourceforge/jnlp/InstallerDesc.java --- a/netx/net/sourceforge/jnlp/InstallerDesc.java Fri Jul 20 10:44:46 2012 -0400 +++ b/netx/net/sourceforge/jnlp/InstallerDesc.java Tue Jul 24 10:34:08 2012 -0400 @@ -22,7 +22,7 @@ * @author Jon A. Maxwell (JAM) - initial author * @version $Revision: 1.6 $ */ -public class InstallerDesc { +public class InstallerDesc implements LaunchDesc { /** the main class name and package. */ private String mainClass; @@ -39,6 +39,7 @@ /** * Returns the main class name and package. */ + @Override public String getMainClass() { return mainClass; } diff -r c9d0e375f07c -r b1b5b91b9830 netx/net/sourceforge/jnlp/JNLPFile.java --- a/netx/net/sourceforge/jnlp/JNLPFile.java Fri Jul 20 10:44:46 2012 -0400 +++ b/netx/net/sourceforge/jnlp/JNLPFile.java Tue Jul 24 10:34:08 2012 -0400 @@ -91,7 +91,7 @@ protected ResourcesDesc sharedResources = new ResourcesDesc(this, null, null, null); /** the application description */ - protected Object launchType; + protected LaunchDesc launchType; /** the component description */ protected ComponentDesc component; @@ -446,7 +446,7 @@ * Returns an object of one of the following types: AppletDesc, * ApplicationDesc and InstallerDesc */ - public Object getLaunchInfo() { + public LaunchDesc getLaunchInfo() { return launchType; } diff -r c9d0e375f07c -r b1b5b91b9830 netx/net/sourceforge/jnlp/LaunchDesc.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netx/net/sourceforge/jnlp/LaunchDesc.java Tue Jul 24 10:34:08 2012 -0400 @@ -0,0 +1,42 @@ +/* LaunchDesc -- Represents a launch description + Copyright (C) 2012 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 net.sourceforge.jnlp; + +public interface LaunchDesc { + public String getMainClass(); +} diff -r c9d0e375f07c -r b1b5b91b9830 netx/net/sourceforge/jnlp/Parser.java --- a/netx/net/sourceforge/jnlp/Parser.java Fri Jul 20 10:44:46 2012 -0400 +++ b/netx/net/sourceforge/jnlp/Parser.java Tue Jul 24 10:34:08 2012 -0400 @@ -609,7 +609,7 @@ * @param parent the parent node * @throws ParseException if the JNLP file is invalid */ - public Object getLauncher(Node parent) throws ParseException { + public LaunchDesc getLauncher(Node parent) throws ParseException { // check for other than one application type if (1 < getChildNodes(parent, "applet-desc").length + getChildNodes(parent, "application-desc").length diff -r c9d0e375f07c -r b1b5b91b9830 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Fri Jul 20 10:44:46 2012 -0400 +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Tue Jul 24 10:34:08 2012 -0400 @@ -67,6 +67,7 @@ import net.sourceforge.jnlp.JNLPFile; import net.sourceforge.jnlp.JNLPMatcher; import net.sourceforge.jnlp.JNLPMatcherException; +import net.sourceforge.jnlp.LaunchDesc; import net.sourceforge.jnlp.LaunchException; import net.sourceforge.jnlp.ParseException; import net.sourceforge.jnlp.PluginBridge; @@ -636,8 +637,7 @@ // If jar with main class was not found and there are no more // available jars, throw a LaunchException - if (file.getLaunchInfo() instanceof AppletDesc || - file.getLaunchInfo() instanceof ApplicationDesc) { + if (file.getLaunchInfo() != null) { if (!foundMainJar && (available == null || available.size() == 0)) throw new LaunchException(file, null, R("LSFatal"), @@ -729,17 +729,14 @@ */ private void checkForMain(List jars) throws LaunchException { + // Check launch info if (mainClass == null) { - Object obj = file.getLaunchInfo(); + LaunchDesc launchDesc = file.getLaunchInfo(); + if (launchDesc == null) { + return; + } - if (obj instanceof ApplicationDesc) { - ApplicationDesc ad = (ApplicationDesc) file.getLaunchInfo(); - mainClass = ad.getMainClass(); - } else if (obj instanceof AppletDesc) { - AppletDesc ad = (AppletDesc) file.getLaunchInfo(); - mainClass = ad.getMainClass(); - } else - return; + mainClass = launchDesc.getMainClass(); } // The main class may be specified in the manifest From adomurad at icedtea.classpath.org Tue Jul 24 07:35:34 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Tue, 24 Jul 2012 14:35:34 +0000 Subject: /hg/release/icedtea-web-1.3: Small correction to strSplit Message-ID: changeset 14fbe4fcec25 in /hg/release/icedtea-web-1.3 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.3?cmd=changeset;node=14fbe4fcec25 author: Adam Domurad date: Tue Jul 24 10:35:11 2012 -0400 Small correction to strSplit diffstat: ChangeLog | 6 ++++++ plugin/icedteanp/IcedTeaPluginUtils.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) diffs (25 lines): diff -r b1b5b91b9830 -r 14fbe4fcec25 ChangeLog --- a/ChangeLog Tue Jul 24 10:34:08 2012 -0400 +++ b/ChangeLog Tue Jul 24 10:35:11 2012 -0400 @@ -1,3 +1,9 @@ +2012-07-24 Adam Domurad + + * plugin/icedteanp/IcedTeaPluginUtils.cc + (IcedTeaPluginUtilities::strSplit): Replace usage of " " with proper + delimiter + 2012-07-24 Adam Domurad Refactor JNLPFile#launchType into its own interface type (as opposed to diff -r b1b5b91b9830 -r 14fbe4fcec25 plugin/icedteanp/IcedTeaPluginUtils.cc --- a/plugin/icedteanp/IcedTeaPluginUtils.cc Tue Jul 24 10:34:08 2012 -0400 +++ b/plugin/icedteanp/IcedTeaPluginUtils.cc Tue Jul 24 10:35:11 2012 -0400 @@ -311,7 +311,7 @@ std::string* s = new std::string(); s->append(tok_ptr); v->push_back(s); - tok_ptr = strtok (NULL, " "); + tok_ptr = strtok (NULL, delim); } free(copy); From adomurad at icedtea.classpath.org Tue Jul 24 07:42:33 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Tue, 24 Jul 2012 14:42:33 +0000 Subject: /hg/icedtea-web: Small correction in strSplit Message-ID: changeset 0c42aee7089e in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=0c42aee7089e author: Adam Domurad date: Tue Jul 24 10:38:51 2012 -0400 Small correction in strSplit diffstat: ChangeLog | 6 ++++++ plugin/icedteanp/IcedTeaPluginUtils.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) diffs (25 lines): diff -r be423d1f265d -r 0c42aee7089e ChangeLog --- a/ChangeLog Fri Jul 20 10:38:07 2012 -0400 +++ b/ChangeLog Tue Jul 24 10:38:51 2012 -0400 @@ -1,3 +1,9 @@ +2012-07-24 Adam Domurad + + * plugin/icedteanp/IcedTeaPluginUtils.cc + (IcedTeaPluginUtilities::strSplit): Replace usage of " " with proper + delimiter + 2012-07-18 Danesh Dadachanji Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt diff -r be423d1f265d -r 0c42aee7089e plugin/icedteanp/IcedTeaPluginUtils.cc --- a/plugin/icedteanp/IcedTeaPluginUtils.cc Fri Jul 20 10:38:07 2012 -0400 +++ b/plugin/icedteanp/IcedTeaPluginUtils.cc Tue Jul 24 10:38:51 2012 -0400 @@ -311,7 +311,7 @@ std::string* s = new std::string(); s->append(tok_ptr); v->push_back(s); - tok_ptr = strtok (NULL, " "); + tok_ptr = strtok (NULL, delim); } free(copy); From dbhole at icedtea.classpath.org Tue Jul 24 08:46:36 2012 From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org) Date: Tue, 24 Jul 2012 15:46:36 +0000 Subject: /hg/release/icedtea-web-1.1: Fixed spacing in ChangeLog Message-ID: changeset d98198e51e84 in /hg/release/icedtea-web-1.1 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=d98198e51e84 author: Deepak Bhole date: Tue Jul 24 11:46:11 2012 -0400 Fixed spacing in ChangeLog diffstat: ChangeLog | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diffs (35 lines): diff -r a9a689478c96 -r d98198e51e84 ChangeLog --- a/ChangeLog Tue Jul 24 10:20:10 2012 -0400 +++ b/ChangeLog Tue Jul 24 11:46:11 2012 -0400 @@ -5,19 +5,19 @@ delimiter 2012-06-04 Adam Domurad - This patch fixes PR518, ensures null termination of strings based off - of NPVariant results. + This patch fixes PR518, ensures null termination of strings based off + of NPVariant results. * NEWS: Added line about fixing PR518 - * plugin/icedteanp/IcedTeaPluginUtils.h: Added declaration of - NPVariantAsString - * plugin/icedteanp/IcedTeaPluginUtils.cc - (NPVariantAsString): New. Converts an NPVariant to a - std::string, assumes it is a string. - (isObjectJSArray): Now uses NPVariantAsString, minor cleanup. - * plugin/icedteanp/IcedTeaJavaRequestProcessor.cc - (plugin_get_documentbase): Now uses NPVariantAsString. - * plugin/icedteanp/IcedTeaNPPlugin.cc - (NPVariantToString): Now uses NPVariantAsString, minor cleanup. + * plugin/icedteanp/IcedTeaPluginUtils.h: Added declaration of + NPVariantAsString + * plugin/icedteanp/IcedTeaPluginUtils.cc + (NPVariantAsString): New. Converts an NPVariant to a + std::string, assumes it is a string. + (isObjectJSArray): Now uses NPVariantAsString, minor cleanup. + * plugin/icedteanp/IcedTeaJavaRequestProcessor.cc + (plugin_get_documentbase): Now uses NPVariantAsString. + * plugin/icedteanp/IcedTeaNPPlugin.cc + (NPVariantToString): Now uses NPVariantAsString, minor cleanup. 2012-06-01 Deepak Bhole From dbhole at icedtea.classpath.org Tue Jul 24 08:48:03 2012 From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org) Date: Tue, 24 Jul 2012 15:48:03 +0000 Subject: /hg/release/icedtea-web-1.1: More ChangeLog spacing fixes Message-ID: changeset ee39024dfed1 in /hg/release/icedtea-web-1.1 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=ee39024dfed1 author: Deepak Bhole date: Tue Jul 24 11:47:46 2012 -0400 More ChangeLog spacing fixes diffstat: ChangeLog | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (11 lines): diff -r d98198e51e84 -r ee39024dfed1 ChangeLog --- a/ChangeLog Tue Jul 24 11:46:11 2012 -0400 +++ b/ChangeLog Tue Jul 24 11:47:46 2012 -0400 @@ -3,6 +3,7 @@ * plugin/icedteanp/IcedTeaPluginUtils.cc (IcedTeaPluginUtilities::strSplit): Replace usage of " " with proper delimiter + 2012-06-04 Adam Domurad This patch fixes PR518, ensures null termination of strings based off From ahughes at redhat.com Tue Jul 24 09:54:33 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Tue, 24 Jul 2012 12:54:33 -0400 (EDT) Subject: IcedTea 2.3 Branch Message-ID: <302371034.2634034.1343148873362.JavaMail.root@redhat.com> In line with the new 7u6 branch: http://mail.openjdk.java.net/pipermail/jdk7u-dev/2012-July/003636.html we now have an IcedTea 2.3 branch: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/{.,corba,jaxp,jaxws,hotspot,langtools,jdk} This is currently up-to-date with 7u6b20. A 2.3 release will follow the release of u6, as with previous update releases. -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From ahughes at redhat.com Tue Jul 24 09:55:37 2012 From: ahughes at redhat.com (Dr Andrew John Hughes) Date: Tue, 24 Jul 2012 17:55:37 +0100 Subject: IcedTea 2.3 Branch In-Reply-To: <302371034.2634034.1343148873362.JavaMail.root@redhat.com> References: <302371034.2634034.1343148873362.JavaMail.root@redhat.com> Message-ID: On 24 July 2012 17:54, Andrew Hughes wrote: > In line with the new 7u6 branch: > > http://mail.openjdk.java.net/pipermail/jdk7u-dev/2012-July/003636.html > > we now have an IcedTea 2.3 branch: > > http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/{.,corba,jaxp,jaxws,hotspot,langtools,jdk} > > This is currently up-to-date with 7u6b20. A 2.3 release will follow the release of u6, as with > previous update releases. > -- > Andrew :) > > Free Java Software Engineer > Red Hat, Inc. (http://www.redhat.com) > > PGP Key: 248BDC07 (https://keys.indymedia.org/) > Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 > A branch for IcedTea7 will follow in due course. I want to see if it's possible to use the 2.1 HotSpot when building Zero, before branching for this release. So far, it looks like this will need a few backports (primarily SetNativeThreadName). I have Zero built with IcedTea7 HEAD, but it currently crashes on initialisation. -- Andii :-) From smohammad at redhat.com Tue Jul 24 12:32:03 2012 From: smohammad at redhat.com (Saad Mohammad) Date: Tue, 24 Jul 2012 15:32:03 -0400 Subject: [RFC][icedtea-web]: Added signed jnlp tests for applications using multiple jars In-Reply-To: <1342557461.15784.16.camel@linux-laptop> References: <4FF4B022.2000608@redhat.com> <1342557461.15784.16.camel@linux-laptop> Message-ID: <500EF833.9040509@redhat.com> Hi Adam, Thanks for looking over this patch. I have answered your questions below. On 07/17/2012 04:37 PM, adomurad wrote: > Hi Saad. Thanks for the patches! General question, what motivated you to > test these aspects (which all seem to pass?) You'll have to forgive my > ignorance of jnlp templates, I would appreciate a brief elaboration on > the aspects under test here. > I have added these tests to ensure applications with multiple jars and signed jnlp(s) are always working correctly. The rules that are being tested: -> A signed jnlp file is checked and validated only if found in the main jar and the main jar is fully signed. If an application has multiple jars for its resources, it will _only_ check/validate the main jar for a signed jnlp. -> If the signed jnlp does not match the launching jnlp file, the launch of the application is aborted. (An exception is also thrown). The reproducers check these rules using both methods of signed jnlps (application and template). The tests ensures _only_ the main jar is being checked and validated for a signed jnlp, especially in cases where an application has multiple signed jnlps within various jars. It should never validate signed jnlp files in non-main jars. A small misbehaviour with the handling of signed jnlps in IcedTea-Web can easily terminate the launch of an application. This is why I feel that these tests are very important. > Comments inline. > > On Wed, 2012-07-04 at 17:05 -0400, Saad Mohammad wrote: >> Hello, >> >> I have attached the patch that tests the launching of applications which >> have multiple jars containing signed jnlp files. >> >> ChangeLog: >> >> 2012-07-05 Saad Mohammad >> >> Added multiple jars with signed jnlp tests. >> * >> tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp: >> Launches SignedJarResource class directly. >> * >> tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithMatchingSignedJnlp.jnlp: >> * >> tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithUnmatchingSignedJnlp.jnlp: >> * >> tests/reproducers/signed/SignedJnlpMultipleJars/resources/MainJarWithoutSignedJnlp.jnlp: >> Launching jnlp file that contains multiple jars as its resource. >> * >> tests/reproducers/signed/SignedJnlpMultipleJars/srcs/JNLP-INF/APPLICATION.jnlp: >> Signed jnlp file. >> * >> tests/reproducers/signed/SignedJnlpMultipleJars/srcs/SignedJnlpApplication.java: >> A simple java class that outputs a string. >> * >> tests/reproducers/signed/SignedJnlpMultipleJars/testcases/SignedJnlpMultipleJarsTest.java: >> Testcase that tests the launching of jnlp files containing multple jar >> as its resources. >> * >> tests/reproducers/signed/SignedJnlpResource/resources/SignedJnlpResource.jnlp: >> Launches SignedJnlpResource class. >> * >> tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithMatchingSignedJnlpTemplate.jnlp: >> * >> tests/reproducers/signed/SignedJnlpResource2/resources/MainJarWithUnmatchingSignedJnlpTemplate.jnlp: >> Launching jnlp file that contains multiple jars as its resource. >> * >> tests/reproducers/signed/SignedJnlpResource2/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp: >> Signed jnlp file. >> * >> tests/reproducers/signed/SignedJnlpResource2/srcs/SignedJnlpApplicationTemplate.java: >> A simple java class that outputs a string. >> > > >> /* SignedJnlpMultipleJarsTest.java >> Copyright (C) 2012 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.util.Arrays; >> import java.util.Collections; >> import java.util.List; >> import net.sourceforge.jnlp.ServerAccess; >> import org.junit.Assert; >> import org.junit.Test; >> >> public class SignedJnlpMultipleJarsTest { >> >> private static ServerAccess server = new ServerAccess(); >> private final List l = Collections.unmodifiableList(Arrays.asList(new String[] { "-Xtrustall" })); >> private final String signedJnlpException = "net.sourceforge.jnlp.LaunchException: Fatal: Application Error: " >> + "The signed JNLP file did not match the launching JNLP file. Missing Resource: Signed Application " >> + "did not match launching JNLP File"; >> >> @Test >> public void checkingForRequiredResources() throws Exception { >> String s = "Running SignedJarResource.."; >> ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJarResource.jnlp"); >> Assert.assertTrue("Could not locate SignedJarResource class within SignedJarResource jar", pr.stdout.contains(s)); > The failure messages here and below assume too much based on the condition. >> >> s = "Running SignedJnlpResource.."; >> pr = server.executeJavawsHeadless(l, "/SignedJnlpResource.jnlp"); >> Assert.assertTrue("Could not locate SignedJnlpResource class within SignedJnlpResource jar", pr.stdout.contains(s)); > What functionality does this test exactly ? It seems like SignedJnlpResource more or less just loads a .jar in a fashion that is already well tested. This just ensure the resources required to run the rest of the test have been found. If any of these resources are missing, it will fail most of the other tests. >> >> pr = server.executeJavawsHeadless(l, "/MainJarWithMatchingSignedJnlpTemplate.jnlp"); >> s = "Ending signed application_template in main"; >> Assert.assertTrue("Could not locate SignedJnlpApplicationTemplate class within MainJarWithMatchingSignedJnlpTemplate jar", pr.stdout.contains(s)); > > How is MainJarWithMatchingSignedJnlpTemplate.jnlp being used in the test other than this ? > If this is aiming to test that it runs correctly than it should be its own test imo. This is used to ensure SignedJnlpApplicationTemplate class within SignedJnlpResource2.jar is found (not really testing the functionality). The above assert message is incorrect and misleading, I will definitely change this when I update the patch. This is the only place that MainJarWithMatchingSignedJnlpTemplate.jnlp is being used in the test to determine whether SignedJnlpResource2.jar (with SignedJnlpApplicationTemplate.class) is found in the test build directory. If we did this check with a jnlp file that did NOT match the signed jnlp, an exception would be thrown and the launch would be aborted. But if the signed jnlp validator ever malfunctions, it may fail to throw an exception. That's why using a matching jnlp is much more reasonable for this check IMO. I don't think we would need to use this jnlp to test anything else since it also indirectly validates whether an application runs 'normally' with a matching jnlp. > >> >> pr = server.executeJavawsHeadless(l, "/MainJarWithMatchingSignedJnlp.jnlp"); >> s = "Ending signed application in main"; >> Assert.assertTrue("Could not locate SignedJnlpApplication class within SignedJnlpMultipleJars jar", pr.stdout.contains( > > >> } >> >> @Test >> public void mainJarWithUnmatchingSignedJnlpApplication() throws Exception { >> ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/MainJarWithUnmatchingSignedJnlp.jnlp"); >> Assert.assertTrue("Stdout should contains " + signedJnlpException + " but did not", pr.stderr.contains(signedJnlpException)); > contains -> contain, same below. Hehe :P > [snip] -- Cheers, Saad Mohammad From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 02:20:29 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 09:20:29 +0000 Subject: [Bug 843] www.mojebanka.cz hangs with icedtea-web In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=843 --- Comment #30 from Lukas Jirkovsky --- Created attachment 731 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=731&action=edit Log with IcedTea7 2.2.1 I experience this bug with IcedTea 7 too. It works with Java from Oracle. A log is attached. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/4dd681e5/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 02:39:06 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 09:39:06 +0000 Subject: [Bug 1093] New: Problematic frame for java.lang.StringCoding$StringEncoder.encode leads to fatal error. Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1093 Priority: P3 Bug ID: 1093 Assignee: unassigned at icedtea.classpath.org Summary: Problematic frame for java.lang.StringCoding$StringEncoder.encode leads to fatal error. Severity: normal Classification: Unclassified OS: Linux Reporter: augustdumatubun at gmail.com Hardware: x86 Status: NEW Version: unspecified Component: IcedTea Product: IcedTea I use Freeplane a mindmapping tool. Loading a Freeplane file does not succeed and results in a fatal error and a log file like the one below. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xb4a345ac, pid=5824, tid=2411391856 # # JRE version: 6.0_24-b24 # Java VM: OpenJDK Client VM (20.0-b12 mixed mode linux-x86 ) # Derivative: IcedTea6 1.11.3 # Distribution: Dummy Product (i586), package suse-6.2-i386 # Problematic frame: # J java.lang.StringCoding$StringEncoder.encode([CII)[B # # If you would like to submit a bug report, please include # instructions how to reproduce the bug and visit: # http://icedtea.classpath.org/bugzilla # --------------- T H R E A D --------------- Current thread (0x9016dc00): JavaThread "Java2D Disposer" daemon [_thread_in_Java, id=5834, stack(0x8fb5f000,0x8fbaf000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x47504f5b Registers: EAX=0x90944450, EBX=0x909c8bc0, ECX=0x00000000, EDX=0x47504f53 ESP=0x8fbad9b0, EBP=0x8fbadb18, ESI=0x00000000, EDI=0x00000000 EIP=0xb4a345ac, EFLAGS=0x00210246, CR2=0x47504f5b Top of Stack: (sp=0x8fbad9b0) 0x8fbad9b0: 00000000 00003358 00003358 909c8bc0 0x8fbad9c0: 00000000 00000000 b0a1b7d8 00000000 0x8fbad9d0: 8fbad9dc 8fbada0c b4902e21 b4902e21 0x8fbad9e0: 9b3cea18 909443c0 8fbad9e8 b0a1cc1d 0x8fbad9f0: 8fbada14 b0a1de90 00000000 b0a1cc48 0x8fbada00: 00000000 8fbada10 909443c0 47504f53 0x8fbada10: 909443a8 909c8bc0 90944420 00003358 0x8fbada20: b0a31b64 8fbada4c 90944320 90944388 Instructions: (pc=0xb4a345ac) 0xb4a3458c: 89 79 34 8b 4a 64 89 08 89 50 04 33 c9 bf 05 00 0xb4a3459c: 00 00 89 4c f8 04 89 0c f8 4f 75 f6 8b 54 24 5c 0xb4a345ac: 8b 4a 08 8b b4 24 a0 00 00 00 03 b4 24 a4 00 00 0xb4a345bc: 00 ba ff ff ff ff 8b 9c 24 a0 00 00 00 89 1c 24 Register to memory mapping: EAX= [error occurred during error reporting (printing register info), id 0xb] Stack: [0x8fb5f000,0x8fbaf000], sp=0x8fbad9b0, free space=314k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) J java.lang.StringCoding$StringEncoder.encode([CII)[B V [libjvm.so+0x2101f6] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x2c6 --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x8f426000 JavaThread "(Tue Jul 24 22:06:23 WIT 2012)" [_thread_blocked, id=6209, stack(0x8f3b0000,0x8f400000)] 0x8f428000 JavaThread "TimerForAutomaticSaving(Tue Jul 24 22:06:13 WIT 2012)" [_thread_blocked, id=6199, stack(0x8f26e000,0x8f2be000)] 0x903d7000 JavaThread "Timer-1" daemon [_thread_blocked, id=6112, stack(0x8f558000,0x8f5a8000)] 0x903d0800 JavaThread "Timer-0" [_thread_blocked, id=6111, stack(0x8f5b0000,0x8f600000)] 0x903ef400 JavaThread "TimerForAutomaticSaving(Tue Jul 24 21:53:25 WIT 2012)" [_thread_blocked, id=5847, stack(0x8f360000,0x8f3b0000)] 0xb6904000 JavaThread "DestroyJavaVM" [_thread_blocked, id=5825, stack(0xb6afe000,0xb6b4e000)] 0x8f644c00 JavaThread "TimerQueue" daemon [_thread_blocked, id=5843, stack(0x8f7eb000,0x8f83b000)] 0x901fd000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=5838, stack(0x8f74b000,0x8f79b000)] 0x8f621400 JavaThread "AWT-Shutdown" [_thread_blocked, id=5837, stack(0x8f79b000,0x8f7eb000)] 0x901e7400 JavaThread "AWT-XAWT" daemon [_thread_in_native, id=5835, stack(0x8f83b000,0x8f88b000)] =>0x9016dc00 JavaThread "Java2D Disposer" daemon [_thread_in_Java, id=5834, stack(0x8fb5f000,0x8fbaf000)] 0xb69c2800 JavaThread "startlevel job thread" [_thread_blocked, id=5833, stack(0x8ffe0000,0x90030000)] 0xb696e400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5831, stack(0x900b0000,0x90100000)] 0xb696c800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=5830, stack(0x90230000,0x902b0000)] 0xb696b000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5829, stack(0x902b0000,0x90300000)] 0xb695b400 JavaThread "Finalizer" daemon [_thread_blocked, id=5828, stack(0x90451000,0x904a1000)] 0xb6959c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=5827, stack(0x904a1000,0x904f1000)] Other Threads: 0xb6955c00 VMThread [stack: 0x904f1000,0x90571000] [id=5826] 0xb6970c00 WatcherThread [stack: 0x90030000,0x900b0000] [id=5832] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 8640K, used 841K [0x90900000, 0x91250000, 0x9b3a0000) eden space 7744K, 10% used [0x90900000, 0x909d26c0, 0x91090000) from space 896K, 0% used [0x91090000, 0x91090000, 0x91170000) to space 896K, 0% used [0x91170000, 0x91170000, 0x91250000) tenured generation total 18988K, used 11391K [0x9b3a0000, 0x9c62b000, 0xb0900000) the space 18988K, 59% used [0x9b3a0000, 0x9bebfc80, 0x9bebfe00, 0x9c62b000) compacting perm gen total 23040K, used 22945K [0xb0900000, 0xb1f80000, 0xb4900000) the space 23040K, 99% used [0xb0900000, 0xb1f68740, 0xb1f68800, 0xb1f80000) No shared spaces configured. Code Cache [0xb4900000, 0xb4c88000, 0xb6900000) total_blobs=2317 nmethods=2020 adapters=230 free_code_cache=29874432 largest_free_block=320 Dynamic libraries: 08048000-08051000 r-xp 00000000 08:02 800347 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/bin/java 08051000-08052000 r--p 00008000 08:02 800347 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/bin/java 08052000-08053000 rw-p 00009000 08:02 800347 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/bin/java 08053000-081ed000 rw-p 00000000 00:00 0 [heap] 8ec00000-8eca7000 rw-p 00000000 00:00 0 8eca7000-8ed00000 ---p 00000000 00:00 0 8ed35000-8ef5b000 rw-s 00000000 00:04 2654210 /SYSV00000000 (deleted) 8f100000-8f129000 rw-p 00000000 00:00 0 8f129000-8f200000 ---p 00000000 00:00 0 8f26e000-8f271000 ---p 00000000 00:00 0 8f271000-8f2be000 rw-p 00000000 00:00 0 8f2be000-8f2c1000 ---p 00000000 00:00 0 8f2c1000-8f30e000 rw-p 00000000 00:00 0 8f30e000-8f34e000 r-xp 00000000 08:02 405063 /usr/lib/libjpeg.so.62.0.0 8f34e000-8f34f000 r--p 00040000 08:02 405063 /usr/lib/libjpeg.so.62.0.0 8f34f000-8f350000 rw-p 00041000 08:02 405063 /usr/lib/libjpeg.so.62.0.0 8f350000-8f360000 rw-p 00000000 00:00 0 8f360000-8f363000 ---p 00000000 00:00 0 8f363000-8f3b0000 rw-p 00000000 00:00 0 8f3b0000-8f3b3000 ---p 00000000 00:00 0 8f3b3000-8f400000 rw-p 00000000 00:00 0 8f400000-8f4f9000 rw-p 00000000 00:00 0 8f4f9000-8f500000 ---p 00000000 00:00 0 8f508000-8f50b000 ---p 00000000 00:00 0 8f50b000-8f558000 rw-p 00000000 00:00 0 8f558000-8f55b000 ---p 00000000 00:00 0 8f55b000-8f5a8000 rw-p 00000000 00:00 0 8f5b0000-8f5b3000 ---p 00000000 00:00 0 8f5b3000-8f600000 rw-p 00000000 00:00 0 8f600000-8f6fd000 rw-p 00000000 00:00 0 8f6fd000-8f700000 ---p 00000000 00:00 0 8f74b000-8f74e000 ---p 00000000 00:00 0 8f74e000-8f79b000 rw-p 00000000 00:00 0 8f79b000-8f79e000 ---p 00000000 00:00 0 8f79e000-8f7eb000 rw-p 00000000 00:00 0 8f7eb000-8f7ee000 ---p 00000000 00:00 0 8f7ee000-8f83b000 rw-p 00000000 00:00 0 8f83b000-8f83e000 ---p 00000000 00:00 0 8f83e000-8f88b000 rw-p 00000000 00:00 0 8f88b000-8f88d000 r--s 00000000 08:02 1063708 /var/cache/fontconfig/2bf03b535467847c365478f415493282-i586.cache-3 8f88d000-8f895000 r--s 00000000 08:02 1063707 /var/cache/fontconfig/8f02d4cb045bd6ce15663e43f347c9f8-i586.cache-3 8f895000-8f89d000 r--s 00000000 08:02 1063694 /var/cache/fontconfig/d2eadfece6187a572cd05e68318efbe0-i586.cache-3 8f89d000-8f89f000 r--s 00000000 08:02 1063705 /var/cache/fontconfig/9046c764dc2991228e881adf8c1b7f46-i586.cache-3 8f89f000-8f8a0000 r--s 00000000 08:02 1063704 /var/cache/fontconfig/ecdb0ae0d163bbfb2b1e36ffe572f7d3-i586.cache-3 8f8a0000-8f8a1000 r--s 00000000 08:02 1063699 /var/cache/fontconfig/77892aee8d1542a17bdf9baacc88a307-i586.cache-3 8f8a1000-8f8a3000 r--s 00000000 08:02 1063701 /var/cache/fontconfig/e5ed14aea64339901b166aebae3840d1-i586.cache-3 8f8a3000-8f8a5000 r--s 00000000 08:02 1063700 /var/cache/fontconfig/f18e1a0d9037c8a128283de041cd561c-i586.cache-3 8f8a5000-8f8b9000 r--s 00000000 08:02 1063703 /var/cache/fontconfig/467c019e582ee353435ea5c21d137ef6-i586.cache-3 8f8b9000-8f8c6000 r--s 00000000 08:02 1063698 /var/cache/fontconfig/573380a29a0577b9fa81ed92e885a22d-i586.cache-3 8f8c6000-8f8cf000 r--s 00000000 08:02 1063695 /var/cache/fontconfig/bfb79708dbcbc0941bf341e2bd96af26-i586.cache-3 8f8cf000-8f8da000 r--s 00000000 08:02 1063693 /var/cache/fontconfig/c8949cabc08ab434d79274b24618eeea-i586.cache-3 8f8da000-8f91b000 r--s 00000000 08:02 1061525 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-i586.cache-3 8f91b000-8f93d000 r--s 00000000 08:02 1050750 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-i586.cache-3 8f93d000-8f97e000 r--s 00000000 08:02 1061523 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-i586.cache-3 8f9ae000-8f9b3000 r-xp 00000000 08:02 397347 /usr/lib/libXfixes.so.3.1.0 8f9b3000-8f9b4000 r--p 00004000 08:02 397347 /usr/lib/libXfixes.so.3.1.0 8f9b4000-8f9b5000 rw-p 00005000 08:02 397347 /usr/lib/libXfixes.so.3.1.0 8f9b5000-8f9be000 r-xp 00000000 08:02 397358 /usr/lib/libXcursor.so.1.0.2 8f9be000-8f9bf000 r--p 00008000 08:02 397358 /usr/lib/libXcursor.so.1.0.2 8f9bf000-8f9c0000 rw-p 00009000 08:02 397358 /usr/lib/libXcursor.so.1.0.2 8f9c1000-8f9ca000 r-xp 00000000 08:02 920597 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjpeg.so 8f9ca000-8f9cb000 r--p 00008000 08:02 920597 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjpeg.so 8f9cb000-8f9cc000 rw-p 00009000 08:02 920597 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjpeg.so 8f9cc000-8f9da000 r--s 00351000 08:02 800452 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/charsets.jar 8f9da000-8f9dd000 r--s 00077000 08:02 940440 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/ext/localedata.jar 8f9dd000-8f9df000 r--s 00000000 08:02 1063708 /var/cache/fontconfig/2bf03b535467847c365478f415493282-i586.cache-3 8f9df000-8f9e7000 r--s 00000000 08:02 1063707 /var/cache/fontconfig/8f02d4cb045bd6ce15663e43f347c9f8-i586.cache-3 8f9e7000-8f9ef000 r--s 00000000 08:02 1063694 /var/cache/fontconfig/d2eadfece6187a572cd05e68318efbe0-i586.cache-3 8f9ef000-8f9f1000 r--s 00000000 08:02 1063705 /var/cache/fontconfig/9046c764dc2991228e881adf8c1b7f46-i586.cache-3 8f9f1000-8f9f2000 r--s 00000000 08:02 1063704 /var/cache/fontconfig/ecdb0ae0d163bbfb2b1e36ffe572f7d3-i586.cache-3 8f9f2000-8f9f3000 r--s 00000000 08:02 1063699 /var/cache/fontconfig/77892aee8d1542a17bdf9baacc88a307-i586.cache-3 8f9f3000-8f9f5000 r--s 00000000 08:02 1063701 /var/cache/fontconfig/e5ed14aea64339901b166aebae3840d1-i586.cache-3 8f9f5000-8f9f7000 r--s 00000000 08:02 1063700 /var/cache/fontconfig/f18e1a0d9037c8a128283de041cd561c-i586.cache-3 8f9f7000-8fa0b000 r--s 00000000 08:02 1063703 /var/cache/fontconfig/467c019e582ee353435ea5c21d137ef6-i586.cache-3 8fa0b000-8fa18000 r--s 00000000 08:02 1063698 /var/cache/fontconfig/573380a29a0577b9fa81ed92e885a22d-i586.cache-3 8fa18000-8fa19000 r--s 00000000 08:02 1063697 /var/cache/fontconfig/8cb4ed1bb8bf5538f99e4a6641fad075-i586.cache-3 8fa19000-8fa1a000 r--s 00000000 08:02 1063696 /var/cache/fontconfig/3d950db533f4d42626c39c5c01a7f913-i586.cache-3 8fa1a000-8fa23000 r--s 00000000 08:02 1063695 /var/cache/fontconfig/bfb79708dbcbc0941bf341e2bd96af26-i586.cache-3 8fa23000-8fa2e000 r--s 00000000 08:02 1063693 /var/cache/fontconfig/c8949cabc08ab434d79274b24618eeea-i586.cache-3 8fa2e000-8fa35000 r--s 00000000 08:02 1061485 /var/cache/fontconfig/77e41c5059666d75f92e318d4be8c21e-i586.cache-3 8fa35000-8fa76000 r--s 00000000 08:02 1061525 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-i586.cache-3 8fa76000-8fa77000 r--s 00000000 08:02 1050748 /var/cache/fontconfig/6ba42ae0000f58711b5caaf10d690066-i586.cache-3 8fa77000-8fa99000 r--s 00000000 08:02 1050750 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-i586.cache-3 8fa99000-8faba000 r--s 00000000 08:02 1070869 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-i586.cache-3 8faba000-8fabf000 r--s 00000000 08:02 1061526 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-i586.cache-3 8fabf000-8fb00000 r--s 00000000 08:02 1061523 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-i586.cache-3 8fb01000-8fb08000 r--s 00000000 08:02 1061485 /var/cache/fontconfig/77e41c5059666d75f92e318d4be8c21e-i586.cache-3 8fb08000-8fb29000 r--s 00000000 08:02 1070869 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-i586.cache-3 8fb29000-8fb3e000 r--s 00000000 08:03 13631716 /home/august/.fontconfig/30453052f490d5e9d26444dba28c179b-i586.cache-3 8fb3e000-8fb46000 r-xp 00000000 08:02 940445 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libnio.so 8fb46000-8fb47000 r--p 00007000 08:02 940445 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libnio.so 8fb47000-8fb48000 rw-p 00008000 08:02 940445 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libnio.so 8fb48000-8fb5d000 r-xp 00000000 08:02 920604 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libnet.so 8fb5d000-8fb5e000 r--p 00014000 08:02 920604 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libnet.so 8fb5e000-8fb5f000 rw-p 00015000 08:02 920604 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libnet.so 8fb5f000-8fb62000 ---p 00000000 00:00 0 8fb62000-8fbaf000 rw-p 00000000 00:00 0 8fbaf000-8fc33000 r-xp 00000000 08:02 401364 /usr/lib/libfreetype.so.6.7.2 8fc33000-8fc37000 r--p 00083000 08:02 401364 /usr/lib/libfreetype.so.6.7.2 8fc37000-8fc38000 rw-p 00087000 08:02 401364 /usr/lib/libfreetype.so.6.7.2 8fc38000-8fc72000 r-xp 00000000 08:02 920585 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libfontmanager.so 8fc72000-8fc73000 r--p 00039000 08:02 920585 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libfontmanager.so 8fc73000-8fc74000 rw-p 0003a000 08:02 920585 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libfontmanager.so 8fc74000-8fc76000 r-xp 00000000 08:02 405127 /usr/lib/libXau.so.6.0.0 8fc76000-8fc77000 r--p 00001000 08:02 405127 /usr/lib/libXau.so.6.0.0 8fc77000-8fc78000 rw-p 00002000 08:02 405127 /usr/lib/libXau.so.6.0.0 8fc78000-8fc96000 r-xp 00000000 08:02 405108 /usr/lib/libxcb.so.1.1.0 8fc96000-8fc97000 r--p 0001d000 08:02 405108 /usr/lib/libxcb.so.1.1.0 8fc97000-8fc98000 rw-p 0001e000 08:02 405108 /usr/lib/libxcb.so.1.1.0 8fc98000-8fca6000 r-xp 00000000 08:02 397339 /usr/lib/libXi.so.6.1.0 8fca6000-8fca7000 r--p 0000d000 08:02 397339 /usr/lib/libXi.so.6.1.0 8fca7000-8fca8000 rw-p 0000e000 08:02 397339 /usr/lib/libXi.so.6.1.0 8fca8000-8fcad000 r-xp 00000000 08:02 397365 /usr/lib/libXtst.so.6.1.0 8fcad000-8fcae000 r--p 00004000 08:02 397365 /usr/lib/libXtst.so.6.1.0 8fcae000-8fcaf000 rw-p 00005000 08:02 397365 /usr/lib/libXtst.so.6.1.0 8fcaf000-8fcb8000 r-xp 00000000 08:02 397379 /usr/lib/libXrender.so.1.3.0 8fcb8000-8fcb9000 r--p 00008000 08:02 397379 /usr/lib/libXrender.so.1.3.0 8fcb9000-8fcba000 rw-p 00009000 08:02 397379 /usr/lib/libXrender.so.1.3.0 8fcba000-8fdf2000 r-xp 00000000 08:02 403211 /usr/lib/libX11.so.6.3.0 8fdf2000-8fdf3000 r--p 00137000 08:02 403211 /usr/lib/libX11.so.6.3.0 8fdf3000-8fdf6000 rw-p 00138000 08:02 403211 /usr/lib/libX11.so.6.3.0 8fdf6000-8fe06000 r-xp 00000000 08:02 405143 /usr/lib/libXext.so.6.4.0 8fe06000-8fe07000 r--p 00010000 08:02 405143 /usr/lib/libXext.so.6.4.0 8fe07000-8fe08000 rw-p 00011000 08:02 405143 /usr/lib/libXext.so.6.4.0 8fe08000-8fe09000 r--s 00000000 08:02 1063697 /var/cache/fontconfig/8cb4ed1bb8bf5538f99e4a6641fad075-i586.cache-3 8fe09000-8fe0a000 r--s 00000000 08:02 1063696 /var/cache/fontconfig/3d950db533f4d42626c39c5c01a7f913-i586.cache-3 8fe0a000-8fe0b000 r--s 00000000 08:02 1050748 /var/cache/fontconfig/6ba42ae0000f58711b5caaf10d690066-i586.cache-3 8fe0b000-8fe10000 r--s 00000000 08:02 1061526 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-i586.cache-3 8fe10000-8fe25000 r--s 00000000 08:03 13631716 /home/august/.fontconfig/30453052f490d5e9d26444dba28c179b-i586.cache-3 8fe25000-8fe72000 r-xp 00000000 08:02 920618 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/xawt/libmawt.so 8fe72000-8fe73000 r--p 0004d000 08:02 920618 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/xawt/libmawt.so 8fe73000-8fe75000 rw-p 0004e000 08:02 920618 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/xawt/libmawt.so 8fe75000-8fe76000 rw-p 00000000 00:00 0 8fe76000-8ff0b000 r-xp 00000000 08:02 920583 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libawt.so 8ff0b000-8ff0c000 r--p 00094000 08:02 920583 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libawt.so 8ff0c000-8ff13000 rw-p 00095000 08:02 920583 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libawt.so 8ff13000-8ff37000 rw-p 00000000 00:00 0 8ff37000-8ff3c000 r--s 00010000 08:03 13659217 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/xml-apis-ext.jar 8ff3c000-8ff3d000 r--s 00003000 08:03 13659215 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/plugin.jar 8ff3d000-8ff45000 r--s 00028000 08:03 13659218 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/xml-apis.jar 8ff45000-8ff58000 r--s 000d2000 08:03 13659216 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/xerces_2_5_0.jar 8ff58000-8ff63000 r--s 000ad000 08:03 13659214 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/pdf-transcoder.jar 8ff63000-8ff6b000 r--s 00074000 08:03 13659213 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/js.jar 8ff6b000-8ff6c000 r--s 00007000 08:03 13659211 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-xml.jar 8ff6c000-8ff6f000 r--s 0001d000 08:03 13659210 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-util.jar 8ff6f000-8ff71000 r--s 0001c000 08:03 13659209 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-transcoder.jar 8ff71000-8ff77000 r--s 00028000 08:03 13659208 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-swing.jar 8ff77000-8ff7c000 r--s 00030000 08:03 13659207 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-svggen.jar 8ff7c000-8ff89000 r--s 00087000 08:03 13659206 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-svg-dom.jar 8ff89000-8ff8c000 r--s 00026000 08:03 13659185 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-codec.jar 8ff8c000-8ff8f000 r--s 00015000 08:03 13659181 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-anim.jar 8ff8f000-8ff92000 r--s 0000d000 08:03 13659205 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-script.jar 8ff92000-8ff96000 r--s 00038000 08:03 13659199 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-gvt.jar 8ff96000-8ff9c000 r--s 00024000 08:03 13659198 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-gui-util.jar 8ff9c000-8ffa0000 r--s 00027000 08:03 13659189 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-dom.jar 8ffa0000-8ffa8000 r--s 00045000 08:03 13659188 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-css.jar 8ffa8000-8ffb2000 r--s 00080000 08:03 13659183 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-bridge.jar 8ffb2000-8ffb9000 r--s 0005c000 08:03 13659182 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-awt-util.jar 8ffb9000-8ffe0000 r--s 00291000 08:03 13659172 /home/august/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all-1.5.6.jar 8ffe0000-8ffe3000 ---p 00000000 00:00 0 8ffe3000-90030000 rw-p 00000000 00:00 0 90030000-90031000 ---p 00000000 00:00 0 90031000-900b0000 rw-p 00000000 00:00 0 900b0000-900b3000 ---p 00000000 00:00 0 900b3000-90100000 rw-p 00000000 00:00 0 90100000-901ff000 rw-p 00000000 00:00 0 901ff000-90200000 ---p 00000000 00:00 0 90200000-90207000 r--s 000d9000 08:03 13659160 /home/august/freeplane/plugins/org.freeplane.plugin.latex/lib/jlatexmath.jar 90207000-9021a000 r--s 00166000 08:03 13632272 /home/august/freeplane/core/org.freeplane.core/lib/freeplaneeditor.jar 9021a000-90230000 r--s 00105000 08:03 13657745 /home/august/freeplane/core/org.freeplane.core/lib/freeplaneviewer.jar 90230000-90233000 ---p 00000000 00:00 0 90233000-902b0000 rw-p 00000000 00:00 0 902b0000-902b3000 ---p 00000000 00:00 0 902b3000-90300000 rw-p 00000000 00:00 0 90300000-90400000 rw-p 00000000 00:00 0 90400000-90402000 r--s 00010000 08:03 13659204 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-parser.jar 90402000-90404000 r--s 0000f000 08:03 13659195 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-extension.jar 90404000-90407000 r--s 00015000 08:03 13659174 /home/august/freeplane/plugins/org.freeplane.plugin.script/lib/plugin.jar 90407000-9040a000 r--s 0000d000 08:03 13657802 /home/august/freeplane/core/org.freeplane.core/lib/jortho.jar 9040a000-90412000 r--s 0005d000 08:03 13642719 /home/august/freeplane/core/org.freeplane.core/lib/SimplyHTML.jar 90412000-90451000 r--p 00000000 08:02 662085 /usr/lib/locale/en_US.utf8/LC_CTYPE 90451000-90454000 ---p 00000000 00:00 0 90454000-904a1000 rw-p 00000000 00:00 0 904a1000-904a4000 ---p 00000000 00:00 0 904a4000-904f1000 rw-p 00000000 00:00 0 904f1000-904f2000 ---p 00000000 00:00 0 904f2000-905a4000 rw-p 00000000 00:00 0 905a4000-90734000 r--s 037bc000 08:02 800496 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/rt.jar 90734000-9073e000 rw-p 00000000 00:00 0 9073e000-907df000 rw-p 00000000 00:00 0 907df000-907e4000 rw-p 00000000 00:00 0 907e4000-90834000 rw-p 00000000 00:00 0 90834000-9083e000 rw-p 00000000 00:00 0 9083e000-908df000 rw-p 00000000 00:00 0 908df000-908eb000 rw-p 00000000 00:00 0 908eb000-908ff000 rw-p 00000000 00:00 0 908ff000-91250000 rw-p 00000000 00:00 0 91250000-9b3a0000 rw-p 00000000 00:00 0 9b3a0000-9c62b000 rw-p 00000000 00:00 0 9c62b000-b0900000 rw-p 00000000 00:00 0 b0900000-b1f80000 rw-p 00000000 00:00 0 b1f80000-b4900000 rw-p 00000000 00:00 0 b4900000-b4c88000 rwxp 00000000 00:00 0 b4c88000-b69fb000 rw-p 00000000 00:00 0 b69fb000-b6a00000 ---p 00000000 00:00 0 b6a00000-b6a01000 r--s 00002000 08:03 13659193 /home/august/freeplane/plugins/org.freeplane.plugin.svg/lib/batik-ext.jar b6a01000-b6a02000 r--s 00002000 08:03 13659162 /home/august/freeplane/plugins/org.freeplane.plugin.latex/lib/plugin.jar b6a02000-b6a04000 r--s 00006000 08:03 13657793 /home/august/freeplane/core/org.freeplane.core/lib/gnu-regexp-1.1.4.jar b6a04000-b6a06000 r--s 00013000 08:03 13642812 /home/august/freeplane/core/org.freeplane.core/lib/forms-1.0.5.jar b6a06000-b6a09000 r--s 00027000 08:03 13642809 /home/august/freeplane/core/org.freeplane.core/lib/commons-lang-2.0.jar b6a09000-b6a0a000 r--s 00001000 08:03 13642840 /home/august/freeplane/core/org.freeplane.core/lib/freeplaneosgi.jar b6a0a000-b6a0b000 r--s 00000000 08:03 13642816 /home/august/freeplane/core/org.freeplane.core/lib/freeplanemac.jar b6a0b000-b6a12000 r--s 000fb000 08:02 800494 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/resources.jar b6a12000-b6a14000 r--s 00001000 08:02 920403 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/ext/dnsns.jar b6a14000-b6a17000 r--s 0007d000 08:02 800480 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/jsse.jar b6a17000-b6a19000 r--s 0000f000 08:02 920416 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/ext/pulse-java.jar b6a19000-b6a20000 r--s 00000000 08:02 705070 /usr/lib/gconv/gconv-modules.cache b6a20000-b6a2c000 rw-p 00000000 00:00 0 b6a2c000-b6a41000 rw-p 00000000 00:00 0 b6a41000-b6a50000 rw-p 00000000 00:00 0 b6a50000-b6ac1000 rw-p 00000000 00:00 0 b6ac1000-b6ac8000 r-xp 00000000 08:02 940448 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libzip.so b6ac8000-b6ac9000 r--p 00006000 08:02 940448 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libzip.so b6ac9000-b6aca000 rw-p 00007000 08:02 940448 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libzip.so b6aca000-b6af2000 r-xp 00000000 08:02 920593 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjava.so b6af2000-b6af3000 r--p 00027000 08:02 920593 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjava.so b6af3000-b6af5000 rw-p 00028000 08:02 920593 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjava.so b6af5000-b6afc000 r-xp 00000000 08:02 566889 /lib/librt-2.14.1.so b6afc000-b6afd000 r--p 00006000 08:02 566889 /lib/librt-2.14.1.so b6afd000-b6afe000 rw-p 00007000 08:02 566889 /lib/librt-2.14.1.so b6afe000-b6b01000 ---p 00000000 00:00 0 b6b01000-b6b4e000 rw-p 00000000 00:00 0 b6b4e000-b6b6a000 r-xp 00000000 08:02 528555 /lib/libgcc_s.so.1 b6b6a000-b6b6b000 r--p 0001b000 08:02 528555 /lib/libgcc_s.so.1 b6b6b000-b6b6c000 rw-p 0001c000 08:02 528555 /lib/libgcc_s.so.1 b6b6c000-b6b95000 r-xp 00000000 08:02 566869 /lib/libm-2.14.1.so b6b95000-b6b96000 r--p 00028000 08:02 566869 /lib/libm-2.14.1.so b6b96000-b6b97000 rw-p 00029000 08:02 566869 /lib/libm-2.14.1.so b6b97000-b6c79000 r-xp 00000000 08:02 403254 /usr/lib/libstdc++.so.6.0.16 b6c79000-b6c7d000 r--p 000e2000 08:02 403254 /usr/lib/libstdc++.so.6.0.16 b6c7d000-b6c7e000 rw-p 000e6000 08:02 403254 /usr/lib/libstdc++.so.6.0.16 b6c7e000-b6c85000 rw-p 00000000 00:00 0 b6c85000-b719c000 r-xp 00000000 08:02 920578 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/client/libjvm.so b719c000-b71b3000 r--p 00516000 08:02 920578 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/client/libjvm.so b71b3000-b71c0000 rw-p 0052d000 08:02 920578 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/client/libjvm.so b71c0000-b75d9000 rw-p 00000000 00:00 0 b75d9000-b75ef000 r-xp 00000000 08:02 525322 /lib/libz.so.1.2.5 b75ef000-b75f0000 r--p 00015000 08:02 525322 /lib/libz.so.1.2.5 b75f0000-b75f1000 rw-p 00016000 08:02 525322 /lib/libz.so.1.2.5 b75f1000-b7758000 r-xp 00000000 08:02 525340 /lib/libc-2.14.1.so b7758000-b775a000 r--p 00167000 08:02 525340 /lib/libc-2.14.1.so b775a000-b775b000 rw-p 00169000 08:02 525340 /lib/libc-2.14.1.so b775b000-b775f000 rw-p 00000000 00:00 0 b775f000-b7762000 r-xp 00000000 08:02 566867 /lib/libdl-2.14.1.so b7762000-b7763000 r--p 00002000 08:02 566867 /lib/libdl-2.14.1.so b7763000-b7764000 rw-p 00003000 08:02 566867 /lib/libdl-2.14.1.so b7764000-b7768000 r-xp 00000000 08:02 921853 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/jli/libjli.so b7768000-b7769000 r--p 00003000 08:02 921853 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/jli/libjli.so b7769000-b776a000 rw-p 00004000 08:02 921853 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/jli/libjli.so b776a000-b7781000 r-xp 00000000 08:02 566885 /lib/libpthread-2.14.1.so b7781000-b7782000 r--p 00016000 08:02 566885 /lib/libpthread-2.14.1.so b7782000-b7783000 rw-p 00017000 08:02 566885 /lib/libpthread-2.14.1.so b7783000-b7785000 rw-p 00000000 00:00 0 b7785000-b778b000 r--s 00056000 08:03 13659135 /home/august/freeplane/framework.jar b778b000-b7793000 rw-s 00000000 08:02 922745 /tmp/hsperfdata_august/5824 b7793000-b7794000 rw-p 00000000 00:00 0 b7794000-b7795000 r--p 00000000 00:00 0 b7795000-b77a0000 r-xp 00000000 08:02 920612 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libverify.so b77a0000-b77a1000 r--p 0000b000 08:02 920612 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libverify.so b77a1000-b77a2000 rw-p 0000c000 08:02 920612 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libverify.so b77a2000-b77a3000 rw-p 00000000 00:00 0 b77a3000-b77c2000 r-xp 00000000 08:02 566860 /lib/ld-2.14.1.so b77c2000-b77c3000 r--p 0001f000 08:02 566860 /lib/ld-2.14.1.so b77c3000-b77c4000 rw-p 00020000 08:02 566860 /lib/ld-2.14.1.so bfddd000-bfe14000 rw-p 00000000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] VM Arguments: jvm_args: -Xmx512m -Dorg.freeplane.param1= -Dorg.freeplane.param2= -Dorg.freeplane.param3= -Dorg.freeplane.param4= -Dorg.knopflerfish.framework.bundlestorage=memory -Dorg.freeplane.globalresourcedir=/home/august/freeplane/resources -Dorg.knopflerfish.gosg.jars=reference:file:/home/august/freeplane/core/ java_command: /home/august/freeplane/framework.jar -xargs /home/august/freeplane/props.xargs -xargs /home/august/freeplane/init.xargs Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/lib/jvm/java JRE_HOME=/usr/lib/jvm/jre PATH=/usr/lib/mpi/gcc/openmpi/bin:/home/august/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games USERNAME=august LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/../lib/i386:/usr/lib/mpi/gcc/openmpi/lib SHELL=/bin/bash DISPLAY=:0 HOSTTYPE=i386 OSTYPE=linux MACHTYPE=i686-suse-linux Signal Handlers: SIGSEGV: [libjvm.so+0x3e6f00], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGBUS: [libjvm.so+0x3e6f00], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGFPE: [libjvm.so+0x303830], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGPIPE: [libjvm.so+0x303830], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGXFSZ: [libjvm.so+0x303830], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGILL: [libjvm.so+0x303830], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x3036c0], sa_mask[0]=0x00000000, sa_flags=0x10000004 SIGHUP: [libjvm.so+0x306710], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGINT: [libjvm.so+0x306710], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGTERM: [libjvm.so+0x306710], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGQUIT: [libjvm.so+0x306710], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 --------------- S Y S T E M --------------- OS:openSUSE 12.1 (i586) VERSION = 12.1 CODENAME = Asparagus uname:Linux 3.1.10-1.16-desktop #1 SMP PREEMPT Wed Jun 27 05:21:40 UTC 2012 (d016078) i686 libc:glibc 2.14.1 NPTL 2.14.1 rlimit: STACK 8192k, CORE 0k, NPROC 5683, NOFILE 4096, AS infinity load average:2.56 2.53 2.59 /proc/meminfo: MemTotal: 741020 kB MemFree: 60044 kB Buffers: 760 kB Cached: 416968 kB SwapCached: 14028 kB Active: 306956 kB Inactive: 309836 kB Active(anon): 99304 kB Inactive(anon): 101940 kB Active(file): 207652 kB Inactive(file): 207896 kB Unevictable: 16 kB Mlocked: 16 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 741020 kB LowFree: 60044 kB SwapTotal: 2103292 kB SwapFree: 1878092 kB Dirty: 28184 kB Writeback: 0 kB AnonPages: 193596 kB Mapped: 212348 kB Shmem: 1992 kB Slab: 35408 kB SReclaimable: 18176 kB SUnreclaim: 17232 kB KernelStack: 2680 kB PageTables: 4380 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 2473800 kB Committed_AS: 1326080 kB VmallocTotal: 257016 kB VmallocUsed: 18520 kB VmallocChunk: 237320 kB HardwareCorrupted: 0 kB AnonHugePages: 122880 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 48128 kB DirectMap2M: 720896 kB CPU:total 2 (2 cores per cpu, 1 threads per core) family 20 model 1 stepping 0, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, popcnt, mmxext, lzcnt, sse4a Memory: 4k page, physical 741020k(60044k free), swap 2103292k(1878092k free) vm_info: OpenJDK Client VM (20.0-b12) for linux-x86 JRE (1.6.0_24-b24), built on Jun 19 2012 23:13:49 by "abuild" with gcc 4.6.2 time: Tue Jul 24 22:06:23 2012 elapsed time: 804 seconds -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/15b27a48/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 03:37:38 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 10:37:38 +0000 Subject: [Bug 1093] Problematic frame for java.lang.StringCoding$StringEncoder.encode leads to fatal error. In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1093 Andrew Haley changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aph at redhat.com --- Comment #1 from Andrew Haley --- Can you tell us how to reproduce this? -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/cb1637c6/attachment.html From ahughes at redhat.com Wed Jul 25 07:58:45 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Wed, 25 Jul 2012 10:58:45 -0400 (EDT) Subject: Native zlib libraries In-Reply-To: <50080F1A.6090004@oracle.com> Message-ID: <1733006288.3249685.1343228325322.JavaMail.root@redhat.com> ----- Original Message ----- > On 19/07/2012 14:20, Andrew Hughes wrote: > > : > > > > Hmmm... this is interesting as we've been shipping OpenJDK with > > system zlib the whole time. > > > > Are some of the issues resolved in newer versions? My system copy > > is 1.2.7. > > > > Not only is it generally against GNU/Linux distribution policy to > > bundle libraries without good reason, but it also means > > we then have to rebuild OpenJDK for any security issues in those > > dependencies. > > > I think using the system zlib (or libz as it seems to shipped as on > Solaris and MacOSX) would have been okay with jdk6, it's just that > the > zip64 support in jdk7 changed total_in/out to "long long". > > The copy that we have in the jdk repository at this time is 1.2.5. > I'm > not aware of any updates that avoid this patch but I think the right > thing is to change the java.util.zip code so that it works with an > unmodified zlib. I think Sherman has ideas on this, just hasn't got > to > it yet. If you have cycles to look at it that would be great (and I > understand that distributions would frown on attempts to bundle a > private copy with OpenJDK). > I've started looking at this and it seems 7 still has 1.2.3, 1.2.5 is only in 8. I also can't see any obvious changes which change zlib. Are you sure this change was introduced in 7 and not 8? Do you happen to know the bug ID for it? > -Alan. > Thanks, -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From Alan.Bateman at oracle.com Wed Jul 25 08:04:08 2012 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Wed, 25 Jul 2012 16:04:08 +0100 Subject: Native zlib libraries In-Reply-To: <1733006288.3249685.1343228325322.JavaMail.root@redhat.com> References: <1733006288.3249685.1343228325322.JavaMail.root@redhat.com> Message-ID: <50100AE8.2050401@oracle.com> On 25/07/2012 15:58, Andrew Hughes wrote: > : > > > I've started looking at this and it seems 7 still has 1.2.3, > 1.2.5 is only in 8. I also can't see any obvious changes which > change zlib. > > Are you sure this change was introduced in 7 and not 8? Do you happen > to know the bug ID for it? > Yes, jdk7 had 1.2.3 and according to the history of zlib-1.2.3/patches/ChangeLog_java then the bugID was 4963968 (b115cf946852). jdk8 has 1.2.3 and zlib-1.2.5/patches/ChangeLog_java has 7110149 (a47de985fec9). -Alan From cbiesinger at gmail.com Wed Jul 25 11:15:25 2012 From: cbiesinger at gmail.com (Christian Biesinger) Date: Wed, 25 Jul 2012 11:15:25 -0700 Subject: Bugzilla not sending email confirmation email? Message-ID: Hi there, I just tried to create an account on http://icedtea.classpath.org/bugzilla, but the email it sends for verification hasn't arrived after ~10 minutes so far. Am I too impatient or is something broken? :) Alternatively, I'm happy to tell you the details of my bug on the mailing list; basically, the StreetSmart applet for http://www.schwab.com customers does not seem to work with icedtea-web, instead just showing "applet not started" (I have logs I'm happy to share). -christian From cbiesinger at gmail.com Wed Jul 25 11:23:09 2012 From: cbiesinger at gmail.com (Christian Biesinger) Date: Wed, 25 Jul 2012 11:23:09 -0700 Subject: Bugzilla not sending email confirmation email? In-Reply-To: References: Message-ID: On Wed, Jul 25, 2012 at 11:15 AM, Christian Biesinger wrote: > I just tried to create an account on > http://icedtea.classpath.org/bugzilla, but the email it sends for > verification hasn't arrived after ~10 minutes so far. Am I too > impatient or is something broken? :) Oops, I just found this in one of my filters. Will file a bug there, sorry. -christian From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 11:25:59 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 18:25:59 +0000 Subject: [Bug 1094] New: icedtea-web does not work with Schwab's StreetSmart applet Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1094 Priority: P3 Bug ID: 1094 CC: unassigned at icedtea.classpath.org Assignee: dbhole at redhat.com Summary: icedtea-web does not work with Schwab's StreetSmart applet Severity: normal Classification: Unclassified OS: Linux Reporter: cbiesinger at gmail.com Hardware: x86_64 Status: NEW Version: 1.2 Component: Plugin Product: IcedTea-Web Created attachment 732 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=732&action=edit ICEDTEAPLUGIN_DEBUG log http://www.schwab.com provides a "StreetSmart" trading platform that uses a Java applet. It doesn't work with icedtea-web, though -- I get an "applet not started" message in the status bar. See the attached logs (I replaced some private data in there with "") -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/000fc599/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 11:30:18 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 18:30:18 +0000 Subject: [Bug 1094] icedtea-web does not work with Schwab's StreetSmart applet In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1094 --- Comment #1 from Christian Biesinger --- Created attachment 733 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=733&action=edit java.stderr note: java.stdout was empty -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/dac53dc0/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 11:49:13 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 18:49:13 +0000 Subject: [Bug 1094] icedtea-web does not work with Schwab's StreetSmart applet In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1094 --- Comment #2 from Deepak Bhole --- This looks like a bug in bug in the applet code :( There is no much we can do about it. Have you seen any errors with a different trace? java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at sun.applet.PluginAppletSecurityContext$4.run(PluginAppletSecurityContext.java:670) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.PluginAppletSecurityContext.handleMessage(PluginAppletSecurityContext.java:667) at sun.applet.AppletSecurityContextManager.handleMessage(AppletSecurityContextManager.java:68) at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:235) at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:78) Caused by: java.lang.NullPointerException at com.schwab.att.core.context.c.b(Unknown Source) at com.cybertrader.streamer.o.a(Unknown Source) at com.cybertrader.streamer.configmanager.a.a(Unknown Source) at com.cybertrader.streamer.configmanager.t.a(Unknown Source) at com.cybertrader.streamer.configmanager.t.(Unknown Source) at com.cybertrader.streamer.configmanager.t.a(Unknown Source) at com.cybertrader.streamer.StreamerApplet.performLogoff(Unknown Source) ... 10 more -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/5c8ac193/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 11:55:26 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 18:55:26 +0000 Subject: [Bug 1094] icedtea-web does not work with Schwab's StreetSmart applet In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1094 --- Comment #3 from Christian Biesinger --- Hrm, it definitely works on my other computer that runs Windows and Sun's applet, so I assumed it was an icedtea bug... -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/5eefe639/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 12:40:39 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 19:40:39 +0000 Subject: [Bug 1095] New: [PATCH] Add configure option for -Werror Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1095 Priority: P3 Bug ID: 1095 Assignee: unassigned at icedtea.classpath.org Summary: [PATCH] Add configure option for -Werror Severity: enhancement Classification: Unclassified OS: All Reporter: sera at gentoo.org Hardware: unspecified Status: NEW Version: 2.2.1 Component: IcedTea Product: IcedTea Created attachment 734 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=734&action=edit add configure option warnings-are-errors New gcc releases tend to add new warnings and -Werror will let the build fail for no other reasen than the compiler beeing to new. This might well be desired in some cases but might cause headaches another time. [1] Currently the build fails for IcedTea 2.2.1 for some users with rather sane FLAGS and gcc-4.7. [2] The jdk build system already uses 2 variables to enable/diasble -Werror, there are only few places which hardcode it's use. The attached patch introduces a new configure option warnings-are-errors. If unset nothing changes, ie. -Werror will be used in the same places as it would have been before. If disabled -Werror won't be used anywhere and if enabled IcedTea would set the variables COMPILER_WARNINGS_FATAL and JAVAC_WARNINGS_FATAL. [1] http://blog.flameeyes.eu/2009/02/25/future-proof-your-code-dont-use-werror [2] https://bugs.gentoo.org/show_bug.cgi?id=418359 -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/96f33c91/attachment.html From adomurad at icedtea.classpath.org Wed Jul 25 13:10:24 2012 From: adomurad at icedtea.classpath.org (adomurad at icedtea.classpath.org) Date: Wed, 25 Jul 2012 20:10:24 +0000 Subject: /hg/release/icedtea-web-1.1: Fixes invalid plugin table error th... Message-ID: changeset 52f5d2f97584 in /hg/release/icedtea-web-1.1 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=52f5d2f97584 author: Adam Domurad date: Wed Jul 25 16:10:02 2012 -0400 Fixes invalid plugin table error that sometimes occurs in Chrome diffstat: ChangeLog | 13 ++ plugin/icedteanp/IcedTeaNPPlugin.cc | 195 ++++++++++++++++++----------------- 2 files changed, 113 insertions(+), 95 deletions(-) diffs (236 lines): diff -r ee39024dfed1 -r 52f5d2f97584 ChangeLog --- a/ChangeLog Tue Jul 24 11:47:46 2012 -0400 +++ b/ChangeLog Wed Jul 25 16:10:02 2012 -0400 @@ -1,3 +1,16 @@ +2012-07-25 Adam Domurad + + Allow passing of plugin tables and browser tables in NP_Initialize that + are not the expected length but still large enough for our purposes. + * plugin/icedteanp/IcedTeaNPPlugin.cc + (initialize_browser_functions): New function to check size of passed + browser function table, and initialize 'browser_functions' global + variable. + (initialize_plugin_table): New function to check size of passed + plugin function table, and initialize proper plugin callbacks. + (NP_Initialize): Make use of initialization helper functions, get + rid of old size tests and error if the helper functions fail. + 2012-07-24 Adam Domurad * plugin/icedteanp/IcedTeaPluginUtils.cc diff -r ee39024dfed1 -r 52f5d2f97584 plugin/icedteanp/IcedTeaNPPlugin.cc --- a/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 24 11:47:46 2012 -0400 +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc Wed Jul 25 16:10:02 2012 -0400 @@ -1993,105 +1993,48 @@ PLUGIN_DEBUG ("plugin_data_destroy return\n"); } -// FACTORY FUNCTIONS - -// Provides the browser with pointers to the plugin functions that we -// implement and initializes a local table with browser functions that -// we may wish to call. Called once, after browser startup and before -// the first plugin instance is created. -// The field 'initialized' is set to true once this function has -// finished. If 'initialized' is already true at the beginning of -// this function, then it is evident that NP_Initialize has already -// been called. There is no need to call this function more than once and -// this workaround avoids any duplicate calls. -NPError -NP_Initialize (NPNetscapeFuncs* browserTable, NPPluginFuncs* pluginTable) +static bool +initialize_browser_functions(const NPNetscapeFuncs* browserTable) { - PLUGIN_DEBUG ("NP_Initialize\n"); - - if ((browserTable == NULL) || (pluginTable == NULL)) +#if MOZILLA_VERSION_COLLAPSED < 1090100 +#define NPNETSCAPEFUNCS_LAST_FIELD_USED (browserTable->pluginthreadasynccall) +#else +#define NPNETSCAPEFUNCS_LAST_FIELD_USED (browserTable->setvalueforurl) +#endif + + //Determine the size in bytes, as a difference of the address past the last used field + //And the browser table address + size_t usedSize = (char*)(1 + &NPNETSCAPEFUNCS_LAST_FIELD_USED) - (char*)browserTable; + + // compare the reported size versus the size we required + if (browserTable->size < usedSize) { - PLUGIN_ERROR ("Browser or plugin function table is NULL."); - - return NPERR_INVALID_FUNCTABLE_ERROR; + return false; } - // Ensure that the major version of the plugin API that the browser - // expects is not more recent than the major version of the API that - // we've implemented. - if ((browserTable->version >> 8) > NP_VERSION_MAJOR) - { - PLUGIN_ERROR ("Incompatible version."); - - return NPERR_INCOMPATIBLE_VERSION_ERROR; - } - - // Ensure that the plugin function table we've received is large - // enough to store the number of functions that we may provide. - if (pluginTable->size < sizeof (NPPluginFuncs)) - { - PLUGIN_ERROR ("Invalid plugin function table."); - - return NPERR_INVALID_FUNCTABLE_ERROR; - } - - // Ensure that the browser function table is large enough to store - // the number of browser functions that we may use. - if (browserTable->size < sizeof (NPNetscapeFuncs)) - { - fprintf (stderr, "ERROR: Invalid browser function table. Some functionality may be restricted.\n"); - } - - // Store in a local table the browser functions that we may use. - browser_functions.size = browserTable->size; - browser_functions.version = browserTable->version; - browser_functions.geturlnotify = browserTable->geturlnotify; - browser_functions.geturl = browserTable->geturl; - browser_functions.posturlnotify = browserTable->posturlnotify; - browser_functions.posturl = browserTable->posturl; - browser_functions.requestread = browserTable->requestread; - browser_functions.newstream = browserTable->newstream; - browser_functions.write = browserTable->write; - browser_functions.destroystream = browserTable->destroystream; - browser_functions.status = browserTable->status; - browser_functions.uagent = browserTable->uagent; - browser_functions.memalloc = browserTable->memalloc; - browser_functions.memfree = browserTable->memfree; - browser_functions.memflush = browserTable->memflush; - browser_functions.reloadplugins = browserTable->reloadplugins; - browser_functions.getJavaEnv = browserTable->getJavaEnv; - browser_functions.getJavaPeer = browserTable->getJavaPeer; - browser_functions.getvalue = browserTable->getvalue; - browser_functions.setvalue = browserTable->setvalue; - browser_functions.invalidaterect = browserTable->invalidaterect; - browser_functions.invalidateregion = browserTable->invalidateregion; - browser_functions.forceredraw = browserTable->forceredraw; - browser_functions.getstringidentifier = browserTable->getstringidentifier; - browser_functions.getstringidentifiers = browserTable->getstringidentifiers; - browser_functions.getintidentifier = browserTable->getintidentifier; - browser_functions.identifierisstring = browserTable->identifierisstring; - browser_functions.utf8fromidentifier = browserTable->utf8fromidentifier; - browser_functions.intfromidentifier = browserTable->intfromidentifier; - browser_functions.createobject = browserTable->createobject; - browser_functions.retainobject = browserTable->retainobject; - browser_functions.releaseobject = browserTable->releaseobject; - browser_functions.invoke = browserTable->invoke; - browser_functions.invokeDefault = browserTable->invokeDefault; - browser_functions.evaluate = browserTable->evaluate; - browser_functions.getproperty = browserTable->getproperty; - browser_functions.setproperty = browserTable->setproperty; - browser_functions.removeproperty = browserTable->removeproperty; - browser_functions.hasproperty = browserTable->hasproperty; - browser_functions.hasmethod = browserTable->hasmethod; - browser_functions.releasevariantvalue = browserTable->releasevariantvalue; - browser_functions.setexception = browserTable->setexception; - browser_functions.pluginthreadasynccall = browserTable->pluginthreadasynccall; -#if MOZILLA_VERSION_COLLAPSED >= 1090100 - browser_functions.getvalueforurl = browserTable->getvalueforurl; - browser_functions.setvalueforurl = browserTable->setvalueforurl; -#endif - - // Return to the browser the plugin functions that we implement. + //Ensure any unused fields are NULL + memset(&browser_functions, 0, sizeof(NPNetscapeFuncs)); + //Copy fields according to given size + memcpy(&browser_functions, browserTable, browserTable->size); + + return true; +} + +/* Set the plugin table to the correct contents, taking care not to write past + * the provided object space */ +static bool +initialize_plugin_table(NPPluginFuncs* pluginTable) +{ +#define NPPLUGINFUNCS_LAST_FIELD_USED (pluginTable->getvalue) + + //Determine the size in bytes, as a difference of the address past the last used field + //And the browser table address + size_t usedSize = (char*)(1 + &NPPLUGINFUNCS_LAST_FIELD_USED) - (char*)pluginTable; + + // compare the reported size versus the size we required + if (pluginTable->size < usedSize) + return false; + pluginTable->version = (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR; pluginTable->size = sizeof (NPPluginFuncs); @@ -2121,6 +2064,68 @@ pluginTable->getvalue = NPP_GetValueProcPtr (ITNP_GetValue); #endif + return true; +} + +// FACTORY FUNCTIONS + +// Provides the browser with pointers to the plugin functions that we +// implement and initializes a local table with browser functions that +// we may wish to call. Called once, after browser startup and before +// the first plugin instance is created. +// The field 'initialized' is set to true once this function has +// finished. If 'initialized' is already true at the beginning of +// this function, then it is evident that NP_Initialize has already +// been called. There is no need to call this function more than once and +// this workaround avoids any duplicate calls. +NPError +NP_Initialize (NPNetscapeFuncs* browserTable, NPPluginFuncs* pluginTable) +{ + PLUGIN_DEBUG ("NP_Initialize\n"); + + if ((browserTable == NULL) || (pluginTable == NULL)) + { + PLUGIN_ERROR ("Browser or plugin function table is NULL."); + + return NPERR_INVALID_FUNCTABLE_ERROR; + } + + // Ensure that the major version of the plugin API that the browser + // expects is not more recent than the major version of the API that + // we've implemented. + if ((browserTable->version >> 8) > NP_VERSION_MAJOR) + { + PLUGIN_ERROR ("Incompatible version."); + + return NPERR_INCOMPATIBLE_VERSION_ERROR; + } + + // Copy into a global table (browser_functions) the browser functions that we may use. + // If the browser functions needed change, update NPNETSCAPEFUNCS_LAST_FIELD_USED + // within this function + bool browser_functions_supported = initialize_browser_functions(browserTable); + + // Check if everything we rely on is supported + if ( !browser_functions_supported ) + { + PLUGIN_ERROR ("Invalid browser function table."); + + return NPERR_INVALID_FUNCTABLE_ERROR; + } + + // Return to the browser the plugin functions that we implement. + // If the plugin functions needed change, update NPPLUGINFUNCS_LAST_FIELD_USED + // within this function + bool plugin_functions_supported = initialize_plugin_table(pluginTable); + + // Check if everything we rely on is supported + if ( !plugin_functions_supported ) + { + PLUGIN_ERROR ("Invalid plugin function table."); + + return NPERR_INVALID_FUNCTABLE_ERROR; + } + // Re-setting the above tables multiple times is OK (as the // browser may change its function locations). However // anything beyond this point should only run once. From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 13:18:35 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 20:18:35 +0000 Subject: [Bug 1094] icedtea-web does not work with Schwab's StreetSmart applet In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1094 Deepak Bhole changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #4 from Deepak Bhole --- Ah, sorry. The NPE only happens during exit. The real culprit appears to be this: java.lang.SecurityException: Changing the SecurityManager is not allowed. at net.sourceforge.jnlp.runtime.JNLPSecurityManager.checkPermission(JNLPSecurityManager.java:270) at java.lang.System.setSecurityManager0(System.java:295) at java.lang.System.setSecurityManager(System.java:286) at com.cybertrader.streamer.StreamerApplet.init(Unknown Source) at sun.applet.AppletPanel.run(AppletPanel.java:435) at java.lang.Thread.run(Thread.java:722) WRITING 2: instance 1 status Start: applet not initialized. PIPE: appletviewer wrote: instance 1 status Start: applet not initialized. This is by design. The icedtea-web plug-in uses a single VM design and we cannot allow one applet to dictate security policy for other applets (even if that applet is signed). The Oracle plug-in uses a single VM model too but allows replacing the manager. IMO it should not either. Sorry if it sounds like I am trying to pass the blame, but I am not. This decision is by design and makes sense from a security perspective. Schwab should fix their applet. A properly written one should not need to overwrite the security manager as trusted applets already have full access. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/8f058e24/attachment.html From weiqigao at gmail.com Wed Jul 25 13:19:16 2012 From: weiqigao at gmail.com (Weiqi Gao) Date: Wed, 25 Jul 2012 15:19:16 -0500 Subject: IcedTea-Web's javaws on platforms other than Linux Message-ID: <501054C4.5070509@gmail.com> Hi, I hope this is the right list to ask this question. If not, please point me to the right list. I'm looking at the possibility of adapting the JNLP client in IcedTea-Web for platforms other than Linux (Windows, Solaris, MacOSX, etc., essentially where OpenJDK builds) for an OpenJDK based execution environment. I'm only looking at the JNLP functionality, not the Applet functionality. Is this something that people has tried before? Is this something that might be of interest to the IcedTea-Web community? -- Weiqi Gao weiqigao at gmail.com http://www.weiqigao.com/blog/ From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 13:47:03 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 20:47:03 +0000 Subject: [Bug 1096] New: NPEs and launch fails Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1096 Priority: P3 Bug ID: 1096 CC: unassigned at icedtea.classpath.org Assignee: omajid at redhat.com Summary: NPEs and launch fails Severity: major Classification: Unclassified OS: Linux Reporter: a.kuckartz at ping.de Hardware: x86_64 Status: NEW Version: 1.2 Component: NetX (javaws) Product: IcedTea-Web javaws -verbose http://www.adom.de/adom-ii/downloads/javawebstart/0.2.8/adom-ii.jnlp works on Windows with Oracle JRE7 but not on Debian unstable with OpenJDK7 and icedtea-netx 1.2. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/08ae605e/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 13:49:07 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 20:49:07 +0000 Subject: [Bug 1096] NPEs and launch fails In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1096 --- Comment #1 from Andreas Kuckartz --- Created attachment 735 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=735&action=edit output from javaws -verbose -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/690a78b7/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 13:53:02 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 20:53:02 +0000 Subject: [Bug 1096] NPEs and launch fails In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1096 --- Comment #2 from Andreas Kuckartz --- The same error was reported by someone else on Ubuntu 12: http://www.adom.de/forums/project.php?issueid=1089 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/fb35d399/attachment.html From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 13:54:45 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Wed, 25 Jul 2012 20:54:45 +0000 Subject: [Bug 1096] NPEs and then launch fails with "access denied" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1096 Andreas Kuckartz changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|NPEs and launch fails |NPEs and then launch fails | |with "access denied" -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120725/844c4df4/attachment.html From andrew at icedtea.classpath.org Wed Jul 25 14:49:03 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Wed, 25 Jul 2012 21:49:03 +0000 Subject: /hg/icedtea7: Allow Zero to build again by using 2.1's HotSpot w... Message-ID: changeset dc1eb9ec0fef in /hg/icedtea7 details: http://icedtea.classpath.org/hg/icedtea7?cmd=changeset;node=dc1eb9ec0fef author: Andrew John Hughes date: Wed Jul 25 22:48:43 2012 +0100 Allow Zero to build again by using 2.1's HotSpot when selected. 2012-07-25 Andrew John Hughes * Makefile.am: (JDK_CHANGESET): Temporarily revert to u6-b16. (JDK_SHA256SUM): Likewise. (HS_SHA256SUM): Always set from hotspot.map (HS_CHANGESET): Likewise. (HS_URL): LIkewise. (ICEDTEA_PATCHES): Add additional patches for HotSpot zero. (ICEDTEA_BOOT_PATCHES): Use different hotspot-jdk-dependency patch dependent on version of HotSpot in use. (download-openjdk): Echo HotSpot build being used. * acinclude.m4: (IT_ENABLE_ZERO_BUILD): Use AC_DEFUN_ONCE. (IT_WITH_HOTSPOT_BUILD): Make default "zero" if Zero is enabled. * hotspot.map: Add default (previous configuration) and zero (from 2.1). * patches/boot/hotspot/zero/jdk-dependency.patch: Regenerated against 2.1 HotSpot. * patches/hotspot/zero/6924259-string_offset.patch: Backport so that HotSpot can work with current java.lang.String. * patches/hotspot/zero/7089790-bsd_port.patch, * patches/hotspot/zero/7098194-macosx_port.patch: Backported for modern SystemTap support & setnativethreadname. * patches/hotspot/zero/7116189-setnativethreadname.patch: Expose setnativethreadname. * patches/hotspot/zero/7175133-string_offset.patch: Fix jinfo with new java.lang.String. * patches/hotspot/zero/revert_arm_debug.patch: Remove definition of ps() in vmError.cpp (now defined in debug.cpp) diffstat: ChangeLog | 31 + Makefile.am | 31 +- acinclude.m4 | 9 +- hotspot.map | 4 +- patches/boot/hotspot-jdk-dependency.patch | 23 - patches/boot/hotspot/default/jdk-dependency.patch | 23 + patches/boot/hotspot/zero/jdk-dependency.patch | 25 + patches/cacao/memory.patch | 24 +- patches/hotspot/zero/6924259-string_offset.patch | 934 + patches/hotspot/zero/7089790-bsd_port.patch | 28881 +++++++++++++++ patches/hotspot/zero/7098194-macosx_port.patch | 11389 +++++ patches/hotspot/zero/7116189-setnativethreadname.patch | 67 + patches/hotspot/zero/7175133-string_offset.patch | 48 + patches/hotspot/zero/revert_arm_debug.patch | 55 + 14 files changed, 41492 insertions(+), 52 deletions(-) diffs (truncated from 41671 to 500 lines): diff -r 7d3000c44b3b -r dc1eb9ec0fef ChangeLog --- a/ChangeLog Mon Jul 16 10:59:46 2012 +0200 +++ b/ChangeLog Wed Jul 25 22:48:43 2012 +0100 @@ -1,3 +1,34 @@ +2012-07-25 Andrew John Hughes + + * Makefile.am: + (JDK_CHANGESET): Temporarily revert to u6-b16. + (JDK_SHA256SUM): Likewise. + (HS_SHA256SUM): Always set from hotspot.map + (HS_CHANGESET): Likewise. + (HS_URL): LIkewise. + (ICEDTEA_PATCHES): Add additional patches for HotSpot zero. + (ICEDTEA_BOOT_PATCHES): Use different hotspot-jdk-dependency + patch dependent on version of HotSpot in use. + (download-openjdk): Echo HotSpot build being used. + * acinclude.m4: + (IT_ENABLE_ZERO_BUILD): Use AC_DEFUN_ONCE. + (IT_WITH_HOTSPOT_BUILD): Make default "zero" if Zero is enabled. + * hotspot.map: + Add default (previous configuration) and zero (from 2.1). + * patches/boot/hotspot/zero/jdk-dependency.patch: + Regenerated against 2.1 HotSpot. + * patches/hotspot/zero/6924259-string_offset.patch: + Backport so that HotSpot can work with current java.lang.String. + * patches/hotspot/zero/7089790-bsd_port.patch, + * patches/hotspot/zero/7098194-macosx_port.patch: + Backported for modern SystemTap support & setnativethreadname. + * patches/hotspot/zero/7116189-setnativethreadname.patch: + Expose setnativethreadname. + * patches/hotspot/zero/7175133-string_offset.patch: + Fix jinfo with new java.lang.String. + * patches/hotspot/zero/revert_arm_debug.patch: + Remove definition of ps() in vmError.cpp (now defined in debug.cpp) + 2012-07-13 Pavel Tisnovsky Resolved conflict between merge jdk7u6-b16 and the fix diff -r 7d3000c44b3b -r dc1eb9ec0fef Makefile.am --- a/Makefile.am Mon Jul 16 10:59:46 2012 +0200 +++ b/Makefile.am Wed Jul 25 22:48:43 2012 +0100 @@ -8,7 +8,7 @@ HOTSPOT_CHANGESET = 3359eef69d1e JAXP_CHANGESET = 411912b74c9c JAXWS_CHANGESET = d5997e503698 -JDK_CHANGESET = 1e341b69c2f7 +JDK_CHANGESET = 0f03c3a0bf94 LANGTOOLS_CHANGESET = 480d4eb554fc OPENJDK_CHANGESET = 7f5ea73378df @@ -16,7 +16,7 @@ HOTSPOT_SHA256SUM = c10b4208b76c1012e91774bc8a29f561fbb4747fb5bbebe3267f3cbaa24b8c5a JAXP_SHA256SUM = 77de1a8c4ab40652d0cf9c862c543376a877eb9399ad20e653c7103c599640e4 JAXWS_SHA256SUM = 4fdb7a02b9d42fef84a7fb0f2de2b4c15a737a14be93b5de1c5f6d658072cdea -JDK_SHA256SUM = c8b080004b6e61f66c27a8213ed54840cd5aedc4e141999db7e3e4181bbef1da +JDK_SHA256SUM = 9c5790b4e35f52c351900b9e71ce0c81479961a6146cbf6b74ef2a2d3c802fd5 LANGTOOLS_SHA256SUM = 6a3995facdaae90fd7c68faa6c8a566825317136a0064892d71a76f5d5f09efe OPENJDK_SHA256SUM = a426ab622e51d5ca40a7da4af4b42c2c216f7c27b56190df36e3bf7fea8529ca @@ -47,7 +47,10 @@ JAXWS_URL = $(ICEDTEA_HG_URL)/jaxws JDK_URL = $(ICEDTEA_HG_URL)/jdk LANGTOOLS_URL = $(ICEDTEA_HG_URL)/langtools -HOTSPOT_URL = $(ICEDTEA_HG_URL)/hotspot + +HS_SHA256SUM = "`$(AWK) 'version==$$1 {print $$4}' version=$(HSBUILD) $(abs_top_srcdir)/hotspot.map`" +HS_CHANGESET = "`$(AWK) 'version==$$1 {print $$3}' version=$(HSBUILD) $(abs_top_srcdir)/hotspot.map`" +HS_URL = "`$(AWK) 'version==$$1 {print $$2}' version=$(HSBUILD) $(abs_top_srcdir)/hotspot.map`" # Build directories @@ -140,16 +143,6 @@ HOTSPOT_SRC_ZIP = hotspot.tar.gz endif -if WITH_ALT_HSBUILD - HS_SHA256SUM = "`$(AWK) 'version==$$1 {print $$4}' version=$(HSBUILD) $(abs_top_srcdir)/hotspot.map`" - HS_CHANGESET = "`$(AWK) 'version==$$1 {print $$3}' version=$(HSBUILD) $(abs_top_srcdir)/hotspot.map`" - HS_URL = "`$(AWK) 'version==$$1 {print $$2}' version=$(HSBUILD) $(abs_top_srcdir)/hotspot.map`" -else - HS_SHA256SUM = $(HOTSPOT_SHA256SUM) - HS_CHANGESET = $(HOTSPOT_CHANGESET) - HS_URL = $(HOTSPOT_URL) -endif - if ENABLE_PULSE_JAVA PULSE_JAVA_TARGET = stamps/pulse-java.stamp endif @@ -239,6 +232,15 @@ # Conditional patches +if WITH_ALT_HSBUILD +ICEDTEA_PATCHES += \ + patches/hotspot/$(HSBUILD)/7089790-bsd_port.patch \ + patches/hotspot/$(HSBUILD)/7098194-macosx_port.patch \ + patches/hotspot/$(HSBUILD)/7116189-setnativethreadname.patch \ + patches/hotspot/$(HSBUILD)/6924259-string_offset.patch \ + patches/hotspot/$(HSBUILD)/revert_arm_debug.patch +endif + if WITH_RHINO ICEDTEA_PATCHES += \ patches/rhino.patch @@ -318,7 +320,7 @@ patches/boot/corba-dependencies.patch \ patches/boot/jaxws-langtools-dependency.patch \ patches/boot/jaxws-jdk-dependency.patch \ - patches/boot/hotspot-jdk-dependency.patch \ + patches/boot/hotspot/${HSBUILD}/jdk-dependency.patch \ patches/boot/ecj-multicatch.patch \ patches/boot/ecj-trywithresources.patch \ patches/boot/ecj-autoboxing.patch \ @@ -986,6 +988,7 @@ if USE_ALT_HOTSPOT_SRC_ZIP ln -sf $(ALT_HOTSPOT_SRC_ZIP) $(HOTSPOT_SRC_ZIP) endif + echo "Using HotSpot build: ${HSBUILD}" if ! echo "$(HS_SHA256SUM) $(HOTSPOT_SRC_ZIP)" \ | $(SHA256SUM) --check ; \ then \ diff -r 7d3000c44b3b -r dc1eb9ec0fef acinclude.m4 --- a/acinclude.m4 Mon Jul 16 10:59:46 2012 +0200 +++ b/acinclude.m4 Wed Jul 25 22:48:43 2012 +0100 @@ -650,7 +650,7 @@ AC_SUBST([$1]) ]) -AC_DEFUN([IT_ENABLE_ZERO_BUILD], +AC_DEFUN_ONCE([IT_ENABLE_ZERO_BUILD], [ AC_REQUIRE([IT_SET_ARCH_SETTINGS]) AC_MSG_CHECKING([whether to use the zero-assembler port]) @@ -923,7 +923,12 @@ AC_DEFUN([IT_WITH_HOTSPOT_BUILD], [ - DEFAULT_BUILD="default" + AC_REQUIRE([IT_ENABLE_ZERO_BUILD]) + if test "x${use_zero}" = "xyes"; then + DEFAULT_BUILD="zero" + else + DEFAULT_BUILD="default" + fi AC_MSG_CHECKING([which HotSpot build to use]) AC_ARG_WITH([hotspot-build], [AS_HELP_STRING(--with-hotspot-build=BUILD,the HotSpot build to use [[BUILD=default]])], diff -r 7d3000c44b3b -r dc1eb9ec0fef hotspot.map --- a/hotspot.map Mon Jul 16 10:59:46 2012 +0200 +++ b/hotspot.map Wed Jul 25 22:48:43 2012 +0100 @@ -1,1 +1,3 @@ -# version url changeset md5sum +# version url changeset sha256sum +default http://icedtea.classpath.org/hg/icedtea7-forest/hotspot 3359eef69d1e c10b4208b76c1012e91774bc8a29f561fbb4747fb5bbebe3267f3cbaa24b8c5a +zero http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/hotspot 8b7c4c5f6ba9 22866990d143e76ced94b76defa3051e5e5d9a51fd272d63daa0df272d6406a2 diff -r 7d3000c44b3b -r dc1eb9ec0fef patches/boot/hotspot-jdk-dependency.patch --- a/patches/boot/hotspot-jdk-dependency.patch Mon Jul 16 10:59:46 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -diff -Nru openjdk-boot.orig/hotspot/make/linux/makefiles/sa.make openjdk-boot/hotspot/make/linux/makefiles/sa.make ---- openjdk-boot.orig/hotspot/make/linux/makefiles/sa.make 2012-05-23 22:15:04.747642641 +0100 -+++ openjdk-boot/hotspot/make/linux/makefiles/sa.make 2012-05-23 22:16:32.825095823 +0100 -@@ -91,7 +91,7 @@ - # are in AGENT_FILES, so use the shell to expand them. - # Be extra carefull to not produce too long command lines in the shell! - $(foreach file,$(AGENT_FILES),$(shell ls -1 $(file) >> $(AGENT_FILES_LIST))) -- $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) @$(AGENT_FILES_LIST) -+ $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR):$(JDK_TOPDIR)/src/share/classes:$(JDK_TOPDIR)/src/solaris/classes:$(GENSRCDIR) -d $(SA_CLASSDIR) @$(AGENT_FILES_LIST) - $(QUIETLY) $(REMOTE) $(COMPILE.RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer - $(QUIETLY) echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES) - $(QUIETLY) rm -f $(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql/sa.js -diff -Nru openjdk-boot.orig/make/hotspot-rules.gmk openjdk-boot/make/hotspot-rules.gmk ---- openjdk-boot.orig/make/hotspot-rules.gmk 2012-05-23 20:37:39.000000000 +0100 -+++ openjdk-boot/make/hotspot-rules.gmk 2012-05-23 22:16:52.425419199 +0100 -@@ -85,6 +85,7 @@ - HOTSPOT_BUILD_ARGUMENTS += ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR) - HOTSPOT_BUILD_ARGUMENTS += ALT_EXPORT_PATH=$(HOTSPOT_EXPORT_PATH) - HOTSPOT_BUILD_ARGUMENTS += BUILD_FLAVOR=$(BUILD_FLAVOR) -+HOTSPOT_BUILD_ARGUMENTS += GENSRCDIR=$(GENSRCDIR) - - # Why do these need to be passed in? Because of windows nmake? and MAKEFLAGS=? - # Or is there something wrong with hotspot/make/Makefile? diff -r 7d3000c44b3b -r dc1eb9ec0fef patches/boot/hotspot/default/jdk-dependency.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/boot/hotspot/default/jdk-dependency.patch Wed Jul 25 22:48:43 2012 +0100 @@ -0,0 +1,23 @@ +diff -Nru openjdk-boot.orig/hotspot/make/linux/makefiles/sa.make openjdk-boot/hotspot/make/linux/makefiles/sa.make +--- openjdk-boot.orig/hotspot/make/linux/makefiles/sa.make 2012-05-23 22:15:04.747642641 +0100 ++++ openjdk-boot/hotspot/make/linux/makefiles/sa.make 2012-05-23 22:16:32.825095823 +0100 +@@ -91,7 +91,7 @@ + # are in AGENT_FILES, so use the shell to expand them. + # Be extra carefull to not produce too long command lines in the shell! + $(foreach file,$(AGENT_FILES),$(shell ls -1 $(file) >> $(AGENT_FILES_LIST))) +- $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) @$(AGENT_FILES_LIST) ++ $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR):$(JDK_TOPDIR)/src/share/classes:$(JDK_TOPDIR)/src/solaris/classes:$(GENSRCDIR) -d $(SA_CLASSDIR) @$(AGENT_FILES_LIST) + $(QUIETLY) $(REMOTE) $(COMPILE.RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer + $(QUIETLY) echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES) + $(QUIETLY) rm -f $(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql/sa.js +diff -Nru openjdk-boot.orig/make/hotspot-rules.gmk openjdk-boot/make/hotspot-rules.gmk +--- openjdk-boot.orig/make/hotspot-rules.gmk 2012-05-23 20:37:39.000000000 +0100 ++++ openjdk-boot/make/hotspot-rules.gmk 2012-05-23 22:16:52.425419199 +0100 +@@ -85,6 +85,7 @@ + HOTSPOT_BUILD_ARGUMENTS += ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR) + HOTSPOT_BUILD_ARGUMENTS += ALT_EXPORT_PATH=$(HOTSPOT_EXPORT_PATH) + HOTSPOT_BUILD_ARGUMENTS += BUILD_FLAVOR=$(BUILD_FLAVOR) ++HOTSPOT_BUILD_ARGUMENTS += GENSRCDIR=$(GENSRCDIR) + + # Why do these need to be passed in? Because of windows nmake? and MAKEFLAGS=? + # Or is there something wrong with hotspot/make/Makefile? diff -r 7d3000c44b3b -r dc1eb9ec0fef patches/boot/hotspot/zero/jdk-dependency.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/boot/hotspot/zero/jdk-dependency.patch Wed Jul 25 22:48:43 2012 +0100 @@ -0,0 +1,25 @@ +diff -Nru openjdk-boot.orig/hotspot/make/linux/makefiles/sa.make openjdk-boot/hotspot/make/linux/makefiles/sa.make +--- openjdk-boot.orig/hotspot/make/linux/makefiles/sa.make 2012-07-20 18:05:26.733484117 +0100 ++++ openjdk-boot/hotspot/make/linux/makefiles/sa.make 2012-07-20 18:10:11.384736044 +0100 +@@ -97,8 +97,8 @@ + $(foreach file,$(AGENT_FILES1),$(shell echo $(file) >> $(AGENT_FILES1_LIST))) + $(foreach file,$(AGENT_FILES2),$(shell echo $(file) >> $(AGENT_FILES2_LIST))) + +- $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) @$(AGENT_FILES1_LIST) +- $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) @$(AGENT_FILES2_LIST) ++ $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR):$(JDK_TOPDIR)/src/share/classes:$(JDK_TOPDIR)/src/solaris/classes:$(GENSRCDIR) -d $(SA_CLASSDIR) @$(AGENT_FILES1_LIST) ++ $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR):$(JDK_TOPDIR)/src/share/classes:$(JDK_TOPDIR)/src/solaris/classes:$(GENSRCDIR) -d $(SA_CLASSDIR) @$(AGENT_FILES2_LIST) + + $(QUIETLY) $(REMOTE) $(COMPILE.RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer + $(QUIETLY) echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES) +diff -Nru openjdk-boot.orig/make/hotspot-rules.gmk openjdk-boot/make/hotspot-rules.gmk +--- openjdk-boot.orig/make/hotspot-rules.gmk 2012-06-29 15:19:51.000000000 +0100 ++++ openjdk-boot/make/hotspot-rules.gmk 2012-07-20 18:10:28.277161702 +0100 +@@ -85,6 +85,7 @@ + HOTSPOT_BUILD_ARGUMENTS += ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR) + HOTSPOT_BUILD_ARGUMENTS += ALT_EXPORT_PATH=$(HOTSPOT_EXPORT_PATH) + HOTSPOT_BUILD_ARGUMENTS += BUILD_FLAVOR=$(BUILD_FLAVOR) ++HOTSPOT_BUILD_ARGUMENTS += GENSRCDIR=$(GENSRCDIR) + + # Why do these need to be passed in? Because of windows nmake? and MAKEFLAGS=? + # Or is there something wrong with hotspot/make/Makefile? diff -r 7d3000c44b3b -r dc1eb9ec0fef patches/cacao/memory.patch --- a/patches/cacao/memory.patch Mon Jul 16 10:59:46 2012 +0200 +++ b/patches/cacao/memory.patch Wed Jul 25 22:48:43 2012 +0100 @@ -1,15 +1,3 @@ -diff -Nru openjdk.orig/hotspot/make/bsd/makefiles/rules.make openjdk/hotspot/make/bsd/makefiles/rules.make ---- openjdk.orig/hotspot/make/bsd/makefiles/rules.make 2012-06-08 17:13:09.000000000 +0100 -+++ openjdk/hotspot/make/bsd/makefiles/rules.make 2012-06-12 10:50:20.974290246 +0100 -@@ -128,7 +128,7 @@ - # Settings for javac - BOOT_SOURCE_LANGUAGE_VERSION = 6 - BOOT_TARGET_CLASS_VERSION = 6 --JAVAC_FLAGS = -g -encoding ascii -+JAVAC_FLAGS = -g -encoding ascii -J-Xmx256m - BOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION) - - # With parallel makes, print a message at the end of compilation. diff -Nru openjdk.orig/hotspot/make/linux/makefiles/rules.make openjdk/hotspot/make/linux/makefiles/rules.make --- openjdk.orig/hotspot/make/linux/makefiles/rules.make 2012-06-08 17:13:09.000000000 +0100 +++ openjdk/hotspot/make/linux/makefiles/rules.make 2012-06-12 10:50:20.982290377 +0100 @@ -84,3 +72,15 @@ +diff -Nru openjdk.orig/hotspot/make/bsd/makefiles/rules.make openjdk/hotspot/make/bsd/makefiles/rules.make +--- openjdk.orig/hotspot/make/bsd/makefiles/rules.make 2012-06-08 17:13:09.000000000 +0100 ++++ openjdk/hotspot/make/bsd/makefiles/rules.make 2012-06-12 10:50:20.974290246 +0100 +@@ -128,7 +128,7 @@ + # Settings for javac + BOOT_SOURCE_LANGUAGE_VERSION = 6 + BOOT_TARGET_CLASS_VERSION = 6 +-JAVAC_FLAGS = -g -encoding ascii ++JAVAC_FLAGS = -g -encoding ascii -J-Xmx256m + BOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION) + + # With parallel makes, print a message at the end of compilation. diff -r 7d3000c44b3b -r dc1eb9ec0fef patches/hotspot/zero/6924259-string_offset.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/hotspot/zero/6924259-string_offset.patch Wed Jul 25 22:48:43 2012 +0100 @@ -0,0 +1,934 @@ +# HG changeset patch +# User kvn +# Date 1337013360 25200 +# Node ID 3facbb14e873f14af743e05139e6e48b5890ffcc +# Parent ea3152ff2a498749bf5d889b247902f5d02915be +6924259: Remove String.count/String.offset +Summary: Allow a version of String class that doesn't have count and offset fields. +Reviewed-by: never, coleenp + +diff --git a/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp b/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp +--- openjdk/hotspot/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp ++++ openjdk/hotspot/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp +@@ -1,5 +1,5 @@ + /* +- * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. ++ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it +@@ -238,9 +238,12 @@ + + Register result = dst->as_register(); + { +- // Get a pointer to the first character of string0 in tmp0 and get string0.count in str0 +- // Get a pointer to the first character of string1 in tmp1 and get string1.count in str1 +- // Also, get string0.count-string1.count in o7 and get the condition code set ++ // Get a pointer to the first character of string0 in tmp0 ++ // and get string0.length() in str0 ++ // Get a pointer to the first character of string1 in tmp1 ++ // and get string1.length() in str1 ++ // Also, get string0.length()-string1.length() in ++ // o7 and get the condition code set + // Note: some instructions have been hoisted for better instruction scheduling + + Register tmp0 = L0; +@@ -248,27 +251,40 @@ + Register tmp2 = L2; + + int value_offset = java_lang_String:: value_offset_in_bytes(); // char array +- int offset_offset = java_lang_String::offset_offset_in_bytes(); // first character position +- int count_offset = java_lang_String:: count_offset_in_bytes(); +- +- __ load_heap_oop(str0, value_offset, tmp0); +- __ ld(str0, offset_offset, tmp2); +- __ add(tmp0, arrayOopDesc::base_offset_in_bytes(T_CHAR), tmp0); +- __ ld(str0, count_offset, str0); +- __ sll(tmp2, exact_log2(sizeof(jchar)), tmp2); ++ if (java_lang_String::has_offset_field()) { ++ int offset_offset = java_lang_String::offset_offset_in_bytes(); // first character position ++ int count_offset = java_lang_String:: count_offset_in_bytes(); ++ __ load_heap_oop(str0, value_offset, tmp0); ++ __ ld(str0, offset_offset, tmp2); ++ __ add(tmp0, arrayOopDesc::base_offset_in_bytes(T_CHAR), tmp0); ++ __ ld(str0, count_offset, str0); ++ __ sll(tmp2, exact_log2(sizeof(jchar)), tmp2); ++ } else { ++ __ load_heap_oop(str0, value_offset, tmp1); ++ __ add(tmp1, arrayOopDesc::base_offset_in_bytes(T_CHAR), tmp0); ++ __ ld(tmp1, arrayOopDesc::length_offset_in_bytes(), str0); ++ } + + // str1 may be null + add_debug_info_for_null_check_here(info); + +- __ load_heap_oop(str1, value_offset, tmp1); +- __ add(tmp0, tmp2, tmp0); +- +- __ ld(str1, offset_offset, tmp2); +- __ add(tmp1, arrayOopDesc::base_offset_in_bytes(T_CHAR), tmp1); +- __ ld(str1, count_offset, str1); +- __ sll(tmp2, exact_log2(sizeof(jchar)), tmp2); ++ if (java_lang_String::has_offset_field()) { ++ int offset_offset = java_lang_String::offset_offset_in_bytes(); // first character position ++ int count_offset = java_lang_String:: count_offset_in_bytes(); ++ __ load_heap_oop(str1, value_offset, tmp1); ++ __ add(tmp0, tmp2, tmp0); ++ ++ __ ld(str1, offset_offset, tmp2); ++ __ add(tmp1, arrayOopDesc::base_offset_in_bytes(T_CHAR), tmp1); ++ __ ld(str1, count_offset, str1); ++ __ sll(tmp2, exact_log2(sizeof(jchar)), tmp2); ++ __ add(tmp1, tmp2, tmp1); ++ } else { ++ __ load_heap_oop(str1, value_offset, tmp2); ++ __ add(tmp2, arrayOopDesc::base_offset_in_bytes(T_CHAR), tmp1); ++ __ ld(tmp2, arrayOopDesc::length_offset_in_bytes(), str1); ++ } + __ subcc(str0, str1, O7); +- __ add(tmp1, tmp2, tmp1); + } + + { +@@ -302,7 +318,7 @@ + // Shift base0 and base1 to the end of the arrays, negate limit + __ add(base0, limit, base0); + __ add(base1, limit, base1); +- __ neg(limit); // limit = -min{string0.count, strin1.count} ++ __ neg(limit); // limit = -min{string0.length(), string1.length()} + + __ lduh(base0, limit, chr0); + __ bind(Lloop); +diff --git a/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp b/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp +--- openjdk/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp ++++ openjdk/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp +@@ -1,5 +1,5 @@ + /* +- * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. ++ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it +@@ -505,19 +505,28 @@ + + // Get addresses of first characters from both Strings + __ load_heap_oop(rsi, Address(rax, java_lang_String::value_offset_in_bytes())); +- __ movptr (rcx, Address(rax, java_lang_String::offset_offset_in_bytes())); +- __ lea (rsi, Address(rsi, rcx, Address::times_2, arrayOopDesc::base_offset_in_bytes(T_CHAR))); +- ++ if (java_lang_String::has_offset_field()) { ++ __ movptr (rcx, Address(rax, java_lang_String::offset_offset_in_bytes())); ++ __ movl (rax, Address(rax, java_lang_String::count_offset_in_bytes())); ++ __ lea (rsi, Address(rsi, rcx, Address::times_2, arrayOopDesc::base_offset_in_bytes(T_CHAR))); ++ } else { ++ __ movl (rax, Address(rsi, arrayOopDesc::length_offset_in_bytes())); ++ __ lea (rsi, Address(rsi, arrayOopDesc::base_offset_in_bytes(T_CHAR))); ++ } + + // rbx, may be NULL + add_debug_info_for_null_check_here(info); + __ load_heap_oop(rdi, Address(rbx, java_lang_String::value_offset_in_bytes())); +- __ movptr (rcx, Address(rbx, java_lang_String::offset_offset_in_bytes())); +- __ lea (rdi, Address(rdi, rcx, Address::times_2, arrayOopDesc::base_offset_in_bytes(T_CHAR))); ++ if (java_lang_String::has_offset_field()) { ++ __ movptr (rcx, Address(rbx, java_lang_String::offset_offset_in_bytes())); ++ __ movl (rbx, Address(rbx, java_lang_String::count_offset_in_bytes())); ++ __ lea (rdi, Address(rdi, rcx, Address::times_2, arrayOopDesc::base_offset_in_bytes(T_CHAR))); ++ } else { ++ __ movl (rbx, Address(rdi, arrayOopDesc::length_offset_in_bytes())); ++ __ lea (rdi, Address(rdi, arrayOopDesc::base_offset_in_bytes(T_CHAR))); ++ } + + // compute minimum length (in rax) and difference of lengths (on top of stack) +- __ movl (rbx, Address(rbx, java_lang_String::count_offset_in_bytes())); +- __ movl (rax, Address(rax, java_lang_String::count_offset_in_bytes())); + __ mov (rcx, rbx); + __ subptr(rbx, rax); // subtract lengths + __ push (rbx); // result +diff --git a/src/share/vm/classfile/javaClasses.cpp b/src/share/vm/classfile/javaClasses.cpp +--- openjdk/hotspot/src/share/vm/classfile/javaClasses.cpp ++++ openjdk/hotspot/src/share/vm/classfile/javaClasses.cpp +@@ -1,5 +1,5 @@ + /* +- * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. ++ * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it +@@ -143,7 +143,27 @@ + } + + ++int java_lang_String::value_offset = 0; ++int java_lang_String::offset_offset = 0; ++int java_lang_String::count_offset = 0; ++int java_lang_String::hash_offset = 0; ++ ++bool java_lang_String::initialized = false; ++ ++void java_lang_String::compute_offsets() { ++ assert(!initialized, "offsets should be initialized only once"); ++ ++ klassOop k = SystemDictionary::String_klass(); ++ compute_offset(value_offset, k, vmSymbols::value_name(), vmSymbols::char_array_signature()); ++ compute_optional_offset(offset_offset, k, vmSymbols::offset_name(), vmSymbols::int_signature()); ++ compute_optional_offset(count_offset, k, vmSymbols::count_name(), vmSymbols::int_signature()); ++ compute_optional_offset(hash_offset, k, vmSymbols::hash_name(), vmSymbols::int_signature()); ++ ++ initialized = true; ++} ++ + Handle java_lang_String::basic_create(int length, bool tenured, TRAPS) { ++ assert(initialized, "Must be initialized"); + // Create the String object first, so there's a chance that the String + // and the char array it points to end up in the same cache line. + oop obj; +@@ -2837,10 +2857,6 @@ + + + +-int java_lang_String::value_offset; +-int java_lang_String::offset_offset; +-int java_lang_String::count_offset; +-int java_lang_String::hash_offset; + int java_lang_Class::_klass_offset; + int java_lang_Class::_array_klass_offset; + int java_lang_Class::_resolved_constructor_offset; +@@ -3000,12 +3016,6 @@ + const int x = heapOopSize; + const int header = instanceOopDesc::base_offset_in_bytes(); + +- // Do the String Class +- java_lang_String::value_offset = java_lang_String::hc_value_offset * x + header; +- java_lang_String::offset_offset = java_lang_String::hc_offset_offset * x + header; +- java_lang_String::count_offset = java_lang_String::offset_offset + sizeof (jint); +- java_lang_String::hash_offset = java_lang_String::count_offset + sizeof (jint); +- + // Throwable Class + java_lang_Throwable::backtrace_offset = java_lang_Throwable::hc_backtrace_offset * x + header; + java_lang_Throwable::detailMessage_offset = java_lang_Throwable::hc_detailMessage_offset * x + header; +@@ -3200,9 +3210,13 @@ + // java.lang.String + + CHECK_OFFSET("java/lang/String", java_lang_String, value, "[C"); +- CHECK_OFFSET("java/lang/String", java_lang_String, offset, "I"); +- CHECK_OFFSET("java/lang/String", java_lang_String, count, "I"); +- CHECK_OFFSET("java/lang/String", java_lang_String, hash, "I"); ++ if (java_lang_String::has_offset_field()) { ++ CHECK_OFFSET("java/lang/String", java_lang_String, offset, "I"); ++ CHECK_OFFSET("java/lang/String", java_lang_String, count, "I"); ++ } ++ if (java_lang_String::has_hash_field()) { ++ CHECK_OFFSET("java/lang/String", java_lang_String, hash, "I"); ++ } From bugzilla-daemon at icedtea.classpath.org Wed Jul 25 18:40:12 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 01:40:12 +0000 Subject: [Bug 1097] New: Etrade MarketCaster does not work Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1097 Priority: P3 Bug ID: 1097 CC: unassigned at icedtea.classpath.org Assignee: dbhole at redhat.com Summary: Etrade MarketCaster does not work Severity: normal Classification: Unclassified OS: Linux Reporter: diffgeom at gmail.com Hardware: x86_64 Status: NEW Version: 1.2 Component: Plugin Product: IcedTea-Web After removing ~/.java, ~/.icedtea, starting firefox from command line, I get this when running Marketcaster: java version "1.7.0_03" OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3) OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) (firefox:15228): Gdk-WARNING **: Native Windows wider or taller than 65535 pixels are not supported java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:214) at java.util.zip.ZipFile.(ZipFile.java:144) at java.util.jar.JarFile.(JarFile.java:152) at java.util.jar.JarFile.(JarFile.java:103) at net.sourceforge.jnlp.tools.JarSigner.verifyJar(JarSigner.java:241) at net.sourceforge.jnlp.tools.JarSigner.verifyJars(JarSigner.java:201) at net.sourceforge.jnlp.runtime.JNLPClassLoader.verifyJars(JNLPClassLoader.java:1286) at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:476) at net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:201) at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:320) at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:701) at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:676) at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:886) java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:214) at java.util.zip.ZipFile.(ZipFile.java:144) at java.util.jar.JarFile.(JarFile.java:152) at java.util.jar.JarFile.(JarFile.java:103) at net.sourceforge.jnlp.tools.JarSigner.verifyJar(JarSigner.java:241) at net.sourceforge.jnlp.tools.JarSigner.verifyJars(JarSigner.java:201) at net.sourceforge.jnlp.runtime.JNLPClassLoader.verifyJars(JNLPClassLoader.java:1286) at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:476) at net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:201) at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:320) at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:701) at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:676) at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:886) net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize applet. at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:735) at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:676) at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:886) Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: A fatal error occurred while trying to verify jars. at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:482) at net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:201) at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:320) at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:701) ... 2 more Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: A fatal error occurred while trying to verify jars. at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:482) at net.sourceforge.jnlp.runtime.JNLPClassLoader.(JNLPClassLoader.java:201) at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:320) at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:701) at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:676) at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:886) java.lang.NullPointerException at net.sourceforge.jnlp.NetxPanel.runLoader(NetxPanel.java:154) at sun.applet.AppletPanel.run(AppletPanel.java:379) at java.lang.Thread.run(Thread.java:722) java.lang.NullPointerException at sun.applet.AppletPanel.run(AppletPanel.java:429) at java.lang.Thread.run(Thread.java:722) The firefox and java processes keep running after the firefox window is closed. $ cd ~/.icedtea/cache $ find . -type f ./0/https/us.etrade.com/activetrader/mcastercnd.jar.info ./0/https/us.etrade.com/activetrader/mcastercnd.jar ./recently_used ./1/https/us.etrade.com/activetrader/1343265473512.jar ./1/https/us.etrade.com/activetrader/1343265473512.jar.info Looking at mcastercnd.jar, it seems to be a proper jar file. However running file on 1343265473512.jar says "HTML document, ASCII text, with very long lines, with CRLF line terminators". The file's contains the single line " Archive: ./1/https/us.etrade.com/activetrader/1343265473512.jar", which explains the zip exception. However, it works fine in sun java. I am using ubuntu 12.04 with the latest ubuntu repository versions of firefox, openjdk-7-jre, and icedtea-7-plugin. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/1224baff/attachment.html From jvanek at redhat.com Wed Jul 25 23:31:53 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Thu, 26 Jul 2012 08:31:53 +0200 Subject: IcedTea-Web's javaws on platforms other than Linux In-Reply-To: <501054C4.5070509@gmail.com> References: <501054C4.5070509@gmail.com> Message-ID: <5010E459.8000300@redhat.com> On 07/25/2012 10:19 PM, Weiqi Gao wrote: > Hi, Hi! This task will be definitely appreciated! As far as I know no one tried before. Javaws execution environment is one shell-script-launcher and one jar (and few minor resources) You will have to compile jar on your own (should be nothing hard) and prepare your own launcher. The launcher do nothing more then set up classapth so nothing hard to do. Also compilation of netx.jar itself should be no big task. (compilation of plugin can be much more harder!) So your task will consists mainly of adpting the makefile to target platform makefile or any other build system of your choose. You can probably find hard to adapt all testsuites, but probably this needs not to bother you right now. If you are going to do this "just for yourself" you can be done in few minutes (you can actually reuse our compiled netx.jar and launch it correctly ;) ). If you will take it seriously then you can probably find some obstacles in main makefile transformation. I wish you all the best luck in this task and feel free to ask again! J. > > I hope this is the right list to ask this question. If not, please point me to the right list. > > I'm looking at the possibility of adapting the JNLP client in IcedTea-Web for platforms other than > Linux (Windows, Solaris, MacOSX, etc., essentially where OpenJDK builds) for an OpenJDK based > execution environment. I'm only looking at the JNLP functionality, not the Applet functionality. > > Is this something that people has tried before? Is this something that might be of interest to the > IcedTea-Web community? > > -- > Weiqi Gao > weiqigao at gmail.com > http://www.weiqigao.com/blog/ From fcassia at gmail.com Thu Jul 26 00:50:27 2012 From: fcassia at gmail.com (Fernando Cassia) Date: Thu, 26 Jul 2012 04:50:27 -0300 Subject: IcedTea-Web's javaws on platforms other than Linux In-Reply-To: <501054C4.5070509@gmail.com> References: <501054C4.5070509@gmail.com> Message-ID: On Wed, Jul 25, 2012 at 5:19 PM, Weiqi Gao wrote: > I'm looking at the possibility of adapting the JNLP client in IcedTea-Web > for platforms other than Linux (Windows, Solaris, MacOSX, etc., essentially > where OpenJDK builds) Let me know when you do. I think IBM OS/2 could use Java Web Start (JWS). :) Basically if you make it work on Win32, it will be a recompile away from IBM OS/2. :o) FC From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 01:15:02 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 08:15:02 +0000 Subject: [Bug 982] Regression: crossftp no longer runs throwing a ZipException In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=982 JiriVanek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jvanek at redhat.com Resolution|--- |FIXED --- Comment #1 from JiriVanek --- This works now on head. -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/945f0750/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 01:24:26 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 08:24:26 +0000 Subject: [Bug 1097] Etrade MarketCaster does not work In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1097 JiriVanek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvanek at redhat.com --- Comment #1 from JiriVanek --- If javaws had never similar error (http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=982) then I would probably suspect http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1011 more. As you are writing: "1343265473512.jar says "HTML document, ASCII ..." The I have suspicion that we are trying to open and verify zip which is actually not a zip If this behaviour have really cause in http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1011 then it was fixed and you will be able to test in next release. I'm sorry, but I was not able to verify on this particular application. If you can provide some entry pint where I will be able to debug "something", Then we can be sure more early. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/56ec51fa/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 02:21:47 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 09:21:47 +0000 Subject: [Bug 739] javaws just hangs while downloading jars In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=739 JiriVanek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jvanek at redhat.com Resolution|--- |WONTFIX --- Comment #3 from JiriVanek --- I was not able to reproduce. Anyway - as cache corrupting is already fixed, this does not hurt so much. -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/2a70d9a3/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 02:31:02 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 09:31:02 +0000 Subject: [Bug 840] ClassLoader.getResourceAsStream returning null where sunjdk returns the resource In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=840 JiriVanek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #6 from JiriVanek --- Classlaoder have been dramatically reworked since 1.1.pre, and I was not able to reproduce. I was not able to reproduce also "call the getResourceAsStream is done while initializing static fields" (I will add this to regression suites) -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/731e2168/attachment.html From ptisnovs at icedtea.classpath.org Thu Jul 26 03:15:54 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Thu, 26 Jul 2012 10:15:54 +0000 Subject: /hg/gfx-test: Added ten new tests to the test suite src/org/gfxt... Message-ID: changeset c26a356ed48e in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=c26a356ed48e author: Pavel Tisnovsky date: Thu Jul 26 12:18:34 2012 +0200 Added ten new tests to the test suite src/org/gfxtest/testsuites/PrintTestPolylines.java diffstat: ChangeLog | 5 + src/org/gfxtest/testsuites/PrintTestPolylines.java | 555 +++++++++++++++++++++ 2 files changed, 560 insertions(+), 0 deletions(-) diffs (truncated from 577 to 500 lines): diff -r bcddbf10b1c3 -r c26a356ed48e ChangeLog --- a/ChangeLog Mon Jul 23 10:48:30 2012 +0200 +++ b/ChangeLog Thu Jul 26 12:18:34 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-26 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/PrintTestPolylines.java: + Added ten new tests to this test suite. + 2012-07-23 Pavel Tisnovsky * src/org/gfxtest/framework/PrintTest.java: diff -r bcddbf10b1c3 -r c26a356ed48e src/org/gfxtest/testsuites/PrintTestPolylines.java --- a/src/org/gfxtest/testsuites/PrintTestPolylines.java Mon Jul 23 10:48:30 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestPolylines.java Thu Jul 26 12:18:34 2012 +0200 @@ -632,6 +632,561 @@ } /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesGrayScaleInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP, new PolylineDrawCallbacks() + { + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // compute grayscale value + float gray = 1.0f - (y1 - BORDER) * 4.0f / this.image.getHeight(); + // set polyline color + this.graphics.setColor(GrayscalePalette.createGrayscaleColor(gray)); + // compute grayscale value + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth)); + // and change it for the next iteration + changeStrokeWidth(); + return; + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + // decrease stroke width + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to bevel style and end caps is set to CAP_BUTT. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapButtJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + // decrease stroke width + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to miter style and end caps is set to CAP_BUTT. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapButtJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + // decrease stroke width + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to round style and end caps is set to CAP_BUTT. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapButtJoinRoundInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + // decrease stroke width + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to bevel style and end caps is set to CAP_ROUND. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapRoundJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + // decrease stroke width + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to miter style and end caps is set to CAP_ROUND. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapRoundJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + // decrease stroke width + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to round style and end caps is set to CAP_ROUND. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapRoundJoinRoundInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); + // and change it for the next iteration + changeStrokeWidth(); + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + // decrease stroke width + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to bevel style and end caps is set to CAP_SQUARE. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapSquareJoinBevelInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL)); + // and change it for the next iteration + changeStrokeWidth(); + } + + /** + * Changes stroke width. + */ + private void changeStrokeWidth() + { + // decrease stroke width + this.strokeWidth -= STROKE_WIDTH_DELTA; + // stroke width should not be less than zero + if (this.strokeWidth < MIN_STROKE_WIDTH) + { + this.strokeWidth = MIN_STROKE_WIDTH; + } + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolyline(). Polyline are + * rendered with default width and default end caps. Color of all rendered + * polylines are selected from a grayscale palette. + * Join style is set to miter style and end caps is set to CAP_SQUARE. + * + * @param image + * image to which polylines are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesChangeWidthCapSquareJoinMiterInv(TestImage image, Graphics2D graphics2d) + { + drawPolylines(image, graphics2d, POLYLINE_STEP * 4 / 3, new PolylineDrawCallbacks() + { + /** + * Stroke width. + */ + private float strokeWidth = MAX_STROKE_WIDTH - 2; + + /** + * Callback function called before each polyline is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set stroke width + this.graphics.setStroke(new BasicStroke(this.strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER)); + // and change it for the next iteration + changeStrokeWidth(); + } From andrew at icedtea.classpath.org Thu Jul 26 04:19:34 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Thu, 26 Jul 2012 11:19:34 +0000 Subject: /hg/icedtea7: Bump to using 7u6b20 & latest 2.1 HotSpot. Message-ID: changeset 31f8ee76984c in /hg/icedtea7 details: http://icedtea.classpath.org/hg/icedtea7?cmd=changeset;node=31f8ee76984c author: Andrew John Hughes date: Thu Jul 26 12:19:25 2012 +0100 Bump to using 7u6b20 & latest 2.1 HotSpot. 2012-07-26 Andrew John Hughes * Makefile.am: (OPENJDK_VERSION): Bump to b20. (CORBA_CHANGESET): Update to IcedTea7 forest head. (HOTSPOT_CHANGESET): Removed. (JAXP_CHANGESET): Update to IcedTea7 forest head. (JAXWS_CHANGESET): Likewise. (JDK_CHANGESET): Likewise. (LANGTOOLS_CHANGESET): Likewise. (OPENJDK_CHANGESET): Likewise. (CORBA_SHA256SUM): Likewise. (HOTSPOT_SHA256SUM): Removed. (JAXP_SHA256SUM): Update to IcedTea7 forest head. (JAXWS_SHA256SUM): Likewise. (JDK_SHA256SUM): Likewise. (LANGTOOLS_SHA256SUM): Likewise. (OPENJDK_SHA256SUM): Likewise. * hotspot.map: Update changesets and checksums for default & zero HotSpot. * patches/boot/ecj-diamond.patch: Add new cases in CORBA, com.sun.beans.TypeResolver and File{Input,Output}Stream. Remove dead FileDescriptor cases. * patches/boot/ecj-trywithresources.patch: Remove dead FileDescriptor case. diffstat: ChangeLog | 28 + Makefile.am | 28 +- hotspot.map | 4 +- patches/boot/ecj-diamond.patch | 962 +++++++++++++++++-------------- patches/boot/ecj-trywithresources.patch | 142 +-- 5 files changed, 620 insertions(+), 544 deletions(-) diffs (truncated from 2945 to 500 lines): diff -r dc1eb9ec0fef -r 31f8ee76984c ChangeLog --- a/ChangeLog Wed Jul 25 22:48:43 2012 +0100 +++ b/ChangeLog Thu Jul 26 12:19:25 2012 +0100 @@ -1,3 +1,31 @@ +2012-07-26 Andrew John Hughes + + * Makefile.am: + (OPENJDK_VERSION): Bump to b20. + (CORBA_CHANGESET): Update to IcedTea7 forest head. + (HOTSPOT_CHANGESET): Removed. + (JAXP_CHANGESET): Update to IcedTea7 forest head. + (JAXWS_CHANGESET): Likewise. + (JDK_CHANGESET): Likewise. + (LANGTOOLS_CHANGESET): Likewise. + (OPENJDK_CHANGESET): Likewise. + (CORBA_SHA256SUM): Likewise. + (HOTSPOT_SHA256SUM): Removed. + (JAXP_SHA256SUM): Update to IcedTea7 forest head. + (JAXWS_SHA256SUM): Likewise. + (JDK_SHA256SUM): Likewise. + (LANGTOOLS_SHA256SUM): Likewise. + (OPENJDK_SHA256SUM): Likewise. + * hotspot.map: + Update changesets and checksums for default + & zero HotSpot. + * patches/boot/ecj-diamond.patch: Add new cases + in CORBA, com.sun.beans.TypeResolver and + File{Input,Output}Stream. Remove dead FileDescriptor + cases. + * patches/boot/ecj-trywithresources.patch: + Remove dead FileDescriptor case. + 2012-07-25 Andrew John Hughes * Makefile.am: diff -r dc1eb9ec0fef -r 31f8ee76984c Makefile.am --- a/Makefile.am Wed Jul 25 22:48:43 2012 +0100 +++ b/Makefile.am Thu Jul 26 12:19:25 2012 +0100 @@ -1,24 +1,22 @@ # Dependencies -OPENJDK_VERSION = b16 +OPENJDK_VERSION = b20 JDK_UPDATE_VERSION = 06 COMBINED_VERSION = $(JDK_UPDATE_VERSION)-$(OPENJDK_VERSION) -CORBA_CHANGESET = a7ae26981729 -HOTSPOT_CHANGESET = 3359eef69d1e -JAXP_CHANGESET = 411912b74c9c -JAXWS_CHANGESET = d5997e503698 -JDK_CHANGESET = 0f03c3a0bf94 -LANGTOOLS_CHANGESET = 480d4eb554fc -OPENJDK_CHANGESET = 7f5ea73378df +CORBA_CHANGESET = 7541673f1f87 +JAXP_CHANGESET = fc3d8d956b08 +JAXWS_CHANGESET = fd4311742772 +JDK_CHANGESET = f46deb5db4f9 +LANGTOOLS_CHANGESET = ba340b8fe8cf +OPENJDK_CHANGESET = 7e0976a9c562 -CORBA_SHA256SUM = d1e6246b72f4efcc2834ce22fa6d7e9540af77803b4450e3c7b8beebc553b24c -HOTSPOT_SHA256SUM = c10b4208b76c1012e91774bc8a29f561fbb4747fb5bbebe3267f3cbaa24b8c5a -JAXP_SHA256SUM = 77de1a8c4ab40652d0cf9c862c543376a877eb9399ad20e653c7103c599640e4 -JAXWS_SHA256SUM = 4fdb7a02b9d42fef84a7fb0f2de2b4c15a737a14be93b5de1c5f6d658072cdea -JDK_SHA256SUM = 9c5790b4e35f52c351900b9e71ce0c81479961a6146cbf6b74ef2a2d3c802fd5 -LANGTOOLS_SHA256SUM = 6a3995facdaae90fd7c68faa6c8a566825317136a0064892d71a76f5d5f09efe -OPENJDK_SHA256SUM = a426ab622e51d5ca40a7da4af4b42c2c216f7c27b56190df36e3bf7fea8529ca +CORBA_SHA256SUM = 9c539b60fa8226175830d56fbaf671c1e64952dc6c05114fa98b890e738bd2e6 +JAXP_SHA256SUM = 6787b6967b7a12415a326810eac334018dfe1d283e529d4c2251ff4ffd19b967 +JAXWS_SHA256SUM = 43df2c99755a1f0c62c0a6607401e3174c246c723f53a8771f27dfcf36ab2683 +JDK_SHA256SUM = a181187f67642d007cd5ce2c656a95c5bbd3c41dcc0ed853e0534198186ccf70 +LANGTOOLS_SHA256SUM = 291ff0a54dc26c0a1e0c3f02adee776e66c801d761a89894c1c8f6d3fb4b42a4 +OPENJDK_SHA256SUM = 5f32a88ca7a5c495e55ebe0b8bacef96685476f1b028fb9517d6babe8cc67edc CACAO_VERSION = a567bcb7f589 CACAO_SHA256SUM = d49f79debc131a5694cae6ab3ba2864e7f3249ee8d9dc09aae8afdd4dc6b09f9 diff -r dc1eb9ec0fef -r 31f8ee76984c hotspot.map --- a/hotspot.map Wed Jul 25 22:48:43 2012 +0100 +++ b/hotspot.map Thu Jul 26 12:19:25 2012 +0100 @@ -1,3 +1,3 @@ # version url changeset sha256sum -default http://icedtea.classpath.org/hg/icedtea7-forest/hotspot 3359eef69d1e c10b4208b76c1012e91774bc8a29f561fbb4747fb5bbebe3267f3cbaa24b8c5a -zero http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/hotspot 8b7c4c5f6ba9 22866990d143e76ced94b76defa3051e5e5d9a51fd272d63daa0df272d6406a2 +default http://icedtea.classpath.org/hg/icedtea7-forest/hotspot 37da454d89f8 9df26636ed3133d08a5a9c6fe248d8306265c57b50efd3ab9580655898bbe9a2 +zero http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/hotspot b41a43560dc8 25d13a4be1c343b620d2a85a47b8b654abaee3541968d205128ca69cf46fc17c diff -r dc1eb9ec0fef -r 31f8ee76984c patches/boot/ecj-diamond.patch --- a/patches/boot/ecj-diamond.patch Wed Jul 25 22:48:43 2012 +0100 +++ b/patches/boot/ecj-diamond.patch Thu Jul 26 12:19:25 2012 +0100 @@ -1,6 +1,66 @@ +diff -Nru openjdk-boot.orig/corba/src/share/classes/com/sun/corba/se/impl/encoding/CachedCodeBase.java openjdk-boot/corba/src/share/classes/com/sun/corba/se/impl/encoding/CachedCodeBase.java +--- openjdk-boot.orig/corba/src/share/classes/com/sun/corba/se/impl/encoding/CachedCodeBase.java 2012-07-26 10:38:37.590704662 +0100 ++++ openjdk-boot/corba/src/share/classes/com/sun/corba/se/impl/encoding/CachedCodeBase.java 2012-07-26 10:38:52.562995294 +0100 +@@ -58,7 +58,7 @@ + private CorbaConnection conn; + + private static Object iorMapLock = new Object(); +- private static Hashtable iorMap = new Hashtable<>(); ++ private static Hashtable iorMap = new Hashtable(); + + public static synchronized void cleanCache( ORB orb ) { + synchronized (iorMapLock) { +diff -Nru openjdk-boot.orig/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java openjdk-boot/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java +--- openjdk-boot.orig/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java 2012-07-26 10:42:49.783575656 +0100 ++++ openjdk-boot/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java 2012-07-26 10:43:32.556396764 +0100 +@@ -1316,7 +1316,7 @@ + protected void shutdownServants(boolean wait_for_completion) { + Set oaset; + synchronized (this) { +- oaset = new HashSet<>(requestDispatcherRegistry.getObjectAdapterFactories()); ++ oaset = new HashSet(requestDispatcherRegistry.getObjectAdapterFactories()); + } + + for (ObjectAdapterFactory oaf : oaset) +diff -Nru openjdk-boot.orig/corba/src/share/classes/com/sun/corba/se/impl/orbutil/threadpool/ThreadPoolImpl.java openjdk-boot/corba/src/share/classes/com/sun/corba/se/impl/orbutil/threadpool/ThreadPoolImpl.java +--- openjdk-boot.orig/corba/src/share/classes/com/sun/corba/se/impl/orbutil/threadpool/ThreadPoolImpl.java 2012-07-26 10:42:30.031195989 +0100 ++++ openjdk-boot/corba/src/share/classes/com/sun/corba/se/impl/orbutil/threadpool/ThreadPoolImpl.java 2012-07-26 10:43:50.748745570 +0100 +@@ -108,7 +108,7 @@ + private ThreadGroup threadGroup; + + Object workersLock = new Object(); +- List workers = new ArrayList<>(); ++ List workers = new ArrayList(); + + /** + * This constructor is used to create an unbounded threadpool +@@ -154,7 +154,7 @@ + // Copy to avoid concurrent modification problems. + List copy = null; + synchronized (workersLock) { +- copy = new ArrayList<>(workers); ++ copy = new ArrayList(workers); + } + + for (WorkerThread wt : copy) { +diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/beans/TypeResolver.java openjdk-boot/jdk/src/share/classes/com/sun/beans/TypeResolver.java +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/beans/TypeResolver.java 2012-07-26 10:32:17.027354391 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/beans/TypeResolver.java 2012-07-26 10:31:04.514176534 +0100 +@@ -239,9 +239,9 @@ + } + } + +- private static final WeakCache CACHE = new WeakCache<>(); ++ private static final WeakCache CACHE = new WeakCache(); + +- private final Map, Type> map = new HashMap<>(); ++ private final Map, Type> map = new HashMap, Type>(); + + /** + * Constructs the type resolver for the given actual type. diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Attribute.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Attribute.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Attribute.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Attribute.java 2012-06-29 19:24:33.034867658 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Attribute.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Attribute.java 2012-07-26 10:21:48.605049307 +0100 @@ -103,9 +103,9 @@ return this.def.compareTo(that.def); } @@ -72,8 +132,8 @@ for (int i = 0; i < layout.length(); i++) { if (layout.charAt(i++) != '[') diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/BandStructure.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/BandStructure.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/BandStructure.java 2012-06-29 18:56:07.047976181 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/BandStructure.java 2012-06-29 19:24:33.050867912 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/BandStructure.java 2012-07-26 10:21:09.192395302 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/BandStructure.java 2012-07-26 10:21:48.625049638 +0100 @@ -257,7 +257,7 @@ assert(basicCodings[_meta_default] == null); assert(basicCodings[_meta_canon_min] != null); @@ -142,8 +202,8 @@ return true; } diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/ClassReader.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/ClassReader.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/ClassReader.java 2012-06-29 18:56:06.371965522 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/ClassReader.java 2012-06-29 19:24:33.050867912 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/ClassReader.java 2012-07-26 10:21:09.024392512 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/ClassReader.java 2012-07-26 10:21:48.625049638 +0100 @@ -466,7 +466,7 @@ void readInnerClasses(Class cls) throws IOException { @@ -154,8 +214,8 @@ InnerClass ic = new InnerClass(readClassRef(), diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/CodingChooser.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/CodingChooser.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/CodingChooser.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/CodingChooser.java 2012-06-29 19:24:33.050867912 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/CodingChooser.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/CodingChooser.java 2012-07-26 10:21:48.625049638 +0100 @@ -743,9 +743,9 @@ // Steps 1/2/3 are interdependent, and may be iterated. // Steps 4 and 5 may be decided independently afterward. @@ -192,8 +252,8 @@ if (popset.add(values[i])) popvals.add(values[i]); } diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Coding.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Coding.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Coding.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Coding.java 2012-06-29 19:24:33.050867912 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Coding.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Coding.java 2012-07-26 10:21:48.625049638 +0100 @@ -402,7 +402,7 @@ private static Map codeMap; @@ -204,8 +264,8 @@ Coding x1 = codeMap.get(x0); if (x1 == null) codeMap.put(x0, x1 = x0); diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java 2012-06-29 19:24:33.050867912 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java 2012-07-26 10:21:48.625049638 +0100 @@ -915,7 +915,7 @@ public static Index[] partition(Index ix, int[] keys) { @@ -234,8 +294,8 @@ Entry e = work.previous(); work.remove(); // pop stack diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java 2012-06-29 18:56:07.047976181 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java 2012-06-29 19:24:33.050867912 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java 2012-07-26 10:21:09.192395302 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java 2012-07-26 10:21:48.629049705 +0100 @@ -60,7 +60,7 @@ ResourceBundle.getBundle("com.sun.java.util.jar.pack.DriverResource"); @@ -273,8 +333,8 @@ for (String optline : options.split("\n")) { String[] words = optline.split("\\p{Space}+"); diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/FixedList.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/FixedList.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/FixedList.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/FixedList.java 2012-06-29 19:24:33.050867912 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/FixedList.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/FixedList.java 2012-07-26 10:21:48.629049705 +0100 @@ -45,7 +45,7 @@ private final ArrayList flist; @@ -285,8 +345,8 @@ for (int i = 0 ; i < capacity ; i++) { flist.add(null); diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Fixups.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Fixups.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Fixups.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Fixups.java 2012-06-29 19:24:33.050867912 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Fixups.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Fixups.java 2012-07-26 10:21:48.629049705 +0100 @@ -126,11 +126,11 @@ public void setBytes(byte[] newBytes) { if (bytes == newBytes) return; @@ -311,8 +371,8 @@ static final int LOC_SHIFT = 1; diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Package.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Package.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Package.java 2012-06-29 18:56:06.375965584 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Package.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Package.java 2012-07-26 10:21:09.024392512 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Package.java 2012-07-26 10:21:48.629049705 +0100 @@ -112,7 +112,7 @@ public static final Attribute.Layout attrSourceFileSpecial; public static final Map attrDefs; @@ -477,8 +537,8 @@ // Add to the end of ths list: if (!fileSet.contains(cls.file)) diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageReader.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageReader.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageReader.java 2012-06-29 18:56:07.047976181 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageReader.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageReader.java 2012-07-26 10:21:09.192395302 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageReader.java 2012-07-26 10:21:48.629049705 +0100 @@ -686,7 +686,7 @@ cp_Signature_classes.expectLength(getIntTotal(numSigClasses)); cp_Signature_classes.readFrom(in); @@ -592,8 +652,8 @@ ClassEntry thisClass = curClass.thisClass; ClassEntry superClass = curClass.superClass; diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java 2012-06-29 18:56:07.051976244 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java 2012-07-26 10:21:09.196395369 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java 2012-07-26 10:21:48.629049705 +0100 @@ -116,7 +116,7 @@ int[][] attrCounts; // count attr. occurences @@ -649,8 +709,8 @@ for (Class cls : pkg.classes) { if (!cls.hasInnerClasses()) continue; diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java 2012-07-26 10:21:48.629049705 +0100 @@ -181,8 +181,8 @@ final Map attrDefs; final Map attrCommands; @@ -681,8 +741,8 @@ for (JarEntry je : Collections.list(jf.entries())) { InFile inFile = new InFile(jf, je); diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PopulationCoding.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PopulationCoding.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PopulationCoding.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PopulationCoding.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PopulationCoding.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PopulationCoding.java 2012-07-26 10:21:48.629049705 +0100 @@ -309,7 +309,7 @@ // As each new value is added, we assert that the value // was not already in the set. @@ -693,8 +753,8 @@ maxForDebug += fillp; int min = Integer.MIN_VALUE; // farthest from the center diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PropMap.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PropMap.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PropMap.java 2012-06-29 18:56:07.051976244 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PropMap.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/PropMap.java 2012-07-26 10:21:09.196395369 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/PropMap.java 2012-07-26 10:21:48.629049705 +0100 @@ -47,8 +47,8 @@ */ @@ -716,8 +776,8 @@ while (res.remove(null)); return res; diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/TLGlobals.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/TLGlobals.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/TLGlobals.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/TLGlobals.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/TLGlobals.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/TLGlobals.java 2012-07-26 10:21:48.629049705 +0100 @@ -58,12 +58,12 @@ private final Map memberEntries; @@ -738,8 +798,8 @@ } diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/UnpackerImpl.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/UnpackerImpl.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/UnpackerImpl.java 2012-06-29 18:56:07.051976244 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/UnpackerImpl.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/UnpackerImpl.java 2012-07-26 10:21:09.196395369 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/UnpackerImpl.java 2012-07-26 10:21:48.629049705 +0100 @@ -232,7 +232,7 @@ props.setProperty(java.util.jar.Pack200.Unpacker.PROGRESS,"50"); pkg.ensureAllClassFiles(); @@ -750,8 +810,8 @@ String name = file.nameString; JarEntry je = new JarEntry(Utils.getJarEntryName(name)); diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Utils.java openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Utils.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Utils.java 2012-06-29 18:56:07.051976244 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Utils.java 2012-06-29 19:24:33.054867976 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/java/util/jar/pack/Utils.java 2012-07-26 10:21:09.196395369 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/java/util/jar/pack/Utils.java 2012-07-26 10:21:48.629049705 +0100 @@ -132,7 +132,7 @@ // Keep a TLS point to the global data and environment. // This makes it simpler to supply environmental options @@ -762,8 +822,8 @@ // convenience methods to access the TL globals static TLGlobals getTLGlobals() { diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java openjdk-boot/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java 2012-06-29 19:24:33.058868039 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java 2012-07-26 10:21:48.633049772 +0100 @@ -1284,7 +1284,7 @@ */ public Collection toCollection() throws SQLException { @@ -783,8 +843,8 @@ // create a copy CachedRowSetImpl crsTemp; diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java openjdk-boot/jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java 2012-06-29 19:24:33.070868229 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java 2012-07-26 10:21:48.633049772 +0100 @@ -222,7 +222,7 @@ // either of the setter methods have been set. if(boolColId){ @@ -795,8 +855,8 @@ if( (strMatchKey = (cRowset.getMatchColumnNames())[i]) != null) { iMatchKey = cRowset.findColumn(strMatchKey); diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/callback/DialogCallbackHandler.java openjdk-boot/jdk/src/share/classes/com/sun/security/auth/callback/DialogCallbackHandler.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/callback/DialogCallbackHandler.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/callback/DialogCallbackHandler.java 2012-06-29 19:24:33.070868229 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/callback/DialogCallbackHandler.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/callback/DialogCallbackHandler.java 2012-07-26 10:21:48.645049971 +0100 @@ -99,10 +99,10 @@ throws UnsupportedCallbackException { @@ -811,8 +871,8 @@ ConfirmationInfo confirmation = new ConfirmationInfo(); diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/login/ConfigFile.java openjdk-boot/jdk/src/share/classes/com/sun/security/auth/login/ConfigFile.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/login/ConfigFile.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/login/ConfigFile.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/login/ConfigFile.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/login/ConfigFile.java 2012-07-26 10:21:48.645049971 +0100 @@ -152,7 +152,7 @@ // new configuration @@ -841,8 +901,8 @@ String value; while (peek(";") == false) { diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/JndiLoginModule.java openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/JndiLoginModule.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/JndiLoginModule.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/JndiLoginModule.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/JndiLoginModule.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/JndiLoginModule.java 2012-07-26 10:21:48.645049971 +0100 @@ -184,7 +184,7 @@ private UnixNumericUserPrincipal UIDPrincipal; private UnixNumericGroupPrincipal GIDPrincipal; @@ -853,8 +913,8 @@ // initial state private Subject subject; diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/KeyStoreLoginModule.java openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/KeyStoreLoginModule.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/KeyStoreLoginModule.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/KeyStoreLoginModule.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/KeyStoreLoginModule.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/KeyStoreLoginModule.java 2012-07-26 10:21:48.645049971 +0100 @@ -658,7 +658,7 @@ throw new FailedLoginException( "Unable to find X.509 certificate chain in keystore"); @@ -865,8 +925,8 @@ certList.add(fromKeyStore[i]); } diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/SolarisLoginModule.java openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/SolarisLoginModule.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/SolarisLoginModule.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/SolarisLoginModule.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/SolarisLoginModule.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/SolarisLoginModule.java 2012-07-26 10:21:48.645049971 +0100 @@ -76,7 +76,7 @@ private SolarisNumericUserPrincipal UIDPrincipal; private SolarisNumericGroupPrincipal GIDPrincipal; @@ -877,8 +937,8 @@ /** * Initialize this LoginModule. diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/UnixLoginModule.java openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/UnixLoginModule.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/UnixLoginModule.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/UnixLoginModule.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/module/UnixLoginModule.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/module/UnixLoginModule.java 2012-07-26 10:21:48.645049971 +0100 @@ -70,7 +70,7 @@ private UnixNumericUserPrincipal UIDPrincipal; private UnixNumericGroupPrincipal GIDPrincipal; @@ -889,8 +949,8 @@ /** * Initialize this LoginModule. diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/PolicyFile.java openjdk-boot/jdk/src/share/classes/com/sun/security/auth/PolicyFile.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/PolicyFile.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/PolicyFile.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/security/auth/PolicyFile.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/security/auth/PolicyFile.java 2012-07-26 10:21:48.645049971 +0100 @@ -1180,7 +1180,7 @@ // Done return certs; @@ -901,8 +961,8 @@ while (i < certs.length) { userCertList.add(certs[i]); diff -Nru openjdk-boot.orig/jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java openjdk-boot/jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java ---- openjdk-boot.orig/jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java 2012-07-26 10:21:48.645049971 +0100 @@ -59,7 +59,7 @@ // Maps ThreadReference to ThreadTrace instances @@ -913,8 +973,8 @@ EventThread(VirtualMachine vm, String[] excludes, PrintWriter writer) { super("event-handler"); diff -Nru openjdk-boot.orig/jdk/src/share/classes/java/beans/Introspector.java openjdk-boot/jdk/src/share/classes/java/beans/Introspector.java ---- openjdk-boot.orig/jdk/src/share/classes/java/beans/Introspector.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/java/beans/Introspector.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/java/beans/Introspector.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/java/beans/Introspector.java 2012-07-26 10:21:48.645049971 +0100 @@ -95,7 +95,7 @@ public final static int IGNORE_ALL_BEANINFO = 3; @@ -925,8 +985,8 @@ private Class beanClass; private BeanInfo explicitBeanInfo; diff -Nru openjdk-boot.orig/jdk/src/share/classes/java/beans/ThreadGroupContext.java openjdk-boot/jdk/src/share/classes/java/beans/ThreadGroupContext.java ---- openjdk-boot.orig/jdk/src/share/classes/java/beans/ThreadGroupContext.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/java/beans/ThreadGroupContext.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/java/beans/ThreadGroupContext.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/java/beans/ThreadGroupContext.java 2012-07-26 10:21:48.645049971 +0100 @@ -42,7 +42,7 @@ */ final class ThreadGroupContext { @@ -946,8 +1006,8 @@ return this.beanInfoCache.put(type, info); } diff -Nru openjdk-boot.orig/jdk/src/share/classes/java/io/DeleteOnExitHook.java openjdk-boot/jdk/src/share/classes/java/io/DeleteOnExitHook.java ---- openjdk-boot.orig/jdk/src/share/classes/java/io/DeleteOnExitHook.java 2012-06-29 15:21:00.000000000 +0100 -+++ openjdk-boot/jdk/src/share/classes/java/io/DeleteOnExitHook.java 2012-06-29 19:24:33.074868292 +0100 +--- openjdk-boot.orig/jdk/src/share/classes/java/io/DeleteOnExitHook.java 2012-07-25 18:24:09.000000000 +0100 ++++ openjdk-boot/jdk/src/share/classes/java/io/DeleteOnExitHook.java 2012-07-26 10:21:48.645049971 +0100 @@ -34,7 +34,7 @@ */ @@ -966,9 +1026,21 @@ // reverse the list to maintain previous jdk deletion order. // Last in first deleted. +diff -Nru openjdk-boot.orig/jdk/src/share/classes/java/io/FileInputStream.java openjdk-boot/jdk/src/share/classes/java/io/FileInputStream.java +--- openjdk-boot.orig/jdk/src/share/classes/java/io/FileInputStream.java 2012-07-26 10:31:51.994948096 +0100 ++++ openjdk-boot/jdk/src/share/classes/java/io/FileInputStream.java 2012-07-26 10:31:18.682406893 +0100 +@@ -57,7 +57,7 @@ + private volatile boolean closed = false; + + private static final ThreadLocal runningFinalize = +- new ThreadLocal<>(); ++ new ThreadLocal(); From ptisnovs at icedtea.classpath.org Thu Jul 26 05:36:39 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Thu, 26 Jul 2012 12:36:39 +0000 Subject: /hg/rhino-tests: Added 14 new tests to the test case CompiledScr... Message-ID: changeset 60e68ea5a35f in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=60e68ea5a35f author: Pavel Tisnovsky date: Thu Jul 26 14:39:16 2012 +0200 Added 14 new tests to the test case CompiledScriptTest (it was empty before this push). diffstat: ChangeLog | 5 + src/org/RhinoTests/CompiledScriptTest.java | 260 ++++++++++++++++++++++++++++- 2 files changed, 261 insertions(+), 4 deletions(-) diffs (290 lines): diff -r 6c5e550a5579 -r 60e68ea5a35f ChangeLog --- a/ChangeLog Tue Jul 24 13:30:43 2012 +0200 +++ b/ChangeLog Thu Jul 26 14:39:16 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-26 Pavel Tisnovsky + + * src/org/RhinoTests/CompiledScriptTest.java: + Added 14 new tests to this test case (it was empty before this push). + 2012-07-24 Pavel Tisnovsky * Makefile: diff -r 6c5e550a5579 -r 60e68ea5a35f src/org/RhinoTests/CompiledScriptTest.java --- a/src/org/RhinoTests/CompiledScriptTest.java Tue Jul 24 13:30:43 2012 +0200 +++ b/src/org/RhinoTests/CompiledScriptTest.java Thu Jul 26 14:39:16 2012 +0200 @@ -40,18 +40,270 @@ package org.RhinoTests; +import javax.script.Compilable; +import javax.script.CompiledScript; +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import javax.script.ScriptException; + /** - * TODO: not implemented - * @author ptisnovs - * + * This test case check the behaviour of CompiledScript abstract class and it's + * descendents. + * + * @author Pavel Tisnovsky */ -public class CompiledScriptTest { +public class CompiledScriptTest extends BaseRhinoTest { + + /** + * Instance of ScriptEngineManager which is used by all tests in this test + * case. + */ + ScriptEngineManager engineManager; + + /** + * Instance of ScriptEngine which is used by all tests in this test case. + */ + ScriptEngine scriptEngine; + + @Override + protected void setUp(String[] args) { + this.engineManager = new ScriptEngineManager(); + this.scriptEngine = this.engineManager.getEngineByName("JavaScript"); + } + + @Override + protected void tearDown() { + // this block could be empty + return; + } + + /** + * Helper method which tries to retrieve an instance of class which + * implements CompiledScript interface for a given script. + * + * @param scriptText + * script source code + * @return instance of CompiledScript class + * @throws AssertionError + * when CompilingEngine cannot be retrieved + * @throws ScriptException + * thrown when script cannot be compiled + */ + private CompiledScript getCompiledScript(String scriptText) throws AssertionError, ScriptException { + // check if retyping could be done + assertTrue(this.scriptEngine instanceof Compilable, "ScriptEngine does not implement Compilable"); + // scriptEngine should be also retyped to Compilable, at least in case of JavaScript. + Compilable compilingEngine = (Compilable) this.scriptEngine; + // should not happen, but... + assertNotNull(compilingEngine, "cannot get compiling engine"); + // try to compile given script + return compileScript(scriptText, compilingEngine); + } + + /** + * Helper method which tries to compile given JavaScript. + * + * @param scriptText script source code + * @param compilingEngine instance of class which implements Compilable interface + * @return compiled script + * @throws ScriptException + * @throws AssertionError + */ + private CompiledScript compileScript(String scriptText, Compilable compilingEngine) throws ScriptException, AssertionError { + CompiledScript script = compilingEngine.compile(scriptText); + assertNotNull(script, "cannot compile script"); + return script; + } + /** + * Test if it is possible to compile script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testCompileScriptStoredInString() throws ScriptException { + Compilable compilingEngine = (Compilable)this.scriptEngine; + assertNotNull(compilingEngine, "cannot get compiling engine"); + CompiledScript script = compilingEngine.compile(""); + assertNotNull(script, "cannot compile script"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testCompileAndRunSimpleScriptStoredInString() throws ScriptException { + CompiledScript script = getCompiledScript(""); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalIntegerExpression() throws ScriptException { + CompiledScript script = getCompiledScript("1+2*3"); + Object result = script.eval(); + assertNotNull(result, "result should not be null"); + assertTrue(result instanceof Number, "result is not an instance of Number"); + assertTrue(result instanceof Integer, "result is not an instance of Integer"); + int integerResult = ((Integer) result).intValue(); + assertEquals(integerResult, 7, "wrong result " + integerResult); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalDoubleExpression() throws ScriptException { + CompiledScript script = getCompiledScript("1./2"); + Object result = script.eval(); + assertTrue(result instanceof Number, "result is not an instance of Number"); + assertTrue(result instanceof Double, "result is not an instance of Integer"); + double doubleResult = ((Double) result).doubleValue(); + assertEquals(doubleResult, 0.5f, "wrong result " + doubleResult); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalStringExpression1() throws ScriptException { + CompiledScript script = getCompiledScript("'Hello' + ' ' + 'world'"); + Object result = script.eval(); + assertNotNull(result, "result should not be null"); + assertTrue(result instanceof String, "result is not an instance of String"); + String stringResult = (String)result; + assertEquals(stringResult, "Hello world", "wrong result " + stringResult); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalStringExpression2() throws ScriptException { + CompiledScript script = getCompiledScript("'Hello world!'.substring(4, 7)"); + Object result = script.eval(); + assertNotNull(result, "result should not be null"); + assertTrue(result instanceof String, "result is not an instance of String"); + String stringResult = (String)result; + assertEquals(stringResult, "o w", "wrong result " + stringResult); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalPrintCommand1() throws ScriptException { + CompiledScript script = getCompiledScript("print('Hello world\\n')"); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalPrintCommand2() throws ScriptException { + CompiledScript script = getCompiledScript("print('\\tHello world\\n')"); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalPrintCommand3() throws ScriptException { + CompiledScript script = getCompiledScript("print('')"); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalPrintCommand4() throws ScriptException { + CompiledScript script = getCompiledScript("print()"); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalPrintlnCommand1() throws ScriptException { + CompiledScript script = getCompiledScript("println('Hello world')"); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalPrintlnCommand2() throws ScriptException { + CompiledScript script = getCompiledScript("println('\\tHello world')"); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalPrintlnCommand3() throws ScriptException { + CompiledScript script = getCompiledScript("println('')"); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** + * Test if it is possible to compile and then run script from a string. + * + * @throws ScriptException + * this exception is thrown when this test case failed. + */ + protected void testEvalPrintlnCommand4() throws ScriptException { + CompiledScript script = getCompiledScript("println()"); + Object result = script.eval(); + assertNull(result, "result should be null"); + } + + /** * Entry point to this test case. * * @param args parameters passed from command line */ public static void main(String[] args) { + new CompiledScriptTest().doTests(args); } } From weiqigao at gmail.com Thu Jul 26 05:45:25 2012 From: weiqigao at gmail.com (Weiqi Gao) Date: Thu, 26 Jul 2012 07:45:25 -0500 Subject: IcedTea-Web's javaws on platforms other than Linux In-Reply-To: <5010E459.8000300@redhat.com> References: <501054C4.5070509@gmail.com> <5010E459.8000300@redhat.com> Message-ID: <5DC63A9A-2B0F-42EA-87C7-28E525809253@gmail.com> Jiri, Thank you for your reply. That gives me some direction. I'm exploring the possibilities for a customer. I'll let the list know if I get the go ahead to do the port. -- Weiqi On Jul 26, 2012, at 1:31 AM, Jiri Vanek wrote: > On 07/25/2012 10:19 PM, Weiqi Gao wrote: >> Hi, > Hi! This task will be definitely appreciated! > > As far as I know no one tried before. Javaws execution environment is one shell-script-launcher and one jar (and few minor resources) > > You will have to compile jar on your own (should be nothing hard) and prepare your own launcher. > > The launcher do nothing more then set up classapth so nothing hard to do. Also compilation of netx.jar itself should be no big task. (compilation of plugin can be much more harder!) > > So your task will consists mainly of adpting the makefile to target platform makefile or any other build system of your choose. You can probably find hard to adapt all testsuites, but probably this needs not to bother you right now. > > If you are going to do this "just for yourself" you can be done in few minutes (you can actually reuse our compiled netx.jar and launch it correctly ;) ). If you will take it seriously then you can probably find some obstacles in main makefile transformation. > > I wish you all the best luck in this task and feel free to ask again! > > J. > >> >> I hope this is the right list to ask this question. If not, please point me to the right list. >> >> I'm looking at the possibility of adapting the JNLP client in IcedTea-Web for platforms other than >> Linux (Windows, Solaris, MacOSX, etc., essentially where OpenJDK builds) for an OpenJDK based >> execution environment. I'm only looking at the JNLP functionality, not the Applet functionality. >> >> Is this something that people has tried before? Is this something that might be of interest to the >> IcedTea-Web community? >> >> -- >> Weiqi Gao >> weiqigao at gmail.com >> http://www.weiqigao.com/blog/ > > From dalibor.topic at oracle.com Thu Jul 26 05:58:01 2012 From: dalibor.topic at oracle.com (Dalibor Topic) Date: Thu, 26 Jul 2012 14:58:01 +0200 Subject: IcedTea-Web's javaws on platforms other than Linux In-Reply-To: <5010E459.8000300@redhat.com> References: <501054C4.5070509@gmail.com> <5010E459.8000300@redhat.com> Message-ID: <50113ED9.1080309@oracle.com> On 7/26/12 8:31 AM, Jiri Vanek wrote: > On 07/25/2012 10:19 PM, Weiqi Gao wrote: >> Hi, > Hi! This task will be definitely appreciated! > > As far as I know no one tried before. FreeBSD: http://www.freshports.org/java/icedtea-web OS/2: http://svn.netlabs.org/java/wiki/IcedTea-Web cheers, dalibor topic -- Oracle Dalibor Topic | Principal Product Manager Phone: +494089091214 | Mobile: +491737185961 Oracle Java Platform Group ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | 20097 Hamburg ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstr. 25, D-80992 M?nchen Registergericht: Amtsgericht M?nchen, HRA 95603 Gesch?ftsf?hrer: J?rgen Kunz Komplement?rin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher Green Oracle Oracle is committed to developing practices and products that help protect the environment From ahughes at redhat.com Thu Jul 26 06:56:53 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Thu, 26 Jul 2012 09:56:53 -0400 (EDT) Subject: IcedTea-Web's javaws on platforms other than Linux In-Reply-To: <5010E459.8000300@redhat.com> Message-ID: <1356960166.3743774.1343311013497.JavaMail.root@redhat.com> ----- Original Message ----- > On 07/25/2012 10:19 PM, Weiqi Gao wrote: > > Hi, > Hi! This task will be definitely appreciated! > > As far as I know no one tried before. Javaws execution environment > is one shell-script-launcher and > one jar (and few minor resources) > > You will have to compile jar on your own (should be nothing hard) and > prepare your own launcher. > > The launcher do nothing more then set up classapth so nothing hard to > do. Also compilation of > netx.jar itself should be no big task. (compilation of plugin can be > much more harder!) > > So your task will consists mainly of adpting the makefile to target > platform makefile or any other > build system of your choose. You can probably find hard to adapt all > testsuites, but probably this > needs not to bother you right now. > > If you are going to do this "just for yourself" you can be done in > few minutes (you can actually > reuse our compiled netx.jar and launch it correctly ;) ). If you will > take it seriously then you > can probably find some obstacles in main makefile transformation. > > I wish you all the best luck in this task and feel free to ask again! > > J. > > > > > I hope this is the right list to ask this question. If not, please > > point me to the right list. > > > > I'm looking at the possibility of adapting the JNLP client in > > IcedTea-Web for platforms other than > > Linux (Windows, Solaris, MacOSX, etc., essentially where OpenJDK > > builds) for an OpenJDK based > > execution environment. I'm only looking at the JNLP functionality, > > not the Applet functionality. > > > > Is this something that people has tried before? Is this something > > that might be of interest to the > > IcedTea-Web community? There shouldn't be any blockers to just using the existing IcedTea-Web build system. If there is, then those are bugs we should try and resolve. Even Windows supports autoconf with an appropriate toolset installed AFAIR. I remember hearing something about it working on *BSD and I believe we even have had patches for this. Please keep us informed of your progress. > > > > -- > > Weiqi Gao > > weiqigao at gmail.com > > http://www.weiqigao.com/blog/ > > > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From adomurad at redhat.com Thu Jul 26 12:34:49 2012 From: adomurad at redhat.com (Adam Domurad) Date: Thu, 26 Jul 2012 15:34:49 -0400 Subject: [icedtea-web][rfc] Reproducer for PR588, java cookie jar cookies being stored properly Message-ID: <1343331289.13936.22.camel@voip-10-15-18-79.yyz.redhat.com> So Java has an internal cookie store that should be synchronized with the browser cookies. This reproducer tests if an applet on one page can read the cookies that an applet on another page sets. ChangeLog: 2012-07-26 Adam Domurad Reproducer for PR588, sets a cookie in the cookie jar and tries to read the same cookie in another page. * tests/reproducers/signed/SavingCookies/srcs/SavingCookies.java: Store cookies in the java cookie store, and go to a page that confirms they are there * tests/reproducers/signed/SavingCookies/srcs/CheckingCookies.java: Redirected from SavingCookies.java, checks the result of cookie storing * tests/reproducers/signed/SavingCookies/resources/CheckingCookies.html: Uses CheckingCookies.java * tests/reproducers/signed/SavingCookies/resources/SavingCookies.html: Uses SavingCookies.java * tests/reproducers/signed/SavingCookies/testcases/SavingCookiesTests.java: Test driver, opens SavingCookies.html -------------- next part -------------- A non-text attachment was scrubbed... Name: savingcookiesreproducer.patch Type: text/x-patch Size: 14023 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/7830a6f3/savingcookiesreproducer.patch From adomurad at redhat.com Thu Jul 26 12:44:26 2012 From: adomurad at redhat.com (Adam Domurad) Date: Thu, 26 Jul 2012 15:44:26 -0400 Subject: [icedtea-web][rfc] Fix for PR588, storing java cookie jar cookies in browser Message-ID: <1343331866.13936.31.camel@voip-10-15-18-79.yyz.redhat.com> Java has an internal cookie store that should be synchronized with the browser cookies. This fix ensures that whenever PluginCookieManager's set method is called the cookies are written through to the browser's cookies. A slight refactoring is included in breaking up consume_message to call a method consume_plugin_message, I felt this was necessary to prevent the method from getting too long and keeping it understandable. ChangeLog: 2012-07-26 Adam Domurad Fixes PR588, cookies set in the java cookie jar are now stored properly * plugin/icedteanp/IcedTeaNPPlugin.cc (set_cookie_info): New, uses setvalueforurl (consume_plugin_message): New, called by consume_message, handles cookie and proxy info retrieval, and setting cookie info (consume_message): Calls consume_plugin_message for "plugin ..." messages * plugin/icedteanp/java/sun/applet/PluginCookieManager.java: Now overrides put method, results in set_cookie_info calls in C++ * plugin/icedteanp/java/sun/applet/PluginMain.java: Passes PluginStreamHandler to PluginCookieManager to allow C++ side communication -------------- next part -------------- A non-text attachment was scrubbed... Name: cookies2.patch Type: text/x-patch Size: 9853 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/46d7f1f6/cookies2.patch From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 12:48:38 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 19:48:38 +0000 Subject: [Bug 843] www.mojebanka.cz hangs with icedtea-web In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=843 Deepak Bhole changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|dbhole at redhat.com |jvanek at redhat.com -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/67e2ae59/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 13:37:18 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 20:37:18 +0000 Subject: [Bug 955] regression: SweetHome3D fails to run In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=955 Andreas Kuckartz changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |major --- Comment #4 from Andreas Kuckartz --- I can confirm that SweetHome3D hangs on Debian unstable 64bit with icedtea-netx 1.2. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/fd715a57/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 13:44:01 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 20:44:01 +0000 Subject: [Bug 955] regression: SweetHome3D fails to run In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=955 --- Comment #5 from Andreas Kuckartz --- (In reply to comment #2) I just successfully executed $ javaws -verbose http://www.geogebra.org/webstart/geogebra.jnlp on Debian unstable 64bit with icedtea-netx 1.2. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/4dce96e4/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 14:16:27 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 21:16:27 +0000 Subject: [Bug 1097] Etrade MarketCaster does not work In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1097 --- Comment #2 from Deepak Bhole --- Can you please run it with: ICEDTEAPLUGIN_DEBUG=true firefox 2>&1 | tee console.log and attach the console.log and ~/.icedtea/log/* files? It could also be that the server is sending a 404 page instead of the jar but the plugin is not aware of this. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/456d0682/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 16:25:47 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 23:25:47 +0000 Subject: [Bug 1097] Etrade MarketCaster does not work In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1097 --- Comment #3 from diffgeom at gmail.com --- Created attachment 736 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=736&action=edit Icedtea plugin debug output -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/75d924ad/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 16:26:59 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 23:26:59 +0000 Subject: [Bug 1097] Etrade MarketCaster does not work In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1097 --- Comment #4 from diffgeom at gmail.com --- Created attachment 737 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=737&action=edit java.stderr -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/1b7d93d6/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 16:39:52 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Thu, 26 Jul 2012 23:39:52 +0000 Subject: [Bug 1097] Etrade MarketCaster does not work In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1097 --- Comment #5 from diffgeom at gmail.com --- Attached console.log and java.stderr. java.stdout is an empty file. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/fbc60417/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 18:16:44 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 27 Jul 2012 01:16:44 +0000 Subject: [Bug 1097] Etrade MarketCaster does not work In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1097 diffgeom at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from diffgeom at gmail.com --- Works with latest Icedtea-Web from mercurial. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120727/78bc4f31/attachment.html From bugzilla-daemon at icedtea.classpath.org Thu Jul 26 22:53:56 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 27 Jul 2012 05:53:56 +0000 Subject: [Bug 1094] icedtea-web does not work with Schwab's StreetSmart applet In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1094 --- Comment #5 from Christian Biesinger --- Hm ok, that's unfortunate. Sent a bug report to Schwab, hopefully they will fix it. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120727/90990e56/attachment.html From andrew at icedtea.classpath.org Fri Jul 27 01:26:37 2012 From: andrew at icedtea.classpath.org (andrew at icedtea.classpath.org) Date: Fri, 27 Jul 2012 08:26:37 +0000 Subject: /hg/icedtea7: Fix remaining use of HOTSPOT_SHA256SUM. Message-ID: changeset f61cb5d6d39b in /hg/icedtea7 details: http://icedtea.classpath.org/hg/icedtea7?cmd=changeset;node=f61cb5d6d39b author: Andrew John Hughes date: Fri Jul 27 09:26:20 2012 +0100 Fix remaining use of HOTSPOT_SHA256SUM. 2012-07-27 Andrew John Hughes * Makefile.am: (download-openjdk): Fix use of dead HOTSPOT_SHA256SUM in downloading block. diffstat: ChangeLog | 6 ++++++ Makefile.am | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) diffs (25 lines): diff -r 31f8ee76984c -r f61cb5d6d39b ChangeLog --- a/ChangeLog Thu Jul 26 12:19:25 2012 +0100 +++ b/ChangeLog Fri Jul 27 09:26:20 2012 +0100 @@ -1,3 +1,9 @@ +2012-07-27 Andrew John Hughes + + * Makefile.am: + (download-openjdk): Fix use of dead HOTSPOT_SHA256SUM + in downloading block. + 2012-07-26 Andrew John Hughes * Makefile.am: diff -r 31f8ee76984c -r f61cb5d6d39b Makefile.am --- a/Makefile.am Thu Jul 26 12:19:25 2012 +0100 +++ b/Makefile.am Fri Jul 27 09:26:20 2012 +0100 @@ -995,7 +995,7 @@ mv $(HOTSPOT_SRC_ZIP) $(HOTSPOT_SRC_ZIP).old ; \ fi ; \ $(WGET) $(HS_URL)/archive/$(HS_CHANGESET).tar.gz -O $(HOTSPOT_SRC_ZIP) ; \ - if ! echo "$(HOTSPOT_SHA256SUM) $(HOTSPOT_SRC_ZIP)" \ + if ! echo "$(HS_SHA256SUM) $(HOTSPOT_SRC_ZIP)" \ | $(SHA256SUM) --check ; then \ echo "ERROR: Bad download of HotSpot zip"; false; \ fi; \ From ptisnovs at icedtea.classpath.org Fri Jul 27 02:37:34 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Fri, 27 Jul 2012 09:37:34 +0000 Subject: /hg/gfx-test: Added four new tests to the test suite src/org/gfx... Message-ID: changeset df7b0d1fc991 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=df7b0d1fc991 author: Pavel Tisnovsky date: Fri Jul 27 11:40:11 2012 +0200 Added four new tests to the test suite src/org/gfxtest/testsuites/PrintTestPolygons.java diffstat: ChangeLog | 5 + src/org/gfxtest/testsuites/PrintTestPolygons.java | 130 ++++++++++++++++++++++ 2 files changed, 135 insertions(+), 0 deletions(-) diffs (159 lines): diff -r c26a356ed48e -r df7b0d1fc991 ChangeLog --- a/ChangeLog Thu Jul 26 12:18:34 2012 +0200 +++ b/ChangeLog Fri Jul 27 11:40:11 2012 +0200 @@ -1,3 +1,8 @@ +2012-07-27 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/PrintTestPolygons.java: + Added four new tests to this test suite. + 2012-07-26 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestPolylines.java: diff -r c26a356ed48e -r df7b0d1fc991 src/org/gfxtest/testsuites/PrintTestPolygons.java --- a/src/org/gfxtest/testsuites/PrintTestPolygons.java Thu Jul 26 12:18:34 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestPolygons.java Fri Jul 27 11:40:11 2012 +0200 @@ -46,6 +46,8 @@ import org.gfxtest.callbacks.PolygonDrawCallbacks; +import org.gfxtest.framework.ColorPalette; +import org.gfxtest.framework.GrayscalePalette; import org.gfxtest.framework.PrintTest; import org.gfxtest.framework.TestImage; import org.gfxtest.framework.TestResult; @@ -157,6 +159,134 @@ } /** + * Test basic behavior of method Graphics.drawPolyhon(). Polygon are + * rendered with default width and default end caps. Color of all rendered + * polygons are selected from a palette. + * + * @param image + * image to which polygons are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesColorPalette(TestImage image, Graphics2D graphics2d) + { + drawPolygons(image, graphics2d, POLYGON_STEP, new PolygonDrawCallbacks() + { + /** + * Callback function called before each polygon is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set polygon color + this.graphics.setColor(ColorPalette.getColor(index)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolygon(). Polygon are + * rendered with default width and default end caps. Color of all rendered + * polygons are selected from a palette. + * + * @param image + * image to which polygons are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesColorPaletteInv(TestImage image, Graphics2D graphics2d) + { + drawPolygons(image, graphics2d, POLYGON_STEP, new PolygonDrawCallbacks() + { + /** + * Callback function called before each polygon is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // set polygon color + this.graphics.setColor(ColorPalette.getColor(MAX_COLOR_INDEX - index)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolygon(). Polygon are + * rendered with default width and default end caps. Color of all rendered + * polygons are selected from a grayscale palette. + * + * @param image + * image to which polygons are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesGrayscale(TestImage image, Graphics2D graphics2d) + { + drawPolygons(image, graphics2d, POLYGON_STEP, new PolygonDrawCallbacks() + { + /** + * Callback function called before each polygon is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // compute grayscale value + float gray = (y1 - BORDER) * 4.0f / this.image.getHeight(); + // set polygon color + this.graphics.setColor(GrayscalePalette.createGrayscaleColor(gray)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** + * Test basic behavior of method Graphics.drawPolygon(). Polygon are + * rendered with default width and default end caps. Color of all rendered + * polygons are selected from a grayscale palette. + * + * @param image + * image to which polygons are to be drawn + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testDrawPolylinesGrayscaleInv(TestImage image, Graphics2D graphics2d) + { + drawPolygons(image, graphics2d, POLYGON_STEP, new PolygonDrawCallbacks() + { + /** + * Callback function called before each polygon is rendered. + */ + @Override + public void iterationCallBack(int x1, int y1, int x2, int y2, int index) + { + // compute grayscale value + float gray = 1.0f - (y1 - BORDER) * 4.0f / this.image.getHeight(); + // set polygon color + this.graphics.setColor(GrayscalePalette.createGrayscaleColor(gray)); + return; + } + }); + + // test return value + return TestResult.PASSED; + } + + /** * Entry point to the test suite. * * @param args From jvanek at redhat.com Fri Jul 27 03:26:15 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Fri, 27 Jul 2012 12:26:15 +0200 Subject: [icedtea-web][rfc] Reproducer for PR588, java cookie jar cookies being stored properly In-Reply-To: <1343331289.13936.22.camel@voip-10-15-18-79.yyz.redhat.com> References: <1343331289.13936.22.camel@voip-10-15-18-79.yyz.redhat.com> Message-ID: <50126CC7.1080102@redhat.com> On 07/26/2012 09:34 PM, Adam Domurad wrote: > So Java has an internal cookie store that should be synchronized with > the browser cookies. This reproducer tests if an applet on one page can > read the cookies that an applet on another page sets. Hi! Thank you for test. I have however several conceptional hints. First of all - the test is not passing in any browser - with or without your patch:(( You are using - getAppletContext().showDocument... - this function was never tested in automated testsuites. Before inclusion in tests of something else, please prepare reproducer for this function itself. In this be sure you are testing both getAppletContext().showDocument(string) and getAppletContext().showDocument(string1, string2) - for second one be sure t test all possibilites of string2. Imho I blame this function (maybe because used in init) from failure of tests more then your cookies approach/testing. Your approach of testing temporary cookies (showDocument)is very interesting and I'm glad you have used it, and I would like to keep it also with other tests I'm suggesting below. You are doing all the stuff in init. Although it is very good to have those tested in init, I would suggest to do the logic in start more likely. The verbose output of reproducers itself can be more verbose (eg "Cokokie map read" and "Cookies headers put"). This is really nitpick, but it can help you during synchronization (see lower). As far as I read it, you had to launch two applets in queue in one browser without closing. Usage of showDocument was really nice hack :) But there is more correct approach - you can launch browser (in testcase) in separate thread. Wait until applet inside is initialized and then launch your prime-to-be-tested applet in main thread and evaluate (both if you want). There are already reproducers with this approach. (They are using ContentReaderListeners, but you can use your own approach). Also you can test that without launch of savingcookies.class the checkcookie.java will fail (in that case it will be pass of test) Also as far as i understand you are testing just temporary cookies in browser. I would appreciate also persistent cookies and both cookies behaviour without browser (in javaws) if relevant. I'm sorry for adding more work to you, but current approach alone give me just small sense:( Sumamry: * Move more logic to start * test showDocument separately (please reuse as much as possible!) (also ensure ignoration if launched in javaws) * extend cookie tests: by synchronizes browsers, or persistent cookies and for javaws and for cases with expected failure) * double above with init tests (but be avare where it is failure of icedtea-web and where irrelevant usage of init) where relevant * do not send me pigeon with explosives Thank you in advice. I'm reviewing also your patch code but C part gives me (well deserved!) headaches o give me some time. Best regard J. From jvanek at redhat.com Fri Jul 27 05:23:59 2012 From: jvanek at redhat.com (Jiri Vanek) Date: Fri, 27 Jul 2012 14:23:59 +0200 Subject: [icedtea-web][rfc] Fix for PR588, storing java cookie jar cookies in browser In-Reply-To: <1343331866.13936.31.camel@voip-10-15-18-79.yyz.redhat.com> References: <1343331866.13936.31.camel@voip-10-15-18-79.yyz.redhat.com> Message-ID: <5012885F.5030906@redhat.com> On 07/26/2012 09:44 PM, Adam Domurad wrote The fix looks more over good, still few issues remains: First - can you please separate introducing of new method "consume_plugin" from rest of changes? It give me som epuzzling to find the real changes :) You can proceed with this refactoring and push without more reviews. Second - i was not able to verify functionality :(( C - part - parts = g_strsplit (message, " ", 6); - Shouldn be parts freed somewhere... else? I see just g_strfreev in condition and still parts are used later.... How does (set_cookie_info especially with decoded_url behave on urls with strange characters? I would recommend definitely to check and also include this to reproducer suite with other testcases of this fix. Java - part - see inline ... > { > diff --git a/plugin/icedteanp/java/sun/applet/PluginCookieManager.java b/plugin/icedteanp/java/sun/applet/PluginCookieManager.java > --- a/plugin/icedteanp/java/sun/applet/PluginCookieManager.java > +++ b/plugin/icedteanp/java/sun/applet/PluginCookieManager.java > @@ -45,7 +45,16 @@ import java.util.Collections; > import java.util.List; > import java.util.Map; > > +import com.sun.jndi.toolkit.url.UrlUtil; > + > public class PluginCookieManager extends CookieManager { > + private PluginStreamHandler streamHandler; > + > + public PluginCookieManager(PluginStreamHandler streamHandler) { > + this.streamHandler = streamHandler; > + } > + > + @Override > public Map> get(URI uri, > Map> requestHeaders) throws IOException { > // pre-condition check > @@ -84,4 +93,21 @@ public class PluginCookieManager extends > > return false; > } > + > + @Override > + public void put(URI uri, > + Map> responseHeaders) throws IOException { > + super.put(uri, responseHeaders); > + > + for (Map.Entry> headerEntry : responseHeaders.entrySet()) { > + String type = headerEntry.getKey(); > + if ("Set-Cookie".equalsIgnoreCase(type) || "Set-Cookie2".equalsIgnoreCase(type)) { Are you sure that bot Set-Cookie types will have same processing? > + List cookies = headerEntry.getValue(); > + for (String cookie : cookies) { > + streamHandler.write("plugin PluginSetCookie reference -1 " + UrlUtil.encode(uri.toString(), "UTF-8") + " " + cookie); Please ensure in tests that this works fine with "strange" urls (same test as for C side) Also probably will be worthy to test how rewriting of cookies is working with your implementation (another testcases... soryyyyy) > + } > + } > + > + } > + } > } > diff --git a/plugin/icedteanp/java/sun/applet/PluginMain.java b/plugin/icedteanp/java/sun/applet/PluginMain.java > --- a/plugin/icedteanp/java/sun/applet/PluginMain.java > +++ b/plugin/icedteanp/java/sun/applet/PluginMain.java > @@ -114,7 +114,7 @@ public class PluginMain { > PluginAppletViewer.setStreamhandler(streamHandler); > PluginAppletViewer.setPluginCallRequestFactory(new PluginCallRequestFactory()); > > - init(); > + init(streamHandler); > > // Streams set. Start processing. > streamHandler.startProcessing(); I can see that you are sending streamHandler into init, but startProcessing() is executed later. Can there be some unlikely problem, when something will be written to this handler before processing starts? Cant there be better solution? eg return CookieManager from inti and then set(streamHandler) on t?. Also it will lower amount of changes in code (but decrees readability probably) . But here I'm just posting my thoughts so so take it just as it:) > @@ -140,7 +140,7 @@ public class PluginMain { > return streamHandler; > } > > - private static void init() { > + private static void init(PluginStreamHandler streamHandler) { > Properties avProps = new Properties(); > > // ADD OTHER RANDOM PROPERTIES > @@ -200,7 +200,7 @@ public class PluginMain { > // override the proxy selector set by JNLPRuntime > ProxySelector.setDefault(new PluginProxySelector()); > > - CookieManager ckManager = new PluginCookieManager(); > + CookieManager ckManager = new PluginCookieManager(streamHandler); > CookieHandler.setDefault(ckManager); > } > } > Good improvement at all! J. From ahughes at redhat.com Fri Jul 27 06:08:18 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Fri, 27 Jul 2012 09:08:18 -0400 (EDT) Subject: [PATCH] Introduced --with-gtk option for configure.ac In-Reply-To: <1338884105-12356-1-git-send-email-phatina@redhat.com> Message-ID: <277288363.4298046.1343394498075.JavaMail.root@redhat.com> ----- Original Message ----- > Review, please. > > Peter Hatina > EMEA ENG-Desktop Development > Red Hat Czech, Brno > > --- > ChangeLog | 8 ++++++++ > NEWS | 1 + > acinclude.m4 | 40 +++++++++++++++++++++++++++++++++++++++- > 3 files changed, 48 insertions(+), 1 deletion(-) > > diff --git a/ChangeLog b/ChangeLog > index 82c0feb..f1d97bf 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -1,3 +1,11 @@ > +2012-05-28 Peter Hatina > + > + Introduced configure option --with-gtk=2|3|default to be able > + to compile against different version of GTK+ (2.x or 3.x). > + * NEWS: mentioned bug fix > + * acinclude.m4: (ITW_GTK_CHECK_VERSION) macro for getting GTK+ > version > + (ITW_GTK_CHECK) macro for checking GTK+ version > + > 2012-05-02 Jiri Vanek > > Introduced new annotations Bug (to connect test/reproducer with > documentation) > diff --git a/NEWS b/NEWS > index 8397639..cf2a54e 100644 > --- a/NEWS > +++ b/NEWS > @@ -16,6 +16,7 @@ New in release 1.3 (2012-XX-XX): > - PR895: IcedTea-Web searches for missing classes on each > loadClass or findClass > * Common > - PR918: java applet windows uses a low resulution black/white > icon > + - RH720836: project can be compiled against GTK+ 2 or 3 libraries > > New in release 1.2 (2011-XX-XX): > * Security updates: > diff --git a/acinclude.m4 b/acinclude.m4 > index a330d0f..a2eafd0 100644 > --- a/acinclude.m4 > +++ b/acinclude.m4 > @@ -359,13 +359,51 @@ AC_ARG_ENABLE([plugin], > AC_MSG_RESULT(${enable_plugin}) > ]) > > +dnl ITW_GTK_CHECK_VERSION([gtk version]) > +AC_DEFUN([ITW_GTK_CHECK_VERSION], > +[ > + AC_MSG_CHECKING([for GTK$1 version]) > + GTK_VER=`$PKG_CONFIG --modversion gtk+-$1.0` > + AC_MSG_RESULT([$GTK_VER]) > +]) > + > +dnl ITW_GTK_CHECK([gtk version]) > +AC_DEFUN([ITW_GTK_CHECK], > +[ > + case "$1" in > + default) > + PKG_CHECK_MODULES(GTK, gtk+-3.0, > + [ITW_GTK_CHECK_VERSION([3])], > + [PKG_CHECK_MODULES(GTK, gtk+-2.0, > + [ITW_GTK_CHECK_VERSION([2])], > + [AC_MSG_ERROR([GTK not found])] > + )] > + ) > + ;; > + *) > + PKG_CHECK_MODULES(GTK, gtk+-$1.0, > + [ITW_GTK_CHECK_VERSION([$1])], > + [AC_MSG_ERROR([GTK not found])] > + ) > + ;; > + esac > +]) > + > AC_DEFUN_ONCE([IT_CHECK_PLUGIN_DEPENDENCIES], > [ > dnl Check for plugin support headers and libraries. > dnl FIXME: use unstable > AC_REQUIRE([IT_CHECK_PLUGIN]) > if test "x${enable_plugin}" = "xyes" ; then > - PKG_CHECK_MODULES(GTK, gtk+-2.0) > + AC_ARG_WITH([gtk], > + [AS_HELP_STRING([--with-gtk=[2|3|default]], > + [the GTK+ version to use (default: 3)])], > + [case "$with_gtk" in > + 2|3|default) ;; > + *) AC_MSG_ERROR([invalid GTK+ version specified]) ;; > + esac], > + [with_gtk=default]) > + ITW_GTK_CHECK([$with_gtk]) > PKG_CHECK_MODULES(GLIB, glib-2.0) > AC_SUBST(GLIB_CFLAGS) > AC_SUBST(GLIB_LIBS) > -- > 1.7.10.2 > > This looks good, though it would be nice to have the version in the instance of [AC_MSG_ERROR([GTK not found])] where $1 is used. Good to go from my side, with that addition. -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From bugzilla-daemon at icedtea.classpath.org Fri Jul 27 06:57:55 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 27 Jul 2012 13:57:55 +0000 Subject: [Bug 921] Nullpointer Exception when launching webstart URL: http://volta.canoo.com/CanooVoltaDemo In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=921 JiriVanek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jvanek at redhat.com Resolution|--- |FIXED --- Comment #1 from JiriVanek --- I have tested both on head and on soon-to-be-relased 1.2. Works fine - classlaoder was hugely fixed in those releases. Btw - interesting application ;) -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120727/639cd81c/attachment.html From ahughes at redhat.com Fri Jul 27 07:05:44 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Fri, 27 Jul 2012 10:05:44 -0400 (EDT) Subject: Zero buildable again with IcedTea7 HEAD In-Reply-To: <620997990.4330956.1343397866123.JavaMail.root@redhat.com> Message-ID: <342333274.4331868.1343397944392.JavaMail.root@redhat.com> For details, see the blog: http://blog.fuseyism.com/index.php/2012/07/26/the-return-of-zero-sort-of/ With this change, if --enable-zero is passed to configure, it will use our existing hotspot.map support to switch to the HotSpot tree from the 2.1 branch (i.e. the last buildable version, where the ARM work is going on). I hope this should enable us to support Zero without having to maintain the whole of 2.1 (i.e. CORBA, JDK, etc.) indefinitely. Thanks, -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From bugzilla-daemon at icedtea.classpath.org Fri Jul 27 10:52:53 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 27 Jul 2012 17:52:53 +0000 Subject: [Bug 1097] Etrade MarketCaster does not work In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1097 --- Comment #7 from Deepak Bhole --- Ah okay, so the issue was probably what I suspected. This is the patch that most likely fixed it: http://icedtea.classpath.org/hg/icedtea-web/rev/138e2837d0e5 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120727/46c8c1b5/attachment.html From ahughes at redhat.com Fri Jul 27 10:37:39 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Fri, 27 Jul 2012 13:37:39 -0400 (EDT) Subject: Native zlib libraries In-Reply-To: <4FFD3701.3060100@oracle.com> Message-ID: <343016845.4406676.1343410659578.JavaMail.root@redhat.com> ----- Original Message ----- > The zip64 support (total_in/out) part probably can be done at Java > level > (ignore > the total_in/out in z_tream_s). Need to remove this dependency. Will > take a look later. > Yes, it seems they still mention the size of total_in/out on the website on the zlib site, and that they shouldn't be relied on: http://www.zlib.net/zlib_faq.html#faq32 "Note however that the strm.total_in and strm_total_out counters may be limited to 4 GB. These counters are provided as a convenience and are not used internally by inflate() or deflate(). The application can easily set up its own counters updated after each call of inflate() or deflate() to count beyond 4 GB" "The word "may" appears several times above since there is a 4 GB limit only if the compiler's long type is 32 bits. If the compiler's long type is 64 bits, then the limit is 16 exabytes." I notice a test went in with the 64-bit support, but I assume it can't test these counters as the Deflater for a ZipStream is protected. At least, they aren't failing on our builds with system zlib. Are you actively working on this now or shall I take a look? > -Sherman > > On 7/11/2012 12:47 AM, Alan Bateman wrote: > > On 05/07/2012 17:11, Andrew Hughes wrote: > >> > >> ----- Original Message ----- > >>> Is there a way to get the native zlib libraries to get picked up > >>> instead of the hardcoded version within the JVM? > >>> > >>> -- > >>> Azeem Jiva > >>> @javawithjiva > >> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get > >> it > >> upstream. > >> > >> However, I don't see how this is related to HotSpot, as the zlib > >> usage > >> is in the jdk tree. > > I think we need to (re)start the discussion on core-libs-dev with a > > view to eliminating the patches that the JDK has to zlib, see: > > > > http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java > > > > > > One of these changes relates to the zip64 support and I believe > > there > > are corner cases when inflating or deflating >2GB that won't work > > if > > using the system zlib. Sherman will likely recall the details. > > Given > > that the new build already supports using the system zlib (at least > > on > > Linux) then it would be good to sort this out so that it just > > works. > > > > -Alan > > > > > > > > > > > > > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From xueming.shen at oracle.com Fri Jul 27 11:16:40 2012 From: xueming.shen at oracle.com (Xueming Shen) Date: Fri, 27 Jul 2012 11:16:40 -0700 Subject: Native zlib libraries In-Reply-To: <343016845.4406676.1343410659578.JavaMail.root@redhat.com> References: <343016845.4406676.1343410659578.JavaMail.root@redhat.com> Message-ID: <5012DB08.6090109@oracle.com> On 07/27/2012 10:37 AM, Andrew Hughes wrote: > ----- Original Message ----- >> The zip64 support (total_in/out) part probably can be done at Java >> level >> (ignore >> the total_in/out in z_tream_s). Need to remove this dependency. Will >> take a look later. >> > Yes, it seems they still mention the size of total_in/out on the website on the zlib site, and that they shouldn't be relied on: > > http://www.zlib.net/zlib_faq.html#faq32 > > "Note however that the strm.total_in and strm_total_out counters may be limited to 4 GB. These counters are provided as a convenience and are not used internally by inflate() or deflate(). The application can easily set up its own counters updated after each call of inflate() or deflate() to count beyond 4 GB" > > "The word "may" appears several times above since there is a 4 GB limit only if the compiler's long type is 32 bits. If the compiler's long type is 64 bits, then the limit is 16 exabytes." > > I notice a test went in with the 64-bit support, but I assume it can't test these counters as the Deflater for a ZipStream is protected. At least, they aren't failing on our builds with system zlib. That test is not configured to be run for "auto testing", it just takes too long to zip/unzip a 4G+ file. I use it manually to test the ZIP64 support. I will give it a try to remove this dependency next week. It would be helpful if you can help "migrate" the icetea patch. How does the icetea patch work now? Always use the system zlib, if it presents? any configurable option to switch on and off? -Sherman > Are you actively working on this now or shall I take a look? > >> -Sherman >> >> On 7/11/2012 12:47 AM, Alan Bateman wrote: >>> On 05/07/2012 17:11, Andrew Hughes wrote: >>>> ----- Original Message ----- >>>>> Is there a way to get the native zlib libraries to get picked up >>>>> instead of the hardcoded version within the JVM? >>>>> >>>>> -- >>>>> Azeem Jiva >>>>> @javawithjiva >>>> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get >>>> it >>>> upstream. >>>> >>>> However, I don't see how this is related to HotSpot, as the zlib >>>> usage >>>> is in the jdk tree. >>> I think we need to (re)start the discussion on core-libs-dev with a >>> view to eliminating the patches that the JDK has to zlib, see: >>> >>> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java >>> >>> >>> One of these changes relates to the zip64 support and I believe >>> there >>> are corner cases when inflating or deflating>2GB that won't work >>> if >>> using the system zlib. Sherman will likely recall the details. >>> Given >>> that the new build already supports using the system zlib (at least >>> on >>> Linux) then it would be good to sort this out so that it just >>> works. >>> >>> -Alan >>> >>> >>> >>> >>> >>> From bugzilla-daemon at icedtea.classpath.org Fri Jul 27 11:52:00 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Fri, 27 Jul 2012 18:52:00 +0000 Subject: [Bug 1094] icedtea-web does not work with Schwab's StreetSmart applet In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1094 --- Comment #6 from Christian Biesinger --- Hmm, what if instead of throwing an exception, you just did nothing and returned OK? Maybe that's a terrible idea... -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120727/baf42887/attachment.html From bugzilla-daemon at icedtea.classpath.org Sun Jul 29 02:17:23 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Sun, 29 Jul 2012 09:17:23 +0000 Subject: [Bug 1099] New: NetBeans crashes making a php project from source Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1099 Priority: P3 Bug ID: 1099 Assignee: unassigned at icedtea.classpath.org Summary: NetBeans crashes making a php project from source Severity: critical Classification: Unclassified OS: Linux Reporter: mondrillo at hotmail.com Hardware: x86_64 Status: NEW Version: unspecified Component: IcedTea Product: IcedTea Created attachment 738 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=738&action=edit File that user can submit Hello, Cann't use Netbeans, it crashed when I make a project. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fdc642189c0, pid=19226, tid=140583815247616 # # JRE version: 6.0_24-b24 # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops) # Derivative: IcedTea6 1.11.1 # Distribution: Built on Gentoo Base System release 2.0.3 (Thu Feb 16 15:38:54 CET 2012) # Problematic frame: # V [libjvm.so+0x5139c0] JNI_CreateJavaVM+0x3dab0 # # An error report file with more information is saved as: # /root/hs_err_pid19226.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 # /usr/share/netbeans-nb-7.2/bin/../platform/lib/nbexec: l?nea 564: 19226 Abortado "/opt/icedtea-bin-6.1.11.1/bin/java" -Djdk.home="/opt/icedtea-bin-6.1.11.1" -classpath "/usr/share/netbeans-nb-7.2/platform/lib/boot.jar:/usr/share/netbeans-nb-7.2/platform/lib/org-openide-modules.jar:/usr/share/netbeans-nb-7.2/platform/lib/org-openide-util.jar:/usr/share/netbeans-nb-7.2/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans-nb-7.2/platform/lib/locale/boot_es_CO.jar:/usr/share/netbeans-nb-7.2/platform/lib/locale/boot_es.jar:/usr/share/netbeans-nb-7.2/platform/lib/locale/org-openide-modules_es_CO.jar:/usr/share/netbeans-nb-7.2/platform/lib/locale/org-openide-modules_es.jar:/usr/share/netbeans-nb-7.2/platform/lib/locale/org-openide-util_es_CO.jar:/usr/share/netbeans-nb-7.2/platform/lib/locale/org-openide-util_es.jar:/usr/share/netbeans-nb-7.2/platform/lib/locale/org-openide-util-lookup_es_CO.jar:/usr/share/netbeans-nb-7.2/platform/lib/locale/org-openide-util-lookup_es.jar:/opt/icedtea-bin-6.1.11.1/lib/dt.jar:/opt/icedtea-bin-6.1.11.1/lib/tools.jar" -Dnetbeans.default_userdir_root="/root/.netbeans" -Dnetbeans.dirs="/usr/share/netbeans-nb-7.2/nb:/usr/share/netbeans-nb-7.2/ergonomics:/usr/share/netbeans-nb-7.2/ide:/usr/share/netbeans-nb-7.2/java:/usr/share/netbeans-nb-7.2/apisupport:/usr/share/netbeans-nb-7.2/webcommon:/usr/share/netbeans-nb-7.2/websvccommon:/usr/share/netbeans-nb-7.2/enterprise:/usr/share/netbeans-nb-7.2/mobility:/usr/share/netbeans-nb-7.2/profiler:/usr/share/netbeans-nb-7.2/python:/usr/share/netbeans-nb-7.2/php:/usr/share/netbeans-nb-7.2/identity:/usr/share/netbeans-nb-7.2/harness:/usr/share/netbeans-nb-7.2/cnd:/usr/share/netbeans-nb-7.2/dlight:/usr/share/netbeans-nb-7.2/groovy:/usr/share/netbeans-nb-7.2/extra:/usr/share/netbeans-nb-7.2/javacard:/usr/share/netbeans-nb-7.2/javafx:" -Dnetbeans.home="/usr/share/netbeans-nb-7.2/platform" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-XX:MaxPermSize=384m' '-Xmx400m' '-client' '-Xss2m' '-Xms32m' '-XX:PermSize=32m' '-Dapple.laf.useScreenMenuBar=true' '-Dapple.awt.graphics.UseQuartz=true' '-Dsun.java2d.noddraw=true' '-Dsun.zip.disableMemoryMapping=true' -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/root/.netbeans/7.2/var/log/heapdump.hprof" org.netbeans.Main --userdir "/root/.netbeans/7.2" "--cachedir" "/root/.cache/netbeans/7.2" "--branding" "nb" "--locale" "es" 0<&0 -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120729/7cdcaaef/attachment.html From ptisnovs at icedtea.classpath.org Mon Jul 30 03:08:14 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 30 Jul 2012 10:08:14 +0000 Subject: /hg/gfx-test: Added new classes containing callback methods used... Message-ID: changeset df77617740d9 in /hg/gfx-test details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=df77617740d9 author: Pavel Tisnovsky date: Mon Jul 30 12:10:45 2012 +0200 Added new classes containing callback methods used during rendering cubic curves. Fixed typo in a test suite PrintTestPolylines, added new constant to a class PrintTest. diffstat: ChangeLog | 12 ++ Makefile | 2 + src/org/gfxtest/callbacks/CommonCurveDrawCallbacks.java | 94 +++++++++++++++++ src/org/gfxtest/callbacks/CubicCurveDrawCallback.java | 68 ++++++++++++ src/org/gfxtest/framework/PrintTest.java | 5 + src/org/gfxtest/testsuites/PrintTestPolylines.java | 1 - 6 files changed, 181 insertions(+), 1 deletions(-) diffs (229 lines): diff -r df7b0d1fc991 -r df77617740d9 ChangeLog --- a/ChangeLog Fri Jul 27 11:40:11 2012 +0200 +++ b/ChangeLog Mon Jul 30 12:10:45 2012 +0200 @@ -1,3 +1,15 @@ +2012-07-30 Pavel Tisnovsky + + * src/org/gfxtest/callbacks/CommonCurveDrawCallbacks.java: + * src/org/gfxtest/callbacks/CubicCurveDrawCallback.java: + Added new classes containing callback methods used during rendering + cubic curves. + * src/org/gfxtest/framework/PrintTest.java: + New constant. + * src/org/gfxtest/testsuites/PrintTestPolylines.java: + Fixed typo. + * Makefile: Updated - added new classes to compile. + 2012-07-27 Pavel Tisnovsky * src/org/gfxtest/testsuites/PrintTestPolygons.java: diff -r df7b0d1fc991 -r df77617740d9 Makefile --- a/Makefile Fri Jul 27 11:40:11 2012 +0200 +++ b/Makefile Mon Jul 30 12:10:45 2012 +0200 @@ -97,8 +97,10 @@ $(CLASSES)/$(FRAMEWORK_DIR)/PostScriptToPngConverter.class \ $(CLASSES)/$(FRAMEWORK_DIR)/PrintJobWatcher.class \ $(CLASSES)/$(CALLBACKS_DIR)/CommonCircleDrawCallbacks.class \ + $(CLASSES)/$(CALLBACKS_DIR)/CommonCurveDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/CommonEllipseDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/CommonLineDrawCallbacks.class \ + $(CLASSES)/$(CALLBACKS_DIR)/CubicCurveDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/HorizontalLineDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/VerticalLineDrawCallbacks.class \ $(CLASSES)/$(CALLBACKS_DIR)/DiagonalLineDrawCallbacks.class \ diff -r df7b0d1fc991 -r df77617740d9 src/org/gfxtest/callbacks/CommonCurveDrawCallbacks.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/gfxtest/callbacks/CommonCurveDrawCallbacks.java Mon Jul 30 12:10:45 2012 +0200 @@ -0,0 +1,94 @@ +/* + Java gfx-test framework + + Copyright (C) 2012 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.callbacks; + + + +import java.awt.Color; +import java.awt.Graphics2D; + + + +import org.gfxtest.framework.TestImage; + + + +/** + * Class representing set of callback methods called for each rendered curve. + * + * @author Pavel Tisnovsky + */ +public abstract class CommonCurveDrawCallbacks +{ + /** + * Image to which curve are to be drawn. + */ + protected TestImage image; + + /** + * Graphics canvas. + */ + protected Graphics2D graphics; + + /** + * Setup phase. + * + * @param image + * image to which curves are to be drawn + * @param graphics2d + * graphics canvas + */ + public void setup(TestImage image, Graphics2D graphics) + { + this.image = image; + this.graphics = graphics; + // set drawing color + graphics.setColor(Color.BLACK); + } + + /** + * Cleanup phase. + */ + public void cleanup() + { + return; + } +} diff -r df7b0d1fc991 -r df77617740d9 src/org/gfxtest/callbacks/CubicCurveDrawCallback.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/gfxtest/callbacks/CubicCurveDrawCallback.java Mon Jul 30 12:10:45 2012 +0200 @@ -0,0 +1,68 @@ +/* + Java gfx-test framework + + Copyright (C) 2012 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.callbacks; + + + +/** + * Class representing set of callback methods called for each rendered + * cubic curve. + * + * @author Pavel Tisnovsky + */ +public abstract class CubicCurveDrawCallback extends CommonCurveDrawCallbacks +{ + /** + * Called for each rendered cubic curve. + * + * @param x1 + * the first point's x coordinate. + * @param y1 + * the first point's y coordinate. + * @param x2 + * the second point's x coordinate. + * @param y2 + * the second point's y coordinate. + * @param index + * curve index + */ + public abstract void iterationCallBack(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, int index); +} diff -r df7b0d1fc991 -r df77617740d9 src/org/gfxtest/framework/PrintTest.java --- a/src/org/gfxtest/framework/PrintTest.java Fri Jul 27 11:40:11 2012 +0200 +++ b/src/org/gfxtest/framework/PrintTest.java Mon Jul 30 12:10:45 2012 +0200 @@ -112,6 +112,11 @@ protected static final int DIAGONAL_STEP = 16; /** + * Diagonal distance between cubic curves in each test iteration. + */ + protected static final int CUBIC_CURVE_STEP= 16; + + /** * Horizontal and also vertical distance between rectangles lines in each test iteration. */ protected static final int RECTANGLE_STEP = 10; diff -r df7b0d1fc991 -r df77617740d9 src/org/gfxtest/testsuites/PrintTestPolylines.java --- a/src/org/gfxtest/testsuites/PrintTestPolylines.java Fri Jul 27 11:40:11 2012 +0200 +++ b/src/org/gfxtest/testsuites/PrintTestPolylines.java Mon Jul 30 12:10:45 2012 +0200 @@ -656,7 +656,6 @@ float gray = 1.0f - (y1 - BORDER) * 4.0f / this.image.getHeight(); // set polyline color this.graphics.setColor(GrayscalePalette.createGrayscaleColor(gray)); - // compute grayscale value return; } }); From ahughes at redhat.com Mon Jul 30 03:20:14 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Mon, 30 Jul 2012 06:20:14 -0400 (EDT) Subject: Native zlib libraries In-Reply-To: <5012DB08.6090109@oracle.com> Message-ID: <1236740822.5028742.1343643614692.JavaMail.root@redhat.com> ----- Original Message ----- > On 07/27/2012 10:37 AM, Andrew Hughes wrote: > > ----- Original Message ----- > >> The zip64 support (total_in/out) part probably can be done at Java > >> level > >> (ignore > >> the total_in/out in z_tream_s). Need to remove this dependency. > >> Will > >> take a look later. > >> > > Yes, it seems they still mention the size of total_in/out on the > > website on the zlib site, and that they shouldn't be relied on: > > > > http://www.zlib.net/zlib_faq.html#faq32 > > > > "Note however that the strm.total_in and strm_total_out counters > > may be limited to 4 GB. These counters are provided as a > > convenience and are not used internally by inflate() or deflate(). > > The application can easily set up its own counters updated after > > each call of inflate() or deflate() to count beyond 4 GB" > > > > "The word "may" appears several times above since there is a 4 GB > > limit only if the compiler's long type is 32 bits. If the > > compiler's long type is 64 bits, then the limit is 16 exabytes." > > > > I notice a test went in with the 64-bit support, but I assume it > > can't test these counters as the Deflater for a ZipStream is > > protected. At least, they aren't failing on our builds with > > system zlib. > > That test is not configured to be run for "auto testing", it just > takes > too long to zip/unzip > a 4G+ file. I use it manually to test the ZIP64 support. > Yes, sorry, I noticed this after posting. I've since run it manually and it passes with a system zlib, both on the zip it creates and one I created containing just a single 4.2gb file (a RHEL ISO image zipped). But I'm not sure if it's testing total bytes read for overflow. > I will give it a try to remove this dependency next week. Thanks. > It would be > helpful if you can > help "migrate" the icetea patch. How does the icetea patch work now? > Always use the > system zlib, if it presents? any configurable option to switch on and > off? It adds a switch and also support for setting the CFLAGS/LIBS: USE_SYSTEM_ZLIB=true \ ZLIB_LIBS="$(pkg-config --libs zlib)" \ ZLIB_CFLAGS="$(pkg-config --cflags zlib)" \ This is the same nomenclature we use for the other libraries too (lcms, jpeg, png, gif, cups, etc.) I'll try and post the patch later today. > > -Sherman > > > Are you actively working on this now or shall I take a look? > > > >> -Sherman > >> > >> On 7/11/2012 12:47 AM, Alan Bateman wrote: > >>> On 05/07/2012 17:11, Andrew Hughes wrote: > >>>> ----- Original Message ----- > >>>>> Is there a way to get the native zlib libraries to get picked > >>>>> up > >>>>> instead of the hardcoded version within the JVM? > >>>>> > >>>>> -- > >>>>> Azeem Jiva > >>>>> @javawithjiva > >>>> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get > >>>> it > >>>> upstream. > >>>> > >>>> However, I don't see how this is related to HotSpot, as the zlib > >>>> usage > >>>> is in the jdk tree. > >>> I think we need to (re)start the discussion on core-libs-dev with > >>> a > >>> view to eliminating the patches that the JDK has to zlib, see: > >>> > >>> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java > >>> > >>> > >>> One of these changes relates to the zip64 support and I believe > >>> there > >>> are corner cases when inflating or deflating>2GB that won't work > >>> if > >>> using the system zlib. Sherman will likely recall the details. > >>> Given > >>> that the new build already supports using the system zlib (at > >>> least > >>> on > >>> Linux) then it would be good to sort this out so that it just > >>> works. > >>> > >>> -Alan > >>> > >>> > >>> > >>> > >>> > >>> > > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From ahughes at redhat.com Mon Jul 30 05:35:24 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Mon, 30 Jul 2012 08:35:24 -0400 (EDT) Subject: Native zlib libraries In-Reply-To: Message-ID: <1918842039.5121189.1343651724469.JavaMail.root@redhat.com> ----- Original Message ----- > Two other obvious candidates are the bundled jpeg and gif libraries. > Please suggest a patch for build-infra/jdk8! > > Backporting the new build system for jdk7/jdk6 is not even on the > horizon. It > would be nice though, and probably not impossible. > > //Fredrik > > 9 jul 2012 kl. 01:52 skrev Andrew Hughes: > > > > > > > ----- Original Message ----- > >> The new build system offers a convenient option to the configure > >> script: > >> --with-zlib=system > >> this will pickup the zlib libraries from the system. > >> > >> The default behavior is: --with-zlib=bundled > >> > > > > Have you done any others? And is this available from the old bug > > system? > > > > This is the first I've heard of this being done and we need it in 6 > > & 7 too. > > > >> //Fredrik > >> > >> 2012/7/5 Andrew Hughes : > >>> > >>> > >>> ----- Original Message ----- > >>>> Is there a way to get the native zlib libraries to get picked up > >>>> instead of the hardcoded version within the JVM? > >>>> > >>>> -- > >>>> Azeem Jiva > >>>> @javawithjiva > >>> > >>> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get > >>> it > >>> upstream. > >>> > >>> However, I don't see how this is related to HotSpot, as the zlib > >>> usage > >>> is in the jdk tree. > >>> -- > >>> Andrew :) > >>> > >>> Free Java Software Engineer > >>> Red Hat, Inc. (http://www.redhat.com) > >>> > >>> PGP Key: 248BDC07 (https://keys.indymedia.org/) > >>> Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 > >>> > >> > > It looks like most of our zlib work has already been reproduced by your good self. Saves me a job! :-D (for 8 anyway) The main differences seem to be a minor naming one (USE_SYSTEM_ZLIB/SYSTEM_ZLIB) and the hardcoding of -lz over ZLIB_CFLAGS/ZLIB_LIBS (I'll suggest a patch for this). However, I'm not clear as to which version of zlib you used, because, in its current form, SYSTEM_ZLIB doesn't work for me: In file included from ../../../../../src/share/native/com/sun/java/util/jar/pack/bands.cpp:37:0: ../../../../../src/share/native/com/sun/java/util/jar/pack/defines.h:98:22: error: conflicting declaration 'typedef unsigned int uLong' In file included from ../../../../../src/share/native/com/sun/java/util/jar/pack/defines.h:36:0, from ../../../../../src/share/native/com/sun/java/util/jar/pack/bands.cpp:37: /usr/include/zconf.h:368:24: error: 'uLong' has a previous declaration as 'typedef long unsigned int uLong' ../../../../../src/share/native/com/sun/java/util/jar/pack/bands.cpp:449:1: warning: missing initializer for member 'band_init::defc' [-Wmissing-field-initializers] ../../../../../src/share/native/com/sun/java/util/jar/pack/bands.cpp:449:1: warning: missing initializer for member 'band_init::index' [-Wmissing-field-initializers] In our patch, we did: -#ifdef _LP64 -typedef unsigned int uLong; // Historical zlib, should be 32-bit. +#ifdef USE_SYSTEM_ZLIB + #include #else -typedef unsigned long uLong; + #ifdef _LP64 + typedef unsigned int uLong; // Historical zlib, should be 32-bit. + #else + typedef unsigned long uLong; + #endif (see http://hg.openjdk.java.net/icedtea/jdk7/jdk/rev/3a2014eddd87) so that uLong was only defined locally if zlib was in-tree. There is some odd logic in 8: #if !defined(MACOSX) || (defined(MACOSX) && defined(NO_ZLIB)) Should this not just be #if defined(NO_ZLIB)? It works for me if I change to that. Thanks, -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From ptisnovs at icedtea.classpath.org Mon Jul 30 06:31:10 2012 From: ptisnovs at icedtea.classpath.org (ptisnovs at icedtea.classpath.org) Date: Mon, 30 Jul 2012 13:31:10 +0000 Subject: /hg/rhino-tests: Renamed all test scripts so its names are now m... Message-ID: changeset 50619c42d67c in /hg/rhino-tests details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=50619c42d67c author: Pavel Tisnovsky date: Mon Jul 30 15:33:41 2012 +0200 Renamed all test scripts so its names are now more descriptive. Mention problems with JDK7 in BUGS file. diffstat: BUGS | 4 ++ ChangeLog | 24 ++++++++++++ Makefile | 13 +++--- scripts/test1.js | 1 - scripts/test2.js | 1 - scripts/test3.js | 1 - scripts/test4.js | 1 - scripts/test5.js | 1 - scripts/test6.js | 3 - scripts/test7.js | 4 -- scripts/test_empty_script_1.js | 1 + scripts/test_hello_world.js | 1 + scripts/test_invalid_command_1.js | 1 + scripts/test_invalid_command_2.js | 3 + scripts/test_invalid_command_3.js | 4 ++ scripts/test_invalid_parameter.js | 1 + scripts/test_unknown_function.js | 1 + src/org/RhinoTests/JavaScriptsTest.java | 54 ++++++++++++---------------- src/org/RhinoTests/ScriptExceptionTest.java | 18 ++++---- 19 files changed, 80 insertions(+), 57 deletions(-) diffs (328 lines): diff -r 60e68ea5a35f -r 50619c42d67c BUGS --- a/BUGS Thu Jul 26 14:39:16 2012 +0200 +++ b/BUGS Mon Jul 30 15:33:41 2012 +0200 @@ -0,0 +1,4 @@ +List of known bugs and limitations: + +- some tests need to be updated to run correctly under JDK7 (OpenJDK7 etc.) + diff -r 60e68ea5a35f -r 50619c42d67c ChangeLog --- a/ChangeLog Thu Jul 26 14:39:16 2012 +0200 +++ b/ChangeLog Mon Jul 30 15:33:41 2012 +0200 @@ -1,3 +1,27 @@ +2012-07-30 Pavel Tisnovsky + + * BUGS: + Mention problems with JDK7. + * scripts/test1.js: + * scripts/test2.js: + * scripts/test3.js: + * scripts/test4.js: + * scripts/test5.js: + * scripts/test6.js: + * scripts/test7.js: + * scripts/test_empty_script_1.js: + * scripts/test_hello_world.js: + * scripts/test_invalid_command_1.js: + * scripts/test_invalid_command_2.js: + * scripts/test_invalid_command_3.js: + * scripts/test_invalid_parameter.js: + * scripts/test_unknown_function.js: + * src/org/RhinoTests/JavaScriptsTest.java: + * src/org/RhinoTests/ScriptExceptionTest.java: + * Makefile: + Renamed test scripts so its names are now more + descriptive. + 2012-07-26 Pavel Tisnovsky * src/org/RhinoTests/CompiledScriptTest.java: diff -r 60e68ea5a35f -r 50619c42d67c Makefile --- a/Makefile Thu Jul 26 14:39:16 2012 +0200 +++ b/Makefile Mon Jul 30 15:33:41 2012 +0200 @@ -95,12 +95,13 @@ $(BUILD_DIR)/$(TEST_PACKAGE)/SimpleScriptContextClassTest.class ALL_SCRIPTS = \ - $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test1.js \ - $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test2.js \ - $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test3.js \ - $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test4.js \ - $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test5.js \ - $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test6.js + $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test_hello_world.js \ + $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test_empty_script_1.js \ + $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test_invalid_command_1.js \ + $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test_invalid_command_2.js \ + $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test_invalid_command_3.js \ + $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test_invalid_parameter.js \ + $(BUILD_DIR)/$(TEST_PACKAGE)/$(SCRIPTS)/test_unknown_function.js all: build runtests diff -r 60e68ea5a35f -r 50619c42d67c scripts/test1.js --- a/scripts/test1.js Thu Jul 26 14:39:16 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -println('\tHello world'); diff -r 60e68ea5a35f -r 50619c42d67c scripts/test2.js --- a/scripts/test2.js Thu Jul 26 14:39:16 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ - diff -r 60e68ea5a35f -r 50619c42d67c scripts/test3.js --- a/scripts/test3.js Thu Jul 26 14:39:16 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -_unknown_function_('\tHello world!') diff -r 60e68ea5a35f -r 50619c42d67c scripts/test4.js --- a/scripts/test4.js Thu Jul 26 14:39:16 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -println(bflmpsvz) diff -r 60e68ea5a35f -r 50619c42d67c scripts/test5.js --- a/scripts/test5.js Thu Jul 26 14:39:16 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -xyzzy diff -r 60e68ea5a35f -r 50619c42d67c scripts/test6.js --- a/scripts/test6.js Thu Jul 26 14:39:16 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -println('\t1st line'); -println('\t2nd line'); -xyzzy diff -r 60e68ea5a35f -r 50619c42d67c scripts/test7.js --- a/scripts/test7.js Thu Jul 26 14:39:16 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -println('\t1st line'); -println('\t2nd line'); -xyzzy -println('\t4th line'); diff -r 60e68ea5a35f -r 50619c42d67c scripts/test_empty_script_1.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/test_empty_script_1.js Mon Jul 30 15:33:41 2012 +0200 @@ -0,0 +1,1 @@ + diff -r 60e68ea5a35f -r 50619c42d67c scripts/test_hello_world.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/test_hello_world.js Mon Jul 30 15:33:41 2012 +0200 @@ -0,0 +1,1 @@ +println('\tHello world'); diff -r 60e68ea5a35f -r 50619c42d67c scripts/test_invalid_command_1.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/test_invalid_command_1.js Mon Jul 30 15:33:41 2012 +0200 @@ -0,0 +1,1 @@ +xyzzy diff -r 60e68ea5a35f -r 50619c42d67c scripts/test_invalid_command_2.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/test_invalid_command_2.js Mon Jul 30 15:33:41 2012 +0200 @@ -0,0 +1,3 @@ +println('\t1st line'); +println('\t2nd line'); +xyzzy diff -r 60e68ea5a35f -r 50619c42d67c scripts/test_invalid_command_3.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/test_invalid_command_3.js Mon Jul 30 15:33:41 2012 +0200 @@ -0,0 +1,4 @@ +println('\t1st line'); +println('\t2nd line'); +xyzzy +println('\t4th line'); diff -r 60e68ea5a35f -r 50619c42d67c scripts/test_invalid_parameter.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/test_invalid_parameter.js Mon Jul 30 15:33:41 2012 +0200 @@ -0,0 +1,1 @@ +println(bflmpsvz) diff -r 60e68ea5a35f -r 50619c42d67c scripts/test_unknown_function.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/test_unknown_function.js Mon Jul 30 15:33:41 2012 +0200 @@ -0,0 +1,1 @@ +_unknown_function_('\tHello world!') diff -r 60e68ea5a35f -r 50619c42d67c src/org/RhinoTests/JavaScriptsTest.java --- a/src/org/RhinoTests/JavaScriptsTest.java Thu Jul 26 14:39:16 2012 +0200 +++ b/src/org/RhinoTests/JavaScriptsTest.java Mon Jul 30 15:33:41 2012 +0200 @@ -334,26 +334,38 @@ /** * Test if script can be run from external file. - * @see scripts/test1.js + * @see scripts/test_hello_world.js * * @throws ScriptException * this exception is thrown when this test case failed. */ - protected void testRunSimpleScriptFromStoredInFile() throws ScriptException { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test1.js"); + protected void testRunSimpleScriptStoredInFile() throws ScriptException { + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_hello_world.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } /** - * Test if exception is thrown when external script is empty. - * @see scripts/test2.js + * Test if empty script can be run from external file. + * @see scripts/test_empty_script_1.js * * @throws Exception * this exception is thrown when this test case failed. */ - protected void testRunSimpleScriptFromStoredInFileNegative() throws Exception { + protected void testRunEmptyScript1StoredInFile() throws Exception { + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_empty_script_1.js"); + this.scriptEngine.eval(new InputStreamReader(inputStream)); + } + + /** + * Test if exception is thrown when external script contains error. + * @see scripts/test_unknown_function.js + * + * @throws Exception + * this exception is thrown when this test case failed. + */ + protected void testRunScriptContainingUnknownFunctionFromFile() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test2.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_unknown_function.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -364,14 +376,14 @@ /** * Test if exception is thrown when external script contains error. - * @see scripts/test3.js + * @see scripts/test_invalid_parameter.js * * @throws Exception * this exception is thrown when this test case failed. */ - protected void testRunScriptContainingUnknownFunctionFromFile() throws Exception { + protected void testRunScriptContainingError1FromFile() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test3.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_parameter.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -382,32 +394,14 @@ /** * Test if exception is thrown when external script contains error. - * @see scripts/test4.js - * - * @throws Exception - * this exception is thrown when this test case failed. - */ - protected void testRunScriptContainingError1FromFile() throws Exception { - try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test4.js"); - this.scriptEngine.eval(new InputStreamReader(inputStream)); - } - catch (ScriptException e) { - return; // ok, it's correct if this exception is thrown - } - throw new Exception("ScriptException not thrown as expected"); - } - - /** - * Test if exception is thrown when external script contains error. - * @see scripts/test5.js + * @see scripts/test_invalid_command_1.js * * @throws Exception * this exception is thrown when this test case failed. */ protected void testRunScriptContainingError2FromFile() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test5.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_command_1.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { diff -r 60e68ea5a35f -r 50619c42d67c src/org/RhinoTests/ScriptExceptionTest.java --- a/src/org/RhinoTests/ScriptExceptionTest.java Thu Jul 26 14:39:16 2012 +0200 +++ b/src/org/RhinoTests/ScriptExceptionTest.java Mon Jul 30 15:33:41 2012 +0200 @@ -243,7 +243,7 @@ */ protected void testBasicScriptExceptionTestErrorInExternalScript1() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test3.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_unknown_function.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -262,7 +262,7 @@ */ protected void testBasicScriptExceptionTestErrorInExternalScript2() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test4.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_parameter.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -281,7 +281,7 @@ */ protected void testBasicScriptExceptionTestErrorInExternalScript3() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test5.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_command_1.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -300,7 +300,7 @@ */ protected void testBasicScriptExceptionTestErrorInExternalScript4() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test4.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_parameter.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -361,7 +361,7 @@ */ protected void testScriptExceptionTestLineNumber3() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test3.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_unknown_function.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -381,7 +381,7 @@ */ protected void testScriptExceptionTestLineNumber4() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test4.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_parameter.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -401,7 +401,7 @@ */ protected void testScriptExceptionTestLineNumber5() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test5.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_command_1.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -421,7 +421,7 @@ */ protected void testScriptExceptionTestLineNumber6() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test6.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_command_2.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { @@ -441,7 +441,7 @@ */ protected void testScriptExceptionTestLineNumber7() throws Exception { try { - InputStream inputStream = this.getClass().getResourceAsStream("scripts/test7.js"); + InputStream inputStream = this.getClass().getResourceAsStream("scripts/test_invalid_command_3.js"); this.scriptEngine.eval(new InputStreamReader(inputStream)); } catch (ScriptException e) { From bugzilla-daemon at icedtea.classpath.org Mon Jul 30 07:47:54 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 30 Jul 2012 14:47:54 +0000 Subject: [Bug 1100] New: error while running talend open designer Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1100 Priority: P3 Bug ID: 1100 Assignee: unassigned at icedtea.classpath.org Summary: error while running talend open designer Severity: normal Classification: Unclassified OS: Linux Reporter: sumit.agarwal at broadridge.com Hardware: x86_64 Status: NEW Version: unspecified Component: IcedTea Product: IcedTea Created attachment 739 --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=739&action=edit error report file While starting up talend open designer under fedora core 17 get the following error: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000000000000, pid=31474, tid=140162205787904 # # JRE version: 7.0_03 # Java VM: OpenJDK 64-Bit Server VM (23.0-b21 mixed mode linux-amd64 compressed oops) # Problematic frame: # C 0x0000000000000000 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /home/sumit/Downloads/TOS_DI-r84309-V5.1.1/hs_err_pid31474.log # # If you would like to submit a bug report, please include # instructions on how to reproduce the bug and visit: # http://icedtea.classpath.org/bugzilla # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120730/cd6df494/attachment.html From thomas at m3y3r.de Mon Jul 30 09:28:27 2012 From: thomas at m3y3r.de (Thomas Meyer) Date: Mon, 30 Jul 2012 18:28:27 +0200 Subject: [RFC] Override Max/MinHeapFreeRatio JVM options Message-ID: <1343665707.8530.23.camel@localhost.localdomain> Hi, what do you think about adding these parameters to the JVM? It seems as there is no option to supply user-defined command line options to the JVM spanned by the firefox plugin? The additional command line options should be: "-XX:MaxHeapFreeRatio=20 -XX:MinHeapFreeRatio=10" with kind regards thomas From bugzilla-daemon at icedtea.classpath.org Mon Jul 30 12:08:36 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Mon, 30 Jul 2012 19:08:36 +0000 Subject: [Bug 1094] icedtea-web does not work with Schwab's StreetSmart applet In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1094 --- Comment #7 from Deepak Bhole --- (In reply to comment #6) > Hmm, what if instead of throwing an exception, you just did nothing and > returned OK? Maybe that's a terrible idea... That wouldn't work unfortunately. The way the checkPermission() method works is that if the caller is permitted to do what it is asking, checkPermission() returns, and if not, it throws an exception. Thus making checkPermission() return without throwing an exception would be the same as giving the caller permission to change the manager. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120730/b236a5c4/attachment.html From ddadacha at redhat.com Mon Jul 30 14:22:38 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Mon, 30 Jul 2012 17:22:38 -0400 Subject: [RFC][icedtea-web] Small fix to Makefile missing path for keytool Message-ID: <5016FB1E.3000204@redhat.com> Hi, This was messing up one of my builds when using --with-jdk-home=/path/to/icedtea6/j2sdk/ Okay for HEAD? Cheers, Danesh -------------- next part -------------- A non-text attachment was scrubbed... Name: fix-makefile-keytool-path-01.patch Type: text/x-patch Size: 986 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120730/bf7d0d66/fix-makefile-keytool-path-01.patch From ahughes at redhat.com Mon Jul 30 15:44:50 2012 From: ahughes at redhat.com (Andrew Hughes) Date: Mon, 30 Jul 2012 18:44:50 -0400 (EDT) Subject: [RFC][icedtea-web] Small fix to Makefile missing path for keytool In-Reply-To: <5016FB1E.3000204@redhat.com> Message-ID: <1952617195.5553269.1343688290909.JavaMail.root@redhat.com> ----- Original Message ----- > Hi, > > This was messing up one of my builds when using > --with-jdk-home=/path/to/icedtea6/j2sdk/ > > Okay for HEAD? > > Cheers, > Danesh > Yes, fine. It shouldn't be relying on the $PATH. -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 From omajid at redhat.com Mon Jul 30 18:33:26 2012 From: omajid at redhat.com (Omair Majid) Date: Mon, 30 Jul 2012 21:33:26 -0400 Subject: Icedtea-web splashscreen implementation In-Reply-To: <500D5774.8010200@redhat.com> References: <4F50BE87.5070508@redhat.com> <4F6B30A0.1050507@redhat.com> <4F6CAB0A.40305@redhat.com> <4F88AA80.3000404@redhat.com> <500D5774.8010200@redhat.com> Message-ID: <501735E6.6040301@redhat.com> Hi Jiri, On 07/23/2012 09:53 AM, Jiri Vanek wrote: > Long pause but here it is. Redesigned as you wished for head and 1.3 > All minor stuff you have mentioned and most of mayor stuff should been > fixed. Thanks for sticking with the patch. > Minor changes: > * IcedTea instead of ICEDtea > * no reflection (interfaces instead) > * a lot of renaming as suggested > * countless;) > > Mayor changes: > * heavily unittested > * more decomposed > * separated SplashScreen and ErrorSplashScrren on highest (component > and interface) levels as you desired. Thanks! > The only "not fixed" is separation of net.sourceforge.jnlp.LaunchHandler > for each applet. I have trued to separate it somehow cleanly and > harmlessly but without success. So I would like to proceed without this > modification (especially for 1.3) and try to figure out more for head. Hm.. I would have liked to see that. > I hope that you will like this version more then the previous one;) Please see my comments in-line below. Also, most of these are hints. So you can ignore them. If I really feel strongly against something, I will say so. > diff -r 01544fb82384 netx/javaws_splash.png > Binary file netx/javaws_splash.png has changed Have I mentioned that hg diff --git and mq allow sending hex encoded binary images? > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/SplashControler.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/SplashControler.java Mon Jul 23 14:52:44 2012 +0200 > +public interface SplashControler { Controller (extra l). > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/SplashPanel.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/SplashPanel.java Mon Jul 23 14:52:44 2012 +0200 > +public interface SplashPanel { > + > + /** > + * The plugin splashscreens must be placed into another containers, > + * So must return themselves as JComponent. > + * Mostly your SplashScreen will extend some JComponent, so this method will > + * just return "this" > + */ > + public JComponent getPanel(); Nit: getPanel() makes it sound like the return type is JPanel. > + /** > + * javaws should provide content of tag. Those informations hould be passed by this method > + */ > + public void setInformationContent(InformationElement content); > + > + public InformationElement getInformationContent(); Sounds like InformationElement should be named InformationContent (or maybe the methods should be named getInformation/setInformation ?). > + /** Width of the plugin window */ > + public void setPluginWidth(int pluginWidth); > + > + /** Height of the plugin window */ > + public void setPluginHeight(int pluginHeight); > + > + /** Width of the plugin window */ > + public int getPluginWidth(); > + > + /** Height of the plugin window */ > + public int getPluginHeight(); > + > + public void adjustForSize(int width, int height); Does the caller have to call setPluginHeight(height), setPluginWidth(widhth) followed by adjustForSize(width, height) ? Perhaps adjustForSize can be an internal detail? I really dont think adjustForSize should be taking extra parameters though. > + > + public void paint(Graphics g); > + > + public void paintComponent(Graphics g); > + > + public void update(Graphics g); I don't think paint/paintComponent/update to be exposed as public. They are implementation details, right? > + SplashReason getSplashReason(); > + public String getVersion(); > + public int getPercentage(); Just a question: do you really need all the getFoo methods? Seems like the controller will be setting the values, so nothing should have to query it. Maybe I am mistaken. > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java Mon Jul 23 14:52:44 2012 +0200 > +public class SplashUtils { > + > + static final String ICEDTEA_WEB_PLUGIN_SPLASH = "ICEDTEA_WEB_PLUGIN_SPLASH"; > + static final String ICEDTEA_WEB_SPLASH = "ICEDTEA_WEB_SPLASH"; > + static final String NONE = "none"; > + static final String DEFAULT12 = "default12"; What's DEFUALT12? > + public static void showErrorCaught(Throwable ex, AppletInstance appletInstance) { > + try { > + showError(ex, appletInstance); > + } catch (Throwable t) { > + if (JNLPRuntime.isDebug()) { > + // prinitng this exception is discutable. I have let it in for case that > + //some retyping will fail > + t.printStackTrace(); For HEAD (not 1.3) maybe consider throwing an InternalError(t) or RuntimeException(t) instead? > + public static void showError(Throwable ex, AppletEnvironment ae) { > + if (ae == null) { > + return; > + } > + NetxPanel p = ((NetxPanel) (ae.getAppletFrame())); Is NetxPanel a SplashController? > + private static SplashReason determineCaller(StackTraceElement[] stackTrace) { > + for (StackTraceElement stackTraceElement : stackTrace) { > + if (stackTraceElement.getClassName().contains(JNLPSplashScreen.class.getSimpleName())) { > + return SplashUtils.SplashReason.JAVAWS; > + } > + > + } > + return SplashUtils.SplashReason.APPLET; > + } Instead of querying the stack, perhaps we can set this from, say, JNLPRuntime? > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/impls/DefaultErrorSpalshScreen12.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/impls/DefaultErrorSpalshScreen12.java Mon Jul 23 14:52:44 2012 +0200 > +public final class DefaultErrorSpalshScreen12 extends BasicComponentErrorSplashScreen { s/Spalsh/Splash/ What's the significance of 12 in the name? > + > + private final DefaultErrorSpalshScreen12 self; > + //scaling Is this a comment for a variable that was removed? > + //for clicking ot error message > + ErrorPainter painter; Please make this private. > +// try { > +// tmpBackround = ImageIO.read(new File("/home/jvanek/Desktop/icedteaplugin.jpg")); > +// } catch (Exception ex) { > +// ex.printStackTrace(); > +// } Please remove this. > + // Add a new listener for resizes > + addComponentListener(new ComponentListener() { > + // Nothing to do for this > + > + @Override > + public void componentShown(ComponentEvent e) { > + } > + // Re-adjust variables based on size > + > + @Override > + public void componentResized(ComponentEvent e) { > + self.adjustForSize(getWidth(), getHeight()); > + repaint(); > + } > + // Nothing to do for this > + > + @Override > + public void componentMoved(ComponentEvent e) { > + } > + // Nothing to do for this > + > + @Override > + public void componentHidden(ComponentEvent e) { > + } > + }); You may be able to use ComponentAdapter to cut down the size of this code. > + @Override > + public void paintComponent(Graphics g) { > + paint(g); > + } > + > + @Override > + public void paint(Graphics g) { > + painter.paint(g); I think just paintComponent should be overridden. Swing's implementation of paint will call paintComponent at the right time. > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSpalshScreen12.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSpalshScreen12.java Mon Jul 23 14:52:44 2012 +0200 > @@ -0,0 +1,155 @@ > +public final class DefaultSpalshScreen12 extends BasicComponentSplashScreen { This class looks a lot like the last one. There's not much too much code here. Perhaps you can refactor it into a shared class or something? > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/BasePainter.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/BasePainter.java Mon Jul 23 14:52:44 2012 +0200 > @@ -0,0 +1,511 @@ > +public class BasePainter { > + > + protected final BasicComponentSplashScreen master; > + //animations > + //level of water (0-100%) > + private int level = 0; Maybe just call this variable waterLevel? Although it would be even better to call it something that is more semantically meaningful. What does that water level reflect? > + //waving of water and position of shhadowed WEB > + private int level2 = 0; > + private int l2inc = 15; //how quickly is greyed web moving Likewise ;) > + //inidivdual sizes, all converging to ZERO!! > + private final int WEB_TOP_ALIGMENT = 324; > + private final int WEB_LEFT_ALIGMENT = 84; How did you drive these numbers. > + public final void startAnimationThreads() { > + Thread tt = getMoovingTextThread(); > + tt.start(); > + Thread t = getWatterLevelThread(); > + t.start(); > + } > + > + private Thread getMoovingTextThread() { > + Thread tt = new Thread() { > + > + @Override > + public void run() { > + // While spinning > + while (master.isAnimationRunning()) { > + try { > + SwingUtilities.invokeAndWait(new Runnable() { > + > + @Override > + public void run() { > + level2 += l2inc; > + if (level2 > 10000) { > + level2 = 1; > + } > + // Force repaint > + master.repaint(); > + } > + }); > + Thread.sleep(150); > + } catch (Exception e) { > + e.printStackTrace(); > + } > + } > + } > + }; > + tt.setDaemon(true); > + return tt; > + } My first instic would be to have the animator thread in the controller. The controller would signal when it's time for the view to update, and the view would repaint itself. What shuts this thread down? > + public void cleareCachedWatter() { > + oldTwl = null; > + } clearCachedWater, I think. But I would encourage you to go with a more genric name (the implementation will be the same, of course). Maybe something like reset() or clear() ? > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/ControlCurve.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/ControlCurve.java Mon Jul 23 14:52:44 2012 +0200 > @@ -0,0 +1,184 @@ > +/** This class represents a curve defined by a sequence of control points */ > +/* Part of NatCubic implementation, inspire by http://www.cse.unsw.edu.au/~lambert/*/ Could you clarify this bit? Is this code copied from NatCubic? > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/ErrorPainter.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/ErrorPainter.java Mon Jul 23 14:52:44 2012 +0200 > + private Thread getErrorScreamThread() { > + // Create a new thread to screem error when failure I am not sure I follow. Could you explain the purpose? > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/ImageFontCutter.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/ImageFontCutter.java Mon Jul 23 14:52:44 2012 +0200 > +public class ImageFontCutter { >From what I can tell, this is supposed to draw strings. Why the font cutter name? Maybe something like TextRenderer might be more appropriate? With a method named render: render (Image image, String text, Font font) { .... } Just a thought. > + /** > + * @return the s > + */ > + public String getS() { Does 's' have a special meaning here? > +} > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/MoovingText.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/MoovingText.java Mon Jul 23 14:52:44 2012 +0200 > +public class MoovingText extends TextWithWatterLevel { MovingText. TextWithWaterLevel. > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/NatCubic.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/impls/defaultspalshscreen12/NatCubic.java Mon Jul 23 14:52:44 2012 +0200 I am guessing this is from NatCubic as well? > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/parts/DescriptionInfoItem.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/parts/DescriptionInfoItem.java Mon Jul 23 14:52:44 2012 +0200 > +/** > + *description element: A short statement about the application. Description elements are optional. The kind attribute defines how the description should be used. It can have one of the following values: > + * > + * * one-line: If a reference to the application is going to appear on one row in a list or a table, this description will be used. > + * * short: If a reference to the application is going to be displayed in a situation where there is room for a paragraph, this description is used. > + * * tooltip: If a reference to the application is going to appear in a tooltip, this description is used. > + * > + * Only one description element of each kind can be specified. A description element without a kind is used as a default value. Thus, if Java Web Start needs a description of kind short, and it is not specified in the JNLP file, then the text from the description without an attribute is used. > + * > + * All descriptions contain plain text. No formatting, such as with HTML tags, is supported. > + */ Please limit to 80 columns! > + @Override > + public String toXml() { > + if (kind==null){ > + return super.toXml(); > + } > + return "<"+type+" kind=\""+kind+"\">"+value+""; > + } Hm.. what's this for? Do we ever output anything in XML? > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/parts/InfoItem.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/parts/InfoItem.java Mon Jul 23 14:52:44 2012 +0200 > + > +/** > + *The optional kind="splash" attribute may be used in an icon element to indicate that the image is to be used as a "splash" screen during the launch of an application. If the JNLP file does not contain an icon element with kind="splash" attribute, Java Web Start will construct a splash screen using other items from the information Element. > + *If the JNLP file does not contain any icon images, the splash image will consist of the application's title and vendor, as taken from the JNLP file. > + * > + * items not used inside > + */ > +public class InfoItem { Much of this is more-or-less an exact duplicate of existing code. I know you want to avoid mixing parsing code with code for splash screen, but please consider reducing the duplication. As it is, if an additional element is added to the jnlp file, multiple locations will have to be changed. This is a bad idea from a maintenance point of view. It is likely this code will start to rot. > diff -r 01544fb82384 netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java Mon Jul 23 14:52:44 2012 +0200 > +public class JEditorPaneBasedExceptionDialog extends javax.swing.JDialog implements HyperlinkListener { A screenshot of this might be nice (but not needed). It's hard for me to 'see' what this looks like. Anyway, my recommendation is to use JOptionPane's dialog if at all possible. > + @SuppressWarnings("unchecked") > + private void initComponents() { > + > + jPanel2 = new javax.swing.JPanel(); > + jButton1 = new javax.swing.JButton(); > + jButton2 = new javax.swing.JButton(); > + jPanel1 = new javax.swing.JPanel(); > + jLabel1 = new javax.swing.JLabel(); > + jLabel2 = new javax.swing.JLabel(); > + jPanel3 = new javax.swing.JPanel(); > + jScrollPane1 = new javax.swing.JScrollPane(); > + jEditorPane1 = new javax.swing.JEditorPane(); > + jButton3 = new javax.swing.JButton(); Can we have some cleaner names, please? Also, this looks like some terrible ide-generated code :( > + private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { > + if (exception != null) { > + try { > + StringSelection data = new StringSelection(getExceptionStackTraceAsString(exception)); > + Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); > + clipboard.setContents(data, data); Hm... is this code running with full privileges? Can it access the clipboard? > + } catch (Exception ex) { > + JOptionPane.showMessageDialog(this, Translator.R(InfoItem.SPLASH + "cantCopyEx")); > + ex.printStackTrace(); > + } > + } else { > + JOptionPane.showMessageDialog(this, Translator.R(InfoItem.SPLASH + "noExRecorded")); > + } > + close(); > + } > + > + private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { > + // TODO add your handling code here > + jEditorPane1.setText(message); > + jButton3.setVisible(false); > + } > + > + private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { > + // TODO add your handling code here: > + close(); > + } Could you clarify the method names? Also, please remove the spurious TODOs. > + // Variables declaration - do not modify > + private javax.swing.JButton jButton1; > + private javax.swing.JButton jButton2; > + private javax.swing.JButton jButton3; > + private javax.swing.JEditorPane jEditorPane1; > + private javax.swing.JLabel jLabel1; > + private javax.swing.JLabel jLabel2; > + private javax.swing.JPanel jPanel1; > + private javax.swing.JPanel jPanel2; > + private javax.swing.JPanel jPanel3; > + private javax.swing.JScrollPane jScrollPane1; > + // End of variables declaration /me mumbles something about IDEs presuming too much. But seriously, what happens if I do modify this? Say I have to remove a button to resolve a (usability) bug. Will it completely break things for your IDE? I am going to review the other patches later. Sorry to leave you hanging like this. Cheers, Omair From xueming.shen at oracle.com Mon Jul 30 21:32:23 2012 From: xueming.shen at oracle.com (Xueming Shen) Date: Mon, 30 Jul 2012 21:32:23 -0700 Subject: Native zlib libraries In-Reply-To: <1236740822.5028742.1343643614692.JavaMail.root@redhat.com> References: <1236740822.5028742.1343643614692.JavaMail.root@redhat.com> Message-ID: <50175FD7.1030500@oracle.com> totalbytes_Read/Written are being tested though not the size > 4G. That test mainly tests the > 64K entries and total size > 4G (lots of > 32-bit offsets...), but the total bytes read/ written are all < 4G (for each entry). An easy manual test I always do after run that test is to jar the resulting > 6g file and unjar it. That will actually check the total bytes read/written > 4G case. If you keep using the same JRE which uses the system zlib, you might still be able to jar and unjar a single > 4G file. The total bytes read/written are used as one of the validation in zip format, ZipOutputStream writes these two number as size/csize fields of the loc and cen table, the ZipInputStream then verifies these numbers when inflating. This round-trip happens to work if the zos and zis both use the same JRE, in which both throw away the high bits of the total numbers (but their low bits are still match) But a simple jar tvf tells you the size number is incorrect. Also , if you jar some other files together with this > 4G file, you probably will get error when trying to extract individual entry file(s) out, as the position info of those files probably will get messed up. Btw, the code to support > 4G total_in/out at java level is ready here, need some more tests and the bugid for this one and yours. http://cr.openjdk.java.net/~sherman/undozip/webrev/ -Sherman On 7/30/12 3:20 AM, Andrew Hughes wrote: > ----- Original Message ----- >> On 07/27/2012 10:37 AM, Andrew Hughes wrote: >>> ----- Original Message ----- >>>> The zip64 support (total_in/out) part probably can be done at Java >>>> level >>>> (ignore >>>> the total_in/out in z_tream_s). Need to remove this dependency. >>>> Will >>>> take a look later. >>>> >>> Yes, it seems they still mention the size of total_in/out on the >>> website on the zlib site, and that they shouldn't be relied on: >>> >>> http://www.zlib.net/zlib_faq.html#faq32 >>> >>> "Note however that the strm.total_in and strm_total_out counters >>> may be limited to 4 GB. These counters are provided as a >>> convenience and are not used internally by inflate() or deflate(). >>> The application can easily set up its own counters updated after >>> each call of inflate() or deflate() to count beyond 4 GB" >>> >>> "The word "may" appears several times above since there is a 4 GB >>> limit only if the compiler's long type is 32 bits. If the >>> compiler's long type is 64 bits, then the limit is 16 exabytes." >>> >>> I notice a test went in with the 64-bit support, but I assume it >>> can't test these counters as the Deflater for a ZipStream is >>> protected. At least, they aren't failing on our builds with >>> system zlib. >> That test is not configured to be run for "auto testing", it just >> takes >> too long to zip/unzip >> a 4G+ file. I use it manually to test the ZIP64 support. >> > Yes, sorry, I noticed this after posting. I've since run it manually and it passes > with a system zlib, both on the zip it creates and one I created containing just > a single 4.2gb file (a RHEL ISO image zipped). But I'm not sure if it's testing total bytes > read for overflow. > >> I will give it a try to remove this dependency next week. > Thanks. > >> It would be >> helpful if you can >> help "migrate" the icetea patch. How does the icetea patch work now? >> Always use the >> system zlib, if it presents? any configurable option to switch on and >> off? > It adds a switch and also support for setting the CFLAGS/LIBS: > > USE_SYSTEM_ZLIB=true \ > ZLIB_LIBS="$(pkg-config --libs zlib)" \ > ZLIB_CFLAGS="$(pkg-config --cflags zlib)" \ > > This is the same nomenclature we use for the other libraries too > (lcms, jpeg, png, gif, cups, etc.) > > I'll try and post the patch later today. > >> -Sherman >> >>> Are you actively working on this now or shall I take a look? >>> >>>> -Sherman >>>> >>>> On 7/11/2012 12:47 AM, Alan Bateman wrote: >>>>> On 05/07/2012 17:11, Andrew Hughes wrote: >>>>>> ----- Original Message ----- >>>>>>> Is there a way to get the native zlib libraries to get picked >>>>>>> up >>>>>>> instead of the hardcoded version within the JVM? >>>>>>> >>>>>>> -- >>>>>>> Azeem Jiva >>>>>>> @javawithjiva >>>>>> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get >>>>>> it >>>>>> upstream. >>>>>> >>>>>> However, I don't see how this is related to HotSpot, as the zlib >>>>>> usage >>>>>> is in the jdk tree. >>>>> I think we need to (re)start the discussion on core-libs-dev with >>>>> a >>>>> view to eliminating the patches that the JDK has to zlib, see: >>>>> >>>>> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java >>>>> >>>>> >>>>> One of these changes relates to the zip64 support and I believe >>>>> there >>>>> are corner cases when inflating or deflating>2GB that won't work >>>>> if >>>>> using the system zlib. Sherman will likely recall the details. >>>>> Given >>>>> that the new build already supports using the system zlib (at >>>>> least >>>>> on >>>>> Linux) then it would be good to sort this out so that it just >>>>> works. >>>>> >>>>> -Alan >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >> From jvanek at icedtea.classpath.org Tue Jul 31 05:30:35 2012 From: jvanek at icedtea.classpath.org (jvanek at icedtea.classpath.org) Date: Tue, 31 Jul 2012 12:30:35 +0000 Subject: /hg/icedtea-web: Introduced configure option --with-gtk=2|3|defa... Message-ID: changeset 363877daeedb in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=363877daeedb author: Jiri Vanek date: Tue Jul 31 14:34:51 2012 +0200 Introduced configure option --with-gtk=2|3|default to be able to compile against different version of GTK+ (2.x or 3.x). diffstat: AUTHORS | 1 + ChangeLog | 9 +++++++++ NEWS | 1 + acinclude.m4 | 40 +++++++++++++++++++++++++++++++++++++++- 4 files changed, 50 insertions(+), 1 deletions(-) diffs (94 lines): diff -r 0c42aee7089e -r 363877daeedb AUTHORS --- a/AUTHORS Tue Jul 24 10:38:51 2012 -0400 +++ b/AUTHORS Tue Jul 31 14:34:51 2012 +0200 @@ -8,6 +8,7 @@ Adam Domurad Thomas Fitzsimmons Mark Greenwood +Peter Hatina Andrew John Hughes Matthias Klose Micha?? G??rny < mgorny at gentoo.org > diff -r 0c42aee7089e -r 363877daeedb ChangeLog --- a/ChangeLog Tue Jul 24 10:38:51 2012 -0400 +++ b/ChangeLog Tue Jul 31 14:34:51 2012 +0200 @@ -1,3 +1,12 @@ +2012-07-31 Jiri Vanek + Peter Hatina + + Introduced configure option --with-gtk=2|3|default to be able + to compile against different version of GTK+ (2.x or 3.x). + * NEWS: mentioned bug fix + * acinclude.m4: (ITW_GTK_CHECK_VERSION) macro for getting GTK+ version + (ITW_GTK_CHECK) macro for checking GTK+ version + 2012-07-24 Adam Domurad * plugin/icedteanp/IcedTeaPluginUtils.cc diff -r 0c42aee7089e -r 363877daeedb NEWS --- a/NEWS Tue Jul 24 10:38:51 2012 -0400 +++ b/NEWS Tue Jul 31 14:34:51 2012 +0200 @@ -25,6 +25,7 @@ - PR918: java applet windows uses a low resulution black/white icon - RH838417: Disambiguate signed applet security prompt from certificate warning - RH838559: Disambiguate signed applet security prompt from certificate warning + - RH720836: project can be compiled against GTK+ 2 or 3 librarie New in release 1.2 (2011-XX-XX): * Security updates: diff -r 0c42aee7089e -r 363877daeedb acinclude.m4 --- a/acinclude.m4 Tue Jul 24 10:38:51 2012 -0400 +++ b/acinclude.m4 Tue Jul 31 14:34:51 2012 +0200 @@ -359,13 +359,51 @@ AC_MSG_RESULT(${enable_plugin}) ]) +dnl ITW_GTK_CHECK_VERSION([gtk version]) +AC_DEFUN([ITW_GTK_CHECK_VERSION], +[ + AC_MSG_CHECKING([for GTK$1 version]) + GTK_VER=`$PKG_CONFIG --modversion gtk+-$1.0` + AC_MSG_RESULT([$GTK_VER]) +]) + +dnl ITW_GTK_CHECK([gtk version]) +AC_DEFUN([ITW_GTK_CHECK], +[ + case "$1" in + default) + PKG_CHECK_MODULES(GTK, gtk+-3.0, + [ITW_GTK_CHECK_VERSION([3])], + [PKG_CHECK_MODULES(GTK, gtk+-2.0, + [ITW_GTK_CHECK_VERSION([2])], + [AC_MSG_ERROR([GTK $1 not found])] + )] + ) + ;; + *) + PKG_CHECK_MODULES(GTK, gtk+-$1.0, + [ITW_GTK_CHECK_VERSION([$1])], + [AC_MSG_ERROR([GTK $1 not found])] + ) + ;; + esac +]) + AC_DEFUN_ONCE([IT_CHECK_PLUGIN_DEPENDENCIES], [ dnl Check for plugin support headers and libraries. dnl FIXME: use unstable AC_REQUIRE([IT_CHECK_PLUGIN]) if test "x${enable_plugin}" = "xyes" ; then - PKG_CHECK_MODULES(GTK, gtk+-2.0) + AC_ARG_WITH([gtk], + [AS_HELP_STRING([--with-gtk=[2|3|default]], + [the GTK+ version to use (default: 3)])], + [case "$with_gtk" in + 2|3|default) ;; + *) AC_MSG_ERROR([invalid GTK version specified]) ;; + esac], + [with_gtk=default]) + ITW_GTK_CHECK([$with_gtk]) PKG_CHECK_MODULES(GLIB, glib-2.0) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) From jvanek at icedtea.classpath.org Tue Jul 31 05:33:54 2012 From: jvanek at icedtea.classpath.org (jvanek at icedtea.classpath.org) Date: Tue, 31 Jul 2012 12:33:54 +0000 Subject: /hg/release/icedtea-web-1.3: Introduced configure option --with-... Message-ID: changeset 55911b39b5c0 in /hg/release/icedtea-web-1.3 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.3?cmd=changeset;node=55911b39b5c0 author: Jiri Vanek date: Tue Jul 31 14:38:12 2012 +0200 Introduced configure option --with-gtk=2|3|default to be able to compile against different version of GTK+ (2.x or 3.x). diffstat: AUTHORS | 1 + ChangeLog | 9 +++++++++ NEWS | 1 + acinclude.m4 | 40 +++++++++++++++++++++++++++++++++++++++- 4 files changed, 50 insertions(+), 1 deletions(-) diffs (94 lines): diff -r 14fbe4fcec25 -r 55911b39b5c0 AUTHORS --- a/AUTHORS Tue Jul 24 10:35:11 2012 -0400 +++ b/AUTHORS Tue Jul 31 14:38:12 2012 +0200 @@ -8,6 +8,7 @@ Adam Domurad Thomas Fitzsimmons Mark Greenwood +Peter Hatina Andrew John Hughes Matthias Klose Micha?? G??rny < mgorny at gentoo.org > diff -r 14fbe4fcec25 -r 55911b39b5c0 ChangeLog --- a/ChangeLog Tue Jul 24 10:35:11 2012 -0400 +++ b/ChangeLog Tue Jul 31 14:38:12 2012 +0200 @@ -1,3 +1,12 @@ +2012-07-31 Jiri Vanek + Peter Hatina + + Introduced configure option --with-gtk=2|3|default to be able + to compile against different version of GTK+ (2.x or 3.x). + * NEWS: mentioned bug fix + * acinclude.m4: (ITW_GTK_CHECK_VERSION) macro for getting GTK+ version + (ITW_GTK_CHECK) macro for checking GTK+ version + 2012-07-24 Adam Domurad * plugin/icedteanp/IcedTeaPluginUtils.cc diff -r 14fbe4fcec25 -r 55911b39b5c0 NEWS --- a/NEWS Tue Jul 24 10:35:11 2012 -0400 +++ b/NEWS Tue Jul 31 14:38:12 2012 +0200 @@ -25,6 +25,7 @@ - PR918: java applet windows uses a low resulution black/white icon - RH838417: Disambiguate signed applet security prompt from certificate warning - RH838559: Disambiguate signed applet security prompt from certificate warning + - RH720836: project can be compiled against GTK+ 2 or 3 librarie New in release 1.2 (2011-XX-XX): * Security updates: diff -r 14fbe4fcec25 -r 55911b39b5c0 acinclude.m4 --- a/acinclude.m4 Tue Jul 24 10:35:11 2012 -0400 +++ b/acinclude.m4 Tue Jul 31 14:38:12 2012 +0200 @@ -359,13 +359,51 @@ AC_MSG_RESULT(${enable_plugin}) ]) +dnl ITW_GTK_CHECK_VERSION([gtk version]) +AC_DEFUN([ITW_GTK_CHECK_VERSION], +[ + AC_MSG_CHECKING([for GTK$1 version]) + GTK_VER=`$PKG_CONFIG --modversion gtk+-$1.0` + AC_MSG_RESULT([$GTK_VER]) +]) + +dnl ITW_GTK_CHECK([gtk version]) +AC_DEFUN([ITW_GTK_CHECK], +[ + case "$1" in + default) + PKG_CHECK_MODULES(GTK, gtk+-3.0, + [ITW_GTK_CHECK_VERSION([3])], + [PKG_CHECK_MODULES(GTK, gtk+-2.0, + [ITW_GTK_CHECK_VERSION([2])], + [AC_MSG_ERROR([GTK $1 not found])] + )] + ) + ;; + *) + PKG_CHECK_MODULES(GTK, gtk+-$1.0, + [ITW_GTK_CHECK_VERSION([$1])], + [AC_MSG_ERROR([GTK $1 not found])] + ) + ;; + esac +]) + AC_DEFUN_ONCE([IT_CHECK_PLUGIN_DEPENDENCIES], [ dnl Check for plugin support headers and libraries. dnl FIXME: use unstable AC_REQUIRE([IT_CHECK_PLUGIN]) if test "x${enable_plugin}" = "xyes" ; then - PKG_CHECK_MODULES(GTK, gtk+-2.0) + AC_ARG_WITH([gtk], + [AS_HELP_STRING([--with-gtk=[2|3|default]], + [the GTK+ version to use (default: 3)])], + [case "$with_gtk" in + 2|3|default) ;; + *) AC_MSG_ERROR([invalid GTK version specified]) ;; + esac], + [with_gtk=default]) + ITW_GTK_CHECK([$with_gtk]) PKG_CHECK_MODULES(GLIB, glib-2.0) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) From ddadacha at icedtea.classpath.org Tue Jul 31 06:56:00 2012 From: ddadacha at icedtea.classpath.org (ddadacha at icedtea.classpath.org) Date: Tue, 31 Jul 2012 13:56:00 +0000 Subject: /hg/icedtea-web: Fix in Makefile missing absolute path for keytool. Message-ID: changeset 09198dc413b5 in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=09198dc413b5 author: Danesh Dadachanji date: Tue Jul 31 09:55:12 2012 -0400 Fix in Makefile missing absolute path for keytool. diffstat: ChangeLog | 4 ++++ Makefile.am | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diffs (23 lines): diff -r 363877daeedb -r 09198dc413b5 ChangeLog --- a/ChangeLog Tue Jul 31 14:34:51 2012 +0200 +++ b/ChangeLog Tue Jul 31 09:55:12 2012 -0400 @@ -1,3 +1,7 @@ +2012-07-31 Danesh Dadachanji + + * Makefile.am: Fix call to keytool that is missing its absolute path. + 2012-07-31 Jiri Vanek Peter Hatina diff -r 363877daeedb -r 09198dc413b5 Makefile.am --- a/Makefile.am Tue Jul 31 14:34:51 2012 +0200 +++ b/Makefile.am Tue Jul 31 09:55:12 2012 -0400 @@ -619,7 +619,7 @@ done ; types=($(SIGNED_REPRODUCERS)) ; \ for which in "$${types[@]}" ; do \ - keytool -export -alias $(TEST_CERT_ALIAS)_$$which -file $(EXPORTED_TEST_CERT_PREFIX)_$$which.$(EXPORTED_TEST_CERT_SUFFIX) -storepass $(PRIVATE_KEYSTORE_PASS) -keystore $(PRIVATE_KEYSTORE_NAME) ; \ + $(BOOT_DIR)/bin/keytool -export -alias $(TEST_CERT_ALIAS)_$$which -file $(EXPORTED_TEST_CERT_PREFIX)_$$which.$(EXPORTED_TEST_CERT_SUFFIX) -storepass $(PRIVATE_KEYSTORE_PASS) -keystore $(PRIVATE_KEYSTORE_NAME) ; \ done ; mkdir -p stamps && \ touch $@ From ddadacha at redhat.com Tue Jul 31 09:25:23 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Tue, 31 Jul 2012 12:25:23 -0400 Subject: [RFC][icedtea-web] Small fix to Makefile missing path for keytool In-Reply-To: <1952617195.5553269.1343688290909.JavaMail.root@redhat.com> References: <1952617195.5553269.1343688290909.JavaMail.root@redhat.com> Message-ID: <501806F3.9070505@redhat.com> On 30/07/12 06:44 PM, Andrew Hughes wrote: > ----- Original Message ----- >> Hi, >> >> This was messing up one of my builds when using >> --with-jdk-home=/path/to/icedtea6/j2sdk/ >> >> Okay for HEAD? >> > > Yes, fine. It shouldn't be relying on the $PATH. > Thanks for the review! Pushed: http://icedtea.classpath.org/hg/icedtea-web/rev/09198dc413b5 Regards, Danesh From bugzilla-daemon at icedtea.classpath.org Tue Jul 31 11:14:02 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 31 Jul 2012 18:14:02 +0000 Subject: [Bug 1096] NPEs and then launch fails with "access denied" In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1096 JiriVanek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |jvanek at redhat.com Assignee|omajid at redhat.com |jvanek at redhat.com -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120731/c8477215/attachment.html From dbhole at icedtea.classpath.org Tue Jul 31 11:26:08 2012 From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org) Date: Tue, 31 Jul 2012 18:26:08 +0000 Subject: /hg/release/icedtea-web-1.1: 4 new changesets Message-ID: changeset 109bec81dd4b in /hg/release/icedtea-web-1.1 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=109bec81dd4b author: Deepak Bhole date: Tue Jul 24 13:58:42 2012 -0400 CVE-2012-3422, RH840592: Potential read from an uninitialized memory location Updated NEWS file with entry for CVE-2012-3423 changeset e62245b1ab29 in /hg/release/icedtea-web-1.1 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=e62245b1ab29 author: Deepak Bhole date: Tue Jul 24 13:59:26 2012 -0400 Prepare for 1.1.6 changeset 5116ebb94452 in /hg/release/icedtea-web-1.1 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=5116ebb94452 author: Deepak Bhole date: Wed Jul 25 16:26:26 2012 -0400 Added tag icedtea-web-1.1.6 for changeset e62245b1ab29 changeset 431bf0c06da5 in /hg/release/icedtea-web-1.1 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.1?cmd=changeset;node=431bf0c06da5 author: Deepak Bhole date: Tue Jul 24 14:19:35 2012 -0400 Prepare for 1.1.7 diffstat: .hgtags | 1 + ChangeLog | 20 ++++++++++++++++++++ NEWS | 9 +++++++-- configure.ac | 2 +- plugin/icedteanp/IcedTeaNPPlugin.cc | 10 ++++++++++ 5 files changed, 39 insertions(+), 3 deletions(-) diffs (90 lines): diff -r 52f5d2f97584 -r 431bf0c06da5 .hgtags --- a/.hgtags Wed Jul 25 16:10:02 2012 -0400 +++ b/.hgtags Tue Jul 24 14:19:35 2012 -0400 @@ -5,3 +5,4 @@ 3352c0b0d9bb990ec4dd89baadc2ef11bc8eed28 icedtea-web-1.1.3 77cbf8633a7c63046eb70fbe89d594a8c7b116af icedtea-web-1.1.4 4303e215188f1ae6ffd6ac639ea71b569c2ac7fb icedtea-web-1.1.5 +e62245b1ab299666397584e430a4feeeb1c0865a icedtea-web-1.1.6 diff -r 52f5d2f97584 -r 431bf0c06da5 ChangeLog --- a/ChangeLog Wed Jul 25 16:10:02 2012 -0400 +++ b/ChangeLog Tue Jul 24 14:19:35 2012 -0400 @@ -1,3 +1,23 @@ +2012-07-25 Deepak Bhole + + * configure.ac: Prepare for 1.1.7 + * NEWS: Same + +2012-07-25 Deepak Bhole + + * configure.ac: Prepare for 1.1.6 + * NEWS: Same + +2012-07-25 Adam Domurad + + CVE-2012-3422, RH840592: Potential read from an uninitialized + memory location. + * plugin/icedteanp/IcedTeaNPPlugin.cc + (get_cookie_info): Only attempt to perform this operation if there is a + valid plugin instance + (get_proxy_info): Only attempt to perform this operation if there is a + valid plugin instance + 2012-07-25 Adam Domurad Allow passing of plugin tables and browser tables in NP_Initialize that diff -r 52f5d2f97584 -r 431bf0c06da5 NEWS --- a/NEWS Wed Jul 25 16:10:02 2012 -0400 +++ b/NEWS Tue Jul 24 14:19:35 2012 -0400 @@ -8,8 +8,13 @@ CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY -New in release 1.1.6 (2012-XX-XX): - * Plugin +New in release 1.1.7 (2012-XX-XX): + +New in release 1.1.6 (2012-07-31): +* Security Updates + - CVE-2012-3422, RH840592: Potential read from an uninitialized memory location + - CVE-2012-3423, RH841345: Incorrect handling of not 0-terminated strings +* Plugin - PR863: Error passing strings to applet methods in Chromium - PR518: NPString.utf8characters not guaranteed to be nul-terminated diff -r 52f5d2f97584 -r 431bf0c06da5 configure.ac --- a/configure.ac Wed Jul 25 16:10:02 2012 -0400 +++ b/configure.ac Tue Jul 24 14:19:35 2012 -0400 @@ -1,4 +1,4 @@ -AC_INIT([icedtea-web],[1.1.6pre],[distro-pkg-dev at openjdk.java.net], [icedtea-web], [http://icedtea.classpath.org/wiki/IcedTea-Web]) +AC_INIT([icedtea-web],[1.1.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 netx.manifest]) diff -r 52f5d2f97584 -r 431bf0c06da5 plugin/icedteanp/IcedTeaNPPlugin.cc --- a/plugin/icedteanp/IcedTeaNPPlugin.cc Wed Jul 25 16:10:02 2012 -0400 +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 24 14:19:35 2012 -0400 @@ -886,6 +886,11 @@ NPError get_cookie_info(const char* siteAddr, char** cookieString, uint32_t* len) { + // Only attempt to perform this operation if there is a valid plugin instance + if (g_hash_table_size(instance_to_id_map) <= 0) + { + return NPERR_GENERIC_ERROR; + } #if MOZILLA_VERSION_COLLAPSED < 1090100 nsresult rv; nsCOMPtr sec_man = @@ -1306,6 +1311,11 @@ NPError get_proxy_info(const char* siteAddr, char** proxy, uint32_t* len) { + // Only attempt to perform this operation if there is a valid plugin instance + if (g_hash_table_size(instance_to_id_map) <= 0) + { + return NPERR_GENERIC_ERROR; + } #if MOZILLA_VERSION_COLLAPSED < 1090100 nsresult rv; From dbhole at icedtea.classpath.org Tue Jul 31 11:26:26 2012 From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org) Date: Tue, 31 Jul 2012 18:26:26 +0000 Subject: /hg/release/icedtea-web-1.2: 4 new changesets Message-ID: changeset ec09874d2716 in /hg/release/icedtea-web-1.2 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.2?cmd=changeset;node=ec09874d2716 author: Deepak Bhole date: Tue Jul 24 11:44:50 2012 -0400 CVE-2012-3422, RH840592: Potential read from an uninitialized memory location Updated NEWS file with entry for CVE-2012-3423 changeset fae550dbc884 in /hg/release/icedtea-web-1.2 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.2?cmd=changeset;node=fae550dbc884 author: Deepak Bhole date: Tue Jul 24 14:01:31 2012 -0400 Prepare for 1.2.1 changeset afba9cb10cce in /hg/release/icedtea-web-1.2 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.2?cmd=changeset;node=afba9cb10cce author: Deepak Bhole date: Tue Jul 24 14:19:58 2012 -0400 Added tag icedtea-web-1.2.1 for changeset fae550dbc884 changeset f6d6d529d73c in /hg/release/icedtea-web-1.2 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.2?cmd=changeset;node=f6d6d529d73c author: Deepak Bhole date: Tue Jul 24 14:02:12 2012 -0400 Prepare for 1.2.2 diffstat: .hgtags | 1 + ChangeLog | 20 ++++++++++++++++++++ NEWS | 7 ++++++- configure.ac | 2 +- plugin/icedteanp/IcedTeaNPPlugin.cc | 10 ++++++++++ 5 files changed, 38 insertions(+), 2 deletions(-) diffs (88 lines): diff -r 087d8407b2e1 -r f6d6d529d73c .hgtags --- a/.hgtags Tue Jul 24 10:24:57 2012 -0400 +++ b/.hgtags Tue Jul 24 14:02:12 2012 -0400 @@ -1,3 +1,4 @@ 692d7e5b31039156aff1600fd7f5034fead2f258 icedtea-web-1.0-branchpoint b605505179459c9f2119e4dfde999fc6300e4c87 icedtea-web-1.1-branchpoint 58c02a3ace5dd11edc900d869b7c69186c54101d icedtea-web-1.2 +fae550dbc8843d997d6180b1ba4d25b3dd831ac9 icedtea-web-1.2.1 diff -r 087d8407b2e1 -r f6d6d529d73c ChangeLog --- a/ChangeLog Tue Jul 24 10:24:57 2012 -0400 +++ b/ChangeLog Tue Jul 24 14:02:12 2012 -0400 @@ -1,3 +1,23 @@ +2012-07-24 Deepak Bhole + + * configure.ac: Prepare for 1.2.2 + * NEWS: Same + +2012-07-24 Deepak Bhole + + * configure.ac: Prepare for 1.2.1 + * NEWS: Same + +2012-07-24 Adam Domurad + + CVE-2012-3422, RH840592: Potential read from an uninitialized + memory location. + * plugin/icedteanp/IcedTeaNPPlugin.cc + (get_cookie_info): Only attempt to perform this operation if there is a + valid plugin instance + (get_proxy_info): Only attempt to perform this operation if there is a + valid plugin instance + 2012-07-24 Adam Domurad * plugin/icedteanp/IcedTeaPluginUtils.cc diff -r 087d8407b2e1 -r f6d6d529d73c NEWS --- a/NEWS Tue Jul 24 10:24:57 2012 -0400 +++ b/NEWS Tue Jul 24 14:02:12 2012 -0400 @@ -8,7 +8,12 @@ CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY -New in release 1.2.1 (2012-XX-XX): +New in release 1.2.2 (2012-XX-XX): + +New in release 1.2.1 (2012-07-31): +* Security Updates + - CVE-2012-3422, RH840592: Potential read from an uninitialized memory location + - CVE-2012-3423, RH841345: Incorrect handling of not 0-terminated strings * NetX - PR898: signed applications with big jnlp-file doesn't start (webstart affect like "frozen") - PR811: javaws is not handling urls with spaces (and other characters needing encoding) correctly diff -r 087d8407b2e1 -r f6d6d529d73c configure.ac --- a/configure.ac Tue Jul 24 10:24:57 2012 -0400 +++ b/configure.ac Tue Jul 24 14:02:12 2012 -0400 @@ -1,4 +1,4 @@ -AC_INIT([icedtea-web],[1.2.1pre],[distro-pkg-dev at openjdk.java.net], [icedtea-web], [http://icedtea.classpath.org/wiki/IcedTea-Web]) +AC_INIT([icedtea-web],[1.2.2pre],[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 087d8407b2e1 -r f6d6d529d73c plugin/icedteanp/IcedTeaNPPlugin.cc --- a/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 24 10:24:57 2012 -0400 +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 24 14:02:12 2012 -0400 @@ -925,6 +925,11 @@ NPError get_cookie_info(const char* siteAddr, char** cookieString, uint32_t* len) { + // Only attempt to perform this operation if there is a valid plugin instance + if (g_hash_table_size(instance_to_id_map) <= 0) + { + return NPERR_GENERIC_ERROR; + } #if MOZILLA_VERSION_COLLAPSED < 1090100 nsresult rv; nsCOMPtr sec_man = @@ -1340,6 +1345,11 @@ NPError get_proxy_info(const char* siteAddr, char** proxy, uint32_t* len) { + // Only attempt to perform this operation if there is a valid plugin instance + if (g_hash_table_size(instance_to_id_map) <= 0) + { + return NPERR_GENERIC_ERROR; + } #if MOZILLA_VERSION_COLLAPSED < 1090100 nsresult rv; From bugzilla-daemon at icedtea.classpath.org Tue Jul 31 11:28:28 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 31 Jul 2012 18:28:28 +0000 Subject: [Bug 1101] New: openjdk/hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp has undefinde symbols Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1101 Priority: P3 Bug ID: 1101 Assignee: unassigned at icedtea.classpath.org Summary: openjdk/hotspot/src/os_cpu/linux_sparc/vm/os_linux_spa rc.cpp has undefinde symbols Severity: blocker Classification: Unclassified OS: Linux Reporter: chghs at web.de Hardware: sparc64 Status: NEW Version: 6-1.11.3 Component: IcedTea Product: IcedTea The good news: compiling icedtea6-1.11.3 on gentoo-linux/sparc finds only one problem. The bad news: undefined symbols in openjdk/hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp function print_register_info. I have guessed the following patch and compiled and built icedtea6-1.11.3 successfully with it. Please check. --- openjdk/hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.bak.cpp 2012-07-28 14:09:21.546887126 +0200 +++ openjdk/hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp 2012-07-28 14:12:29.398937898 +0200 @@ -309,29 +309,30 @@ if (context == NULL) return; ucontext_t *uc = (ucontext_t*)context; + sigcontext* sc = (sigcontext*)context; intptr_t *sp = (intptr_t *)os::Linux::ucontext_get_sp(uc); st->print_cr("Register to memory mapping:"); st->cr(); // this is only for the "general purpose" registers - st->print("G1="); print_location(st, SIG_REGS(sc).u_regs[CON__G1]); - st->print("G2="); print_location(st, SIG_REGS(sc).u_regs[CON__G2]); - st->print("G3="); print_location(st, SIG_REGS(sc).u_regs[CON__G3]); - st->print("G4="); print_location(st, SIG_REGS(sc).u_regs[CON__G4]); - st->print("G5="); print_location(st, SIG_REGS(sc).u_regs[CON__G5]); - st->print("G6="); print_location(st, SIG_REGS(sc).u_regs[CON__G6]); - st->print("G7="); print_location(st, SIG_REGS(sc).u_regs[CON__G7]); + st->print("G1="); print_location(st, SIG_REGS(sc).u_regs[CON_G1]); + st->print("G2="); print_location(st, SIG_REGS(sc).u_regs[CON_G2]); + st->print("G3="); print_location(st, SIG_REGS(sc).u_regs[CON_G3]); + st->print("G4="); print_location(st, SIG_REGS(sc).u_regs[CON_G4]); + st->print("G5="); print_location(st, SIG_REGS(sc).u_regs[CON_G5]); + st->print("G6="); print_location(st, SIG_REGS(sc).u_regs[CON_G6]); + st->print("G7="); print_location(st, SIG_REGS(sc).u_regs[CON_G7]); st->cr(); - st->print("O0="); print_location(st, SIG_REGS(sc).u_regs[CON__O0]); - st->print("O1="); print_location(st, SIG_REGS(sc).u_regs[CON__O1]); - st->print("O2="); print_location(st, SIG_REGS(sc).u_regs[CON__O2]); - st->print("O3="); print_location(st, SIG_REGS(sc).u_regs[CON__O3]); - st->print("O4="); print_location(st, SIG_REGS(sc).u_regs[CON__O4]); - st->print("O5="); print_location(st, SIG_REGS(sc).u_regs[CON__O5]); - st->print("O6="); print_location(st, SIG_REGS(sc).u_regs[CON__O6]); - st->print("O7="); print_location(st, SIG_REGS(sc).u_regs[CON__O7]); + st->print("O0="); print_location(st, SIG_REGS(sc).u_regs[CON_O0]); + st->print("O1="); print_location(st, SIG_REGS(sc).u_regs[CON_O1]); + st->print("O2="); print_location(st, SIG_REGS(sc).u_regs[CON_O2]); + st->print("O3="); print_location(st, SIG_REGS(sc).u_regs[CON_O3]); + st->print("O4="); print_location(st, SIG_REGS(sc).u_regs[CON_O4]); + st->print("O5="); print_location(st, SIG_REGS(sc).u_regs[CON_O5]); + st->print("O6="); print_location(st, SIG_REGS(sc).u_regs[CON_O6]); + st->print("O7="); print_location(st, SIG_REGS(sc).u_regs[CON_O7]); st->cr(); st->print("L0="); print_location(st, sp[L0->sp_offset_in_saved_window()]); -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120731/f0a619cc/attachment.html From dbhole at redhat.com Tue Jul 31 11:31:54 2012 From: dbhole at redhat.com (Deepak Bhole) Date: Tue, 31 Jul 2012 14:31:54 -0400 Subject: [Security]: IcedTea-Web 1.1.6 and 1.2.1 released! Message-ID: <20120731183153.GL7628@redhat.com> Hi Everyone, IcedTea-Web 1.1.6 and 1.2.1 have now been released. In addition to bug fixes, they include 2 security fixes and it is therefore recommended that everyone upgrade to this release. The security issues fixed are: RH840592, CVE-2012-3422: Use of uninitialized instance pointers RH841345, CVE-2012-3423: Incorrect handling of non 0-terminated strings Other fixes are listed in the NEWS files: 1.1.6 - http://icedtea.classpath.org/hg/release/icedtea-web-1.1/file/5116ebb94452/NEWS 1.2.1 - http://icedtea.classpath.org/hg/release/icedtea-web-1.2/file/afba9cb10cce/NEWS The following people helped with this release: Danesh Dadachanji Adam Domurad Jiri Vanek Saad Mohammad Checksums: 2e330475fdcd1a83b3f411a1aa475d8d45c585842444d20bb9160bed689dc1f1 icedtea-web-1.1.6.tar.gz 134efcd429086a643ba03ec6e4da991527c3e5dfcd6ed6680a83824ad3f0cfd6 icedtea-web-1.2.1.tar.gz Download links: http://icedtea.classpath.org/download/source/icedtea-web-1.1.6.tar.gz http://icedtea.classpath.org/download/source/icedtea-web-1.2.1.tar.gz After extracting, it can be built as per instructions here: http://icedtea.classpath.org/wiki/IcedTea-Web#Building_IcedTea-Web From dbhole at icedtea.classpath.org Tue Jul 31 12:16:35 2012 From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org) Date: Tue, 31 Jul 2012 19:16:35 +0000 Subject: /hg/release/icedtea-web-1.3: CVE-2012-3422, RH840592: Potential ... Message-ID: changeset 3b9b763bf1fc in /hg/release/icedtea-web-1.3 details: http://icedtea.classpath.org/hg/release/icedtea-web-1.3?cmd=changeset;node=3b9b763bf1fc author: Deepak Bhole date: Tue Jul 24 11:44:50 2012 -0400 CVE-2012-3422, RH840592: Potential read from an uninitialized memory location Updated NEWS file with entry for CVE-2012-3423 diffstat: ChangeLog | 10 ++++++++++ NEWS | 3 +++ plugin/icedteanp/IcedTeaNPPlugin.cc | 10 ++++++++++ 3 files changed, 23 insertions(+), 0 deletions(-) diffs (60 lines): diff -r 55911b39b5c0 -r 3b9b763bf1fc ChangeLog --- a/ChangeLog Tue Jul 31 14:38:12 2012 +0200 +++ b/ChangeLog Tue Jul 24 11:44:50 2012 -0400 @@ -9,6 +9,16 @@ 2012-07-24 Adam Domurad + CVE-2012-3422, RH840592: Potential read from an uninitialized + memory location. + * plugin/icedteanp/IcedTeaNPPlugin.cc + (get_cookie_info): Only attempt to perform this operation if there is a + valid plugin instance + (get_proxy_info): Only attempt to perform this operation if there is a + valid plugin instance + +2012-07-24 Adam Domurad + * plugin/icedteanp/IcedTeaPluginUtils.cc (IcedTeaPluginUtilities::strSplit): Replace usage of " " with proper delimiter diff -r 55911b39b5c0 -r 3b9b763bf1fc NEWS --- a/NEWS Tue Jul 31 14:38:12 2012 +0200 +++ b/NEWS Tue Jul 24 11:44:50 2012 -0400 @@ -9,6 +9,9 @@ CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY New in release 1.3 (2012-XX-XX): +* Security updates + - CVE-2012-3422, RH840592: Potential read from an uninitialized memory location + - CVE-2012-3423, RH841345: Incorrect handling of not 0-terminated strings * NetX - PR898: signed applications with big jnlp-file doesn't start (webstart affect like "frozen") - PR811: javaws is not handling urls with spaces (and other characters needing encoding) correctly diff -r 55911b39b5c0 -r 3b9b763bf1fc plugin/icedteanp/IcedTeaNPPlugin.cc --- a/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 31 14:38:12 2012 +0200 +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 24 11:44:50 2012 -0400 @@ -925,6 +925,11 @@ NPError get_cookie_info(const char* siteAddr, char** cookieString, uint32_t* len) { + // Only attempt to perform this operation if there is a valid plugin instance + if (g_hash_table_size(instance_to_id_map) <= 0) + { + return NPERR_GENERIC_ERROR; + } #if MOZILLA_VERSION_COLLAPSED < 1090100 nsresult rv; nsCOMPtr sec_man = @@ -1330,6 +1335,11 @@ NPError get_proxy_info(const char* siteAddr, char** proxy, uint32_t* len) { + // Only attempt to perform this operation if there is a valid plugin instance + if (g_hash_table_size(instance_to_id_map) <= 0) + { + return NPERR_GENERIC_ERROR; + } #if MOZILLA_VERSION_COLLAPSED < 1090100 nsresult rv; From dbhole at icedtea.classpath.org Tue Jul 31 12:16:44 2012 From: dbhole at icedtea.classpath.org (dbhole at icedtea.classpath.org) Date: Tue, 31 Jul 2012 19:16:44 +0000 Subject: /hg/icedtea-web: CVE-2012-3422, RH840592: Potential read from an... Message-ID: changeset 504ad6ea95fa in /hg/icedtea-web details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=504ad6ea95fa author: Deepak Bhole date: Tue Jul 24 11:44:50 2012 -0400 CVE-2012-3422, RH840592: Potential read from an uninitialized memory location Updated NEWS file with entry for CVE-2012-3423 diffstat: ChangeLog | 10 ++++++++++ NEWS | 5 +++++ plugin/icedteanp/IcedTeaNPPlugin.cc | 10 ++++++++++ 3 files changed, 25 insertions(+), 0 deletions(-) diffs (59 lines): diff -r 09198dc413b5 -r 504ad6ea95fa ChangeLog --- a/ChangeLog Tue Jul 31 09:55:12 2012 -0400 +++ b/ChangeLog Tue Jul 24 11:44:50 2012 -0400 @@ -1,3 +1,13 @@ +2012-07-24 Adam Domurad + + CVE-2012-3422, RH840592: Potential read from an uninitialized + memory location. + * plugin/icedteanp/IcedTeaNPPlugin.cc + (get_cookie_info): Only attempt to perform this operation if there is a + valid plugin instance + (get_proxy_info): Only attempt to perform this operation if there is a + valid plugin instance + 2012-07-31 Danesh Dadachanji * Makefile.am: Fix call to keytool that is missing its absolute path. diff -r 09198dc413b5 -r 504ad6ea95fa NEWS --- a/NEWS Tue Jul 31 09:55:12 2012 -0400 +++ b/NEWS Tue Jul 24 11:44:50 2012 -0400 @@ -8,6 +8,11 @@ CVE-XXXX-YYYY: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=XXXX-YYYY +New in release 1.4 (2012-XX-XX): +* Security updates + - CVE-2012-3422, RH840592: Potential read from an uninitialized memory location + - CVE-2012-3423, RH841345: Incorrect handling of not 0-terminated strings + New in release 1.3 (2012-XX-XX): * NetX - PR898: signed applications with big jnlp-file doesn't start (webstart affect like "frozen") diff -r 09198dc413b5 -r 504ad6ea95fa plugin/icedteanp/IcedTeaNPPlugin.cc --- a/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 31 09:55:12 2012 -0400 +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 24 11:44:50 2012 -0400 @@ -925,6 +925,11 @@ NPError get_cookie_info(const char* siteAddr, char** cookieString, uint32_t* len) { + // Only attempt to perform this operation if there is a valid plugin instance + if (g_hash_table_size(instance_to_id_map) <= 0) + { + return NPERR_GENERIC_ERROR; + } #if MOZILLA_VERSION_COLLAPSED < 1090100 nsresult rv; nsCOMPtr sec_man = @@ -1330,6 +1335,11 @@ NPError get_proxy_info(const char* siteAddr, char** proxy, uint32_t* len) { + // Only attempt to perform this operation if there is a valid plugin instance + if (g_hash_table_size(instance_to_id_map) <= 0) + { + return NPERR_GENERIC_ERROR; + } #if MOZILLA_VERSION_COLLAPSED < 1090100 nsresult rv; From bugzilla-daemon at icedtea.classpath.org Tue Jul 31 13:36:07 2012 From: bugzilla-daemon at icedtea.classpath.org (bugzilla-daemon at icedtea.classpath.org) Date: Tue, 31 Jul 2012 20:36:07 +0000 Subject: [Bug 955] regression: SweetHome3D fails to run In-Reply-To: References: Message-ID: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=955 --- Comment #6 from Danesh Dadachanji --- (In reply to comment #5) > (In reply to comment #2) > > I just successfully executed > $ javaws -verbose http://www.geogebra.org/webstart/geogebra.jnlp > on Debian unstable 64bit with icedtea-netx 1.2. The regression is in the JNLP where it is finding localized info tags which have missing fields. It shouldn't even begin to download anything. It still isn't fixed, my patch for it is almost complete but it should still be broken. I'm not sure what issue you're seeing, it could be another one. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120731/7d0f6d1a/attachment.html From ddadacha at redhat.com Tue Jul 31 14:42:07 2012 From: ddadacha at redhat.com (Danesh Dadachanji) Date: Tue, 31 Jul 2012 17:42:07 -0400 Subject: [RFC][icedtea-web] Fix a JNLPMatcher unit test being too restrictive on timeout Message-ID: <5018512F.7070200@redhat.com> Hello, The testIsMatchDoesNotHangOnLargeData test in JNLPMatcherTest had a timeout of 1 second. My system kept hitting this as a failure so I extended it to 2s and it worked fine. I think 1s is way too restrictive, for safe measure, I believe it should be bumped to 5s (minimum). The timeout is _not_ used to measure the time of the test to determine the failure, it's merely a safety mechanism to ensure the test won't hang. Okay for HEAD? Regards, Danesh -------------- next part -------------- A non-text attachment was scrubbed... Name: fix-jnlp-matcher-test-01.patch Type: text/x-patch Size: 1041 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120731/7bf922a3/fix-jnlp-matcher-test-01.patch