From 549d1f59d0719d504a22219a3ded7979dd28853a Mon Sep 17 00:00:00 2001 From: Kevin Glynn Date: Fri, 14 Jan 2011 14:38:45 +0100 Subject: [PATCH] No Imports for Unknown types --- .../antlr3/src/cs2j/CLR/TranslationTemplate.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CSharpTranslator/antlr3/src/cs2j/CLR/TranslationTemplate.cs b/CSharpTranslator/antlr3/src/cs2j/CLR/TranslationTemplate.cs index 02c2168..8ccfdfe 100644 --- a/CSharpTranslator/antlr3/src/cs2j/CLR/TranslationTemplate.cs +++ b/CSharpTranslator/antlr3/src/cs2j/CLR/TranslationTemplate.cs @@ -159,7 +159,7 @@ namespace RusticiSoftware.Translator.CLR // Java imports required to make Java translation run private string[] _imports = null; [XmlArrayItem("Import")] - public string[] Imports { + public virtual string[] Imports { get { // if _java is not set then see if we have default imports, otherwise // assume imports is already correctly (un)set @@ -1773,6 +1773,11 @@ namespace RusticiSoftware.Translator.CLR { } + public override string[] Imports { + get { + return new string[0]; + } + } public override TypeRep mkEmptyRep () {