Skip to main content

-Xlint:override,divzero

1 reply [Last post]
skelvin
Offline
Joined: 2003-06-11
Points: 0

I noticed these new warning options, seems that they are not implemented yet (build 38)?

Am I right that "override" should warn if an @Override annotation is missing?

When exactly should "divzero" warning show?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
forax
Offline
Joined: 2004-10-07
Points: 0

divzero is raised if you try to divide a constant by zero

a=12/0;

see bugs 4759494
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4759494

Rémi