harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Timoshenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1857) [drlvm][jit] VM does not throw NoClassDefFoundError if class declares method as "throws exception" and there is no this exception class implementation (Jitrino OPT)
Date Tue, 21 Nov 2006 08:22:06 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1857?page=comments#action_12451574 ] 
            
George Timoshenko commented on HARMONY-1857:
--------------------------------------------

I am sorry for not replying so long.

Geir, it it possible that you just forgot to remove MyThrowable.class as it is required for
reproducing?

The bug should not depend on OS or platform (it is in frontend).
Here is the output I see (with the revision svn = r475137, (Nov 21 2006), Linux/ia32/gcc 3.3.3,
debug build):

[14:17:03 HARMONY-1857]$ $SVN_d -Xem:opt test
vf_debug: verifying class TestClass (method tryMe()V) couldn't load class "MyThrowable"
vf_debug: VerifyError: MyThrowable
PASSED


> [drlvm][jit] VM does not throw NoClassDefFoundError if class declares method as "throws
 exception" and there is no this exception class implementation (Jitrino OPT)
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1857
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1857
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Attachments: test.java
>
>
> If some class declares method as "throws  exception" and there is no implementation of
this exception class then VM does not throw NoClassDefFoundError correctly  when it tries
to create the instance of this class.
> This bug is reproducible with opt and server_static modes only.
> This bug is not reproducible with interpreter, jet, client and server.
> The following test example demonstrates the bug:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             new TestClass();
>             System.out.println("FAILED");
>         } catch (NoClassDefFoundError e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> class MyThrowable extends Throwable {}
> class TestClass {
>     public void run() throws MyThrowable {}
>     public void tryMe() {
>         try {
>             run();
>         } catch (MyThrowable e) {}
>     }
> }
> -------------------------------
> Please, do the following steps to reproduce the failure:
> 1. Compile test.java source using JDK1.5.0 javac
> 2. Remove MyThrowable.class file from the working directory
> 3. Run the test with "-Xem:opt" switch ("java -Xem:opt test")
> Sample output is:
> ...
> FAILED
> ...

-- 
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