You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Anton Luht (JIRA)" <ji...@apache.org> on 2006/08/14 16:54:14 UTC

[jira] Created: (HARMONY-1177) try/catch/return works incorrectly in some cases

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

        

[jira] Commented: (HARMONY-1177) try/catch/return works incorrectly in some cases

Posted by "Anton Luht (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1177?page=comments#action_12427915 ] 
            
Anton Luht commented on HARMONY-1177:
-------------------------------------

Please close the issue: the bug is not reproduced on the latest build:

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




> 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: DRLVM, App-Oriented Bug Reports
>         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

        

[jira] Closed: (HARMONY-1177) try/catch/return works incorrectly in some cases

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1177?page=all ]

Geir Magnusson Jr closed HARMONY-1177.
--------------------------------------

    Resolution: Invalid

Closing by request of Anton.  It was a mistake.

> 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: DRLVM, App-Oriented Bug Reports
>         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