harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Luht (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1177) try/catch/return works incorrectly in some cases
Date Mon, 14 Aug 2006 14:54:14 GMT
try/catch/return works incorrectly in some cases
------------------------------------------------

                 Key: HARMONY-1177
                 URL: http://issues.apache.org/jira/browse/HARMONY-1177
             Project: Harmony
          Issue Type: Bug
          Components: App-Oriented Bug Reports, DRLVM
         Environment: Windows XP professional 
            Reporter: Anton Luht


This bug was found during investigation of activemq application failure on DRLVM + Harmony
classlib

The following code:

import java.io.*; 
import java.net.*;

public class Test { 
  public static void main(String[] args) throws Throwable { 
      System.out.println(new Test().getString("abc").getClass());
  } 
 
  public String getString(String arg) {
	try {
            URL url = new URL(arg);
	    return "Y";
	} catch (MalformedURLException ex) {
     	    return "Z";
        }
   }
} 


prints on RI

class java.lang.String

and on Harmony:

java version "1.5.0"
pre-alpha : not complete or compatible
svn = r430763, (Aug 11 2006), Windows/ia32/msvc 1310, debug build
http://incubator.apache.org/harmony
class java.net.MalformedURLException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message