Class loader confused during deserialization when compilation is disabled
-------------------------------------------------------------------------

                 Key: JRUBY-4235
                 URL: http://jira.codehaus.org/browse/JRUBY-4235
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.4, JRuby 1.2
         Environment: $ uname -a
Linux zeno 2.6.26-2-amd64 #1 SMP Mon Oct 19 02:34:17 UTC 2009 x86_64 GNU/Linux
$ cat /etc/debian_version 
squeeze/sid

            Reporter: Marshall T. Vandegrift
            Assignee: Thomas E Enebo


Class loading becomes confused under some circumstances during interpreted 
execution.  I can replicate it under a Test::Unit but there may be a more 
minimal test case available.  The same behavior appears under JRuby 1.2.0 and 
1.4.0.  The attached test produces the following output:

$ jruby -X+C test.rb 
Loaded suite test
Started
.
Finished in 0.018 seconds.

1 tests, 0 assertions, 0 failures, 0 errors
$ jruby -X-C test.rb 
Loaded suite test
Started
E
Finished in 0.007 seconds.

  1) Error:
test_load_the_objects(DeserializeTest):
NativeException: java.lang.ClassNotFoundException: Empty
    java/lang/Class.java:-2:in `forName0'
    java/lang/Class.java:264:in `forName'
    java/io/ObjectInputStream.java:621:in `resolveClass'
    java/io/ObjectInputStream.java:1592:in `readNonProxyDesc'
    java/io/ObjectInputStream.java:1513:in `readClassDesc'
    java/io/ObjectInputStream.java:1749:in `readOrdinaryObject'
    java/io/ObjectInputStream.java:1346:in `readObject0'
    java/io/ObjectInputStream.java:368:in `readObject'
    test.rb:12:in `load_the_objects'
    test.rb:19:in `test_load_the_objects'

1 tests, 0 assertions, 0 failures, 1 errors


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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to