[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug crypto/28678] Misleading error message from gnu.java.security.Engin
From: |
csm at gnu dot org |
Subject: |
[Bug crypto/28678] Misleading error message from gnu.java.security.Engine |
Date: |
10 Aug 2006 21:47:38 -0000 |
------- Comment #7 from csm at gnu dot org 2006-08-10 21:47 -------
We absolutely should say which class was not found if you use a `getInstance'
method with an explicit provider or provider name.
For the `getInstance' method that searches all providers, it would be nice to
provide a detailed error message that listed the providers tried, and the
outcome (e.g., "Provider1": algorithm "FOO" not supported; "Provider2": class
"com.xxx.Foo" not found for algorithm "FOO"). That wouldn't be easy in the
current implementation, unfortunately, since it would require changing classes
that use Engine, of which there are a lot.
A generic way to do that would be, for example:
String msg = algorithm + ": ";
for each provider
try
return getInstance(algorithm, provider);
catch NoSuchAlgorithmException nsae
msg += provider.getName() + ": " + nsae.getMessage();
throw new NoSuchAlgorithmException(msg);
...and in Engine, we give a detailed reason why the lookup failed.
--
csm at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2006-08-10 18:20:20 |2006-08-10 21:47:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28678
- [Bug classpath/28678] New: Misleading error message from gnu.java.security.Engine, edwin dot steiner at gmx dot net, 2006/08/10
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, mark at gcc dot gnu dot org, 2006/08/10
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, mark at gcc dot gnu dot org, 2006/08/10
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, raif at swiftdsl dot com dot au, 2006/08/10
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, raif at swiftdsl dot com dot au, 2006/08/10
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, edwin dot steiner at gmx dot net, 2006/08/10
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, raif at swiftdsl dot com dot au, 2006/08/10
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine,
csm at gnu dot org <=
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, csm at gnu dot org, 2006/08/10
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, raif at swiftdsl dot com dot au, 2006/08/12
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, cvs-commit at developer dot classpath dot org, 2006/08/12
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, raif at swiftdsl dot com dot au, 2006/08/14
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, edwin dot steiner at gmx dot net, 2006/08/14
- [Bug crypto/28678] Misleading error message from gnu.java.security.Engine, raif at swiftdsl dot com dot au, 2006/08/14