harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r597104 - in /harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java: com/sun/image/ com/sun/image/codec/ com/sun/image/codec/jpeg/ sun/security/ sun/security/action/
Date Wed, 21 Nov 2007 14:37:22 GMT
Author: ayza
Date: Wed Nov 21 06:37:19 2007
New Revision: 597104

URL: http://svn.apache.org/viewvc?rev=597104&view=rev
Log:
Adding stubs for two RI internal classes to let Atlassian JIRA start without exceptions on
Harmony. See HARMONY-4977.

Added:
    harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/
    harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/codec/
    harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/codec/jpeg/
    harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/codec/jpeg/ImageFormatException.java
  (with props)
    harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/sun/security/
    harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/sun/security/action/
    harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/sun/security/action/GetPropertyAction.java
  (with props)

Added: harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/codec/jpeg/ImageFormatException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/codec/jpeg/ImageFormatException.java?rev=597104&view=auto
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/codec/jpeg/ImageFormatException.java
(added)
+++ harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/codec/jpeg/ImageFormatException.java
Wed Nov 21 06:37:19 2007
@@ -0,0 +1,25 @@
+/*
+ *  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 com.sun.image.codec.jpeg;
+
+public class ImageFormatException extends RuntimeException {
+    public ImageFormatException() {}
+
+    public ImageFormatException(String s) {
+        super(s);
+    }
+}

Propchange: harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/image/codec/jpeg/ImageFormatException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/sun/security/action/GetPropertyAction.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/sun/security/action/GetPropertyAction.java?rev=597104&view=auto
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/sun/security/action/GetPropertyAction.java
(added)
+++ harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/sun/security/action/GetPropertyAction.java
Wed Nov 21 06:37:19 2007
@@ -0,0 +1,38 @@
+/*
+ *  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 sun.security.action;
+
+import java.security.PrivilegedAction;
+
+public class GetPropertyAction implements PrivilegedAction {
+    String propName;
+    String defValue;
+
+    public GetPropertyAction(String s) {
+        propName = s;
+    }
+
+    public GetPropertyAction(String s, String s1) {
+        propName = s;
+        defValue = s1;
+    }
+
+    public Object run() {
+        return System.getProperty(propName, defValue);
+    }
+
+}

Propchange: harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/sun/security/action/GetPropertyAction.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message