|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.test.TestBase
org.h2.test.unit.TestClassLoaderLeak
public class TestClassLoaderLeak
Test that static references within the database engine don't reference the class itself. For example, there is a leak if a class contains a static reference to a stack trace. This was the case using the following declaration: static EOFException EOF = new EOFException(). The way to solve the problem is to not use such references, or to not fill in the stack trace (which indirectly references the class loader).
| Field Summary |
|---|
| Fields inherited from class org.h2.test.TestBase |
|---|
BASE_TEST_DIR, config, start, TEMP_DIR, uniqueId |
| Constructor Summary | |
|---|---|
TestClassLoaderLeak()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String... a)
Run just this test. |
void |
test()
This method will be called by the test framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestClassLoaderLeak()
| Method Detail |
|---|
public static void main(java.lang.String... a)
throws java.lang.Exception
a - ignored
java.lang.Exception
public void test()
throws java.lang.Exception
TestBase
test in class TestBasejava.lang.Exception - if an exception in the test occurs
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||