Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How can i automatically find all unhandled exceptions in my java code?

Thread Tools

How can i automatically find all unhandled exceptions in my java code?
Posts: n/a
On Mar 14, 8:40 am, Eric Sosman <(E-Mail Removed)> wrote:
> upsa wrote:
> > see subj,
> > Thanks.

> See sig.
> --
> Eric Sosman
> (E-Mail Removed)
> Read the error messages from javac.

I wasn't able to understand automatically.

Next time I suggest you shall write some content in main message even
if it is same as the title.

Reply With Quote
Posts: n/a
Alex Hunsley wrote:
>>> They are chastising/needling the OP in a round-about way for not
>>> putting the question where it is most important to have it: the
>>> message body.

Ingo R. Homann wrote:
>> Having said this: If they have the oppinion that the OP should put the
>> question in the message body, they should say that - especially when
>> he asks for explaining what they meant. I don't think that the OP can
>> read their minds. He will only think "What ... nerds!"

Alex Hunsley wrote:
> It would be more helpful to have done that, yes.

But far less clever.

And needling does not violate netiquette.

And when the OP rises to the level where they appreciate the needling, then
they will have transformed more than if they were given the easy way.

-- Lew
Reply With Quote
Oliver Wong
Posts: n/a
"Stefan Ram" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)
> Eric Sosman <(E-Mail Removed)> writes:
>>>see subj,

>>See sig.

> See »X-Readme« header.

(I wonder if this reply post will replicate your X-Readme header or not --
I suspect not)

Right, as Stefan says, Eric's solution of reading the javac error
messages would only apply to checked exceptions. To handled unchecked
exceptions, you might be able to do a bit of static analysis on the source
code, but I suspect that in general the problem is insoluble. For example,
what if you write a ClassLoader which generates random (but legal)
bytecode? It may generate code which throws a runtime exception without
declaring so in the method header, and you'd have a tough time "finding"
this unhandled exception (how would you define "find" in this case?) via
static analysis.

- Oliver

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
an unhandled win32 exception was unhandled occurred in inetinfo.exe Warren Tang ASP .Net 1 09-23-2008 03:01 PM
How do I catch unhandled exceptions Alan Silver ASP .Net 5 03-23-2006 08:51 PM
Unhandled Exceptions - ASP.Net ASP .Net 1 03-07-2006 10:41 PM
Unhandled Exceptions & Framesets terry ASP .Net 5 07-03-2003 04:20 PM