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.
Summary: | ErrorManager's treatment of notify doesn't honor isLoggable | ||
---|---|---|---|
Product: | platform | Reporter: | Rochelle Raccah <raccah> |
Component: | -- Other -- | Assignee: | Jesse Glick <jglick> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 28990 | ||
Bug Blocks: | 28240 |
Description
Rochelle Raccah
2002-05-25 01:20:14 UTC
-> jglick Target milestone was changed from '3.4' to TBD. Target milestone was changed from '3.4' to TBD. Target milestone was changed from '3.4' to TBD. Target milestone was changed from '3.4' to TBD. Fixed, more or less. Now exceptions are notified if applicable, but their effective level is considered one more than those of messages. Note: this means +1, not "the next documented level"; numeric values of ErrorManager levels are (for some godawful reason) 0, 1, 16, 256, ... So e.g. to suppress warning messages, use a level of 17, but to suppress warning stack traces too, use 18. Making the level identical for messages and exceptions would be more logical, and if we could do everything over from the start I would do it this way, but at this point it is not feasible. Dozens of classes notify exceptions at INFORMATIONAL when they mean "something maybe wrong, print a stack trace to assist in debugging, maybe alert active developers" and log messages at INFORMATIONAL to mean "debugging code, turn on to see how everything works". These usages are not compatible with one another. Trying to force exception and log levels to match would have required dozens of patches to the NB source base and been a de-facto incompatibility for other modules. So the workaround seems easiest. Added isNotifiable(int) to be able to check the result. committed * Up-To-Date 1.45 core/src/org/netbeans/core/NbErrorManager.java committed * Up-To-Date 1.81 openide/openide-spec-vers.properties committed * Up-To-Date 1.108 openide/api/doc/changes/apichanges.xml committed * Up-To-Date 1.20 openide/src/org/openide/ErrorManager.java Works now. |