Sha256: 655821189f67793e07f44b2724afad89d8cab2978fc38bc28179b180ad080df4

Contents?: true

Size: 876 Bytes

Versions: 30

Compression:

Stored size: 876 Bytes

Contents

"""This test validates the fix for 511493 (jreload truncates large class files).

We do this by loading a large class file Blob.class from blob.jar (source inside the jar).  If the load failes with ClassFormatError,
the bug is present, if the load succeeds, the bug is fixed, if something else occurs, we don't know.
"""

import unittest
import test_support

from jreload import makeLoadSet
from java.lang import System, ClassFormatError

import os

class JreloadTestCase(unittest.TestCase):

    blobjar = test_support.findfile('blob.jar')

    def test( self ):
        myls = makeLoadSet('myls', [self.blobjar])

        try:
            from myls import Blob
        except ClassFormatError:
            print "Reload Error is present"
            raise
        
def test_main():
    test_support.run_unittest(JreloadTestCase)

if __name__ == "__main__":
    test_main()

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubyfox-server-2.12.1.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.11.1.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.9.2.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.9.1.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.9.0.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.8.4.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.8.0.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.8.0.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.3.0.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.3.0.pre2 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py