[Fb-contrib-commit] SF.net SVN: fb-contrib:[1509] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-24 16:49:05
|
Revision: 1509
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1509&view=rev
Author: dbrosius
Date: 2010-01-24 16:48:56 +0000 (Sun, 24 Jan 2010)
Log Message:
-----------
report cnfe's
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java 2010-01-24 00:34:52 UTC (rev 1508)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java 2010-01-24 16:48:56 UTC (rev 1509)
@@ -51,26 +51,31 @@
private static JavaClass componentClass;
private static JavaClass jcomponentClass;
private static JavaClass accessibleClass;
+ private static ClassNotFoundException clsNFException;
static {
try {
windowClass = Repository.lookupClass("java/awt/Window");
} catch (ClassNotFoundException cnfe) {
windowClass = null;
+ clsNFException = cnfe;
}
try {
componentClass = Repository.lookupClass("javax/awt/Component");
} catch (ClassNotFoundException cnfe) {
componentClass = null;
+ clsNFException = cnfe;
}
try {
jcomponentClass = Repository.lookupClass("javax/swing/JComponent");
} catch (ClassNotFoundException cnfe) {
jcomponentClass = null;
+ clsNFException = cnfe;
}
try {
accessibleClass = Repository.lookupClass("javax.accessibility.Accessible");
} catch (ClassNotFoundException cnfe) {
accessibleClass = null;
+ clsNFException = cnfe;
}
}
private final BugReporter bugReporter;
@@ -84,6 +89,8 @@
*/
public Section508Compliance(BugReporter bugReporter) {
this.bugReporter = bugReporter;
+ if (clsNFException != null)
+ bugReporter.reportMissingClass(clsNFException);
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|