harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r618248 - /harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java
Date Mon, 04 Feb 2008 12:09:11 GMT
Author: apetrenko
Date: Mon Feb  4 04:09:10 2008
New Revision: 618248

URL: http://svn.apache.org/viewvc?rev=618248&view=rev
Log:
Patch for HARMONY-5449 "[classlib][applet] Applet methods 
getAudioClip(URL url, String name) and getImage(URL url, String name) 
work incorrectly"

Modified:
    harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java

Modified: harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java?rev=618248&r1=618247&r2=618248&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java (original)
+++ harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java Mon
Feb  4 04:09:10 2008
@@ -169,7 +169,7 @@
     }
 
     public Image getImage(URL url) {
-        return Toolkit.getDefaultToolkit().getImage(url);
+        return getAppletContext().getImage(url);
     }
 
     public Image getImage(URL url, String name) {
@@ -230,7 +230,7 @@
 
     private static URL appendURL(URL url, String name) {
         try {
-            return new URL(url.toString() + name);
+            return new URL(url, name);
         } catch (MalformedURLException e) {
             return null;
         }



Mime
View raw message