harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r465450 - in /incubator/harmony/enhanced/classlib/trunk/modules/awt/src: main/java/common/java/awt/JobAttributes.java test/api/java/common/org/apache/harmony/awt/tests/java/awt/JobAttributesTest.java
Date Thu, 19 Oct 2006 02:31:17 GMT
Author: ndbeyer
Date: Wed Oct 18 19:31:16 2006
New Revision: 465450

URL: http://svn.apache.org/viewvc?view=rev&rev=465450
Log:
Apply patch for HARMONY-1913: [classlib][awt] JobAttributes() throws IAE

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/org/apache/harmony/awt/tests/java/awt/JobAttributesTest.java
  (with props)
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/JobAttributes.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/JobAttributes.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/JobAttributes.java?view=diff&rev=465450&r1=465449&r2=465450
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/JobAttributes.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/JobAttributes.java
Wed Oct 18 19:31:16 2006
@@ -123,8 +123,8 @@
         setMultipleDocumentHandlingToDefault();
         setSidesToDefault();
         setCopiesToDefault();
-        setMinPage(1);
         setMaxPage(0x7fffffff);
+        setMinPage(1);
     }
 
     public JobAttributes(JobAttributes obj){

Added: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/org/apache/harmony/awt/tests/java/awt/JobAttributesTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/org/apache/harmony/awt/tests/java/awt/JobAttributesTest.java?view=auto&rev=465450
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/org/apache/harmony/awt/tests/java/awt/JobAttributesTest.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/org/apache/harmony/awt/tests/java/awt/JobAttributesTest.java
Wed Oct 18 19:31:16 2006
@@ -0,0 +1,29 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package org.apache.harmony.awt.tests.java.awt;
+
+import java.awt.JobAttributes;
+import junit.framework.TestCase;
+
+public class JobAttributesTest extends TestCase {
+    public void testConstructor() {
+        // Regression test HARMONY-1913
+        JobAttributes attr = new JobAttributes();
+        assertNull(attr.getFileName());
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/org/apache/harmony/awt/tests/java/awt/JobAttributesTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message