[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Norman Richards
norman.richards at jboss.com
Wed Aug 29 17:23:32 EDT 2007
User: nrichards
Date: 07/08/29 17:23:32
Modified: src/main/org/jboss/seam Component.java
Log:
fix errors when components are in default package
Revision Changes Path
1.283 +3 -1 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.282
retrieving revision 1.283
diff -u -b -r1.282 -r1.283
--- Component.java 28 Aug 2007 10:50:08 -0000 1.282
+++ Component.java 29 Aug 2007 21:23:32 -0000 1.283
@@ -371,7 +371,9 @@
{
addImport( init, getBeanClass().getAnnotation(Import.class) );
}
- if ( getBeanClass().getPackage().isAnnotationPresent(Import.class) )
+
+ Package pkg = getBeanClass().getPackage();
+ if ( pkg!=null && pkg.isAnnotationPresent(Import.class) )
{
addImport( init, getBeanClass().getPackage().getAnnotation(Import.class) );
}
More information about the jboss-cvs-commits
mailing list