This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 10287 - ErrorManager: using priority as first arg to method is weird
Summary: ErrorManager: using priority as first arg to method is weird
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-14 11:06 UTC by Jesse Glick
Modified: 2008-12-22 18:42 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-03-14 11:06:15 UTC
It is pretty unnatural-seeming to write ErrorManager.log(pri,message), when
conceptually the message is the main thing, and the integer priority level is a
secondary thing. Even knowing about it, I often write it backwards at first and
need a compile error to remind me about the order.

Suggest that notify(int,Throwable) and log(int,String) be deprecated in favor of
notify(Throwable,int) and log(String,int).
Comment 1 Jaroslav Tulach 2001-03-21 13:17:56 UTC
Too late. You should comment that at the beginig. I do not think that
deprecating method just to exchange parameters is programming style we should
use.
Comment 2 Quality Engineering 2003-07-01 15:51:36 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 3 Quality Engineering 2003-07-01 16:11:01 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.