471,356 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Overriding a function call with a J# java.lang.Exception parameter in C#

Hi,

I am writing a windows app in C# and referencing a lib built in J# and which
I don't have the code for that requires a method to be overridden that
contains a parameter defined as:

java.lang.Exception

I tried specifying the .net Exception class instead, but then I got an error
message saying that my class did not define the the interface method.

Does anyone have any suggestions as to how to specify a java.lang.Exception
class in C#? Do I need a reference? Tried looking, but could not find
anything.

I'm stuck... Any suggestions welcome.

Bob
Jun 27 '08 #1
1 1354
After using the object browser, I discovered that there is a .net referenece
that provides access to the java.lang.Exception class. Adding a reference
to vjslib solved the problem.

"Bob Bryan" <Ro********************@yahoo.comwrote in message
news:TZ******************@newsfe12.phx...
Hi,

I am writing a windows app in C# and referencing a lib built in J# and
which I don't have the code for that requires a method to be overridden
that contains a parameter defined as:

java.lang.Exception

I tried specifying the .net Exception class instead, but then I got an
error message saying that my class did not define the the interface
method.

Does anyone have any suggestions as to how to specify a
java.lang.Exception class in C#? Do I need a reference? Tried looking,
but could not find anything.

I'm stuck... Any suggestions welcome.

Bob

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ravi Tallury | last post: by
13 posts views Thread by Ash | last post: by
9 posts views Thread by Lenard Lindstrom | last post: by
4 posts views Thread by Jean-Marc Blaise | last post: by
17 posts views Thread by Bob Weiner | last post: by
2 posts views Thread by yeshello54 | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.