Skip to content
Snippets Groups Projects
Commit 36753c06 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

default to type == sample

parent 8f7951aa
No related branches found
No related tags found
No related merge requests found
......@@ -367,9 +367,15 @@ public class TestLabcommGen {
*/
private static void encodeTest(InRAMCompiler irc, String tmpFile) {
try {
Class ft = irc.load(TYPE_NAME_FOO);
Class ft;
Class fc = irc.load(SAMPLE_NAME_FOO);
Class bc = irc.load(SAMPLE_NAME_BAR);
try {
ft = irc.load(TYPE_NAME_FOO);
} catch (ClassNotFoundException e) {
System.out.println("encodeTest: defaulting to ft == fc");
ft = fc;
}
/* create sample class and instance objects */
Object f = ft.newInstance();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment