public class MoMLParserLeak extends java.lang.Object
Under Java 1.4, run this with:
java -Xrunhprof:depth=15 -classpath "$PTII;." ptolemy.moml.test.MoMLParserLeakand then look in java.hprof.txt.
Modifier and Type | Field and Description |
---|---|
static MoMLParser |
parser
Note that the parser is what actually leaks here.
|
Constructor and Description |
---|
MoMLParserLeak() |
Modifier and Type | Method and Description |
---|---|
static CompositeEntity |
leak()
Attempt to leak code by parsing MoML that looks for a class
that does not exist.
|
static void |
main(java.lang.String[] args)
Attempt to leak code by parsing MoML that looks for a class
that does not exist.
|
public static MoMLParser parser
public MoMLParserLeak()
public static CompositeEntity leak() throws java.lang.Exception
java.lang.Exception
- If the class does not exist.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Ignored.java.lang.Exception
- if there is a problem parsing