Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fitsharp and Java Slim table processing discrepancy #6

Closed
RichardHJensen opened this issue Jul 30, 2009 · 1 comment
Closed

fitsharp and Java Slim table processing discrepancy #6

RichardHJensen opened this issue Jul 30, 2009 · 1 comment

Comments

@RichardHJensen
Copy link

I'm thinking there is something being interpreted as a Slim table (my ChildrenNames cell) in fitsharp--but it isn't treated that way in the Java slim. The test passes in Java but I
get an exception with fitsharp. My guess is it is expecting a length and getting the first name in my list.

===================== My test page (Java) ================

!|import|

|com.rhjensen.queryList|

!|Query: SimpleQueryList |

| Name | SpouseName | ChildrenNames |

| Eric | Karin | [Amanda, Erin, Grace] |

===================== My test page (fitsharp) ================

!|import|

| SlimBasics |

!|Query: SimpleQueryList |

| Name | SpouseName | ChildrenNames |

| Eric | Karin | [Amanda, Erin, Grace] |

====================== Java class =====================

public class SimpleQueryList {
public List query()
{
return
list(
list(
list("Name", "Eric"),
list("SpouseName", "Karin"),
list("ChildrenNames", "[Amanda, Erin, Grace]")
)
);
}
}

======================== C# class =====================

namespace SlimBasics
{
public class SimpleQueryList
{
public List Query()
{
List result = new List();

        List<object> ericList = new List<object>();
        List<object> ericName = new List<object>();
        ericName.Add("Name");
        ericName.Add("Eric");

        List<object> ericSpouse = new List<object>();
        ericSpouse.Add("SpouseName");
        ericSpouse.Add("Karin");

        List<object> ericChildren = new List<object>();
        ericChildren.Add("ChildrenNames");
        ericChildren.Add("[Amanda, Erin, Grace]");

        ericList.Add(ericName);
        ericList.Add(ericSpouse);
        ericList.Add(ericChildren);

       result.Add(ericList);

        return result;
    }
}

======================== fitsharp Exception =====================

EXCEPTION:System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at fitSharp.Slim.Service.Document.ReadList(String input)
at fitSharp.Slim.Service.Document.Read(String input)
at fitSharp.Slim.Service.Document.ReadList(String input)
at fitSharp.Slim.Service.Document.Read(String input)
at fitSharp.Slim.Service.Document.ReadList(String input)
at fitSharp.Slim.Service.Document.Read(String input)
at fitSharp.Slim.Service.Document.ReadList(String input)
at fitSharp.Slim.Service.Document.Read(String input)
at fitSharp.Slim.Service.Document.ReadList(String input)
at fitSharp.Slim.Service.Document.Read(String input)
at fitSharp.Slim.Service.Runner.ExecuteInstruction(String instruction)
at fitSharp.Slim.Service.Runner.Execute(String instruction)

@jediwhale
Copy link
Owner

release 1.3

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants