Many thanks John,

By wading through the offending witango code, and by process of elimination, I discovered the following (apparent) cause of these errors:

When you have a branch section which doesn't require a return to the calling section, but instead it requires to exit that taf after it's execution, then the exiting return statement must NOT be contained within the branch section, but instead underneath it - (outside the branch itself).
That way, the java code should accept the return, as it is a top-level type of return, rather than a branch-level one, which is invalid.


I hope this is of use
regards

Matt

John McGowan wrote:
Matt,

I've run into a couple of j2ee compiler issues.

I can help you out if you send me the oriiginal taf/tcf and the outputted .java files.

I too have had a situation where the compiler choked on code created by the Witango compiler. In my case, the bug causing the problem has been fixed. but In the meantime I was able to rewrite the java code to get rid of the bad code so I could continue to test on j2ee.

Java doesn't allow unreachable code in your java files and that's the error that's getting thrown by the compiler. However, In my own testing, a taf file that has a return or a branch with no return followed by some more code when it gets compiled to Java, doesn't include the actions after the return. Therefore, the generated java code doesn't break the rule.

I am running the latest version of the j2ee stuff sent to me within the last week by Phil.

/John

matt wrote:

Hi

I wonder if someone can help me with this...

my j2ee compilations seem to be spewing out the following type of messages, does anyone know what could be the problem with this? (on a tango perspective)

"<file>.java:<line number>: unreachable statement - if (branch_<statement>(rt, dbagent, interpreter, bf)) return true;"

Can anybody give me some pointers, as to what I could be missing here, or has anyone else experience a similr problem?
The worrying thing here is that the tango parsing process clears the code - but only falls over once the java compiler attempts to compile it.


regards

Matt


________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to