[seam-issues] [JBoss JIRA] (SOLDER-332) Solder cannot deploy Class in empty package (default)

Marco Battaglia (JIRA) jira-events at lists.jboss.org
Mon Jun 11 05:11:04 EDT 2012


Marco Battaglia created SOLDER-332:
--------------------------------------

             Summary: Solder cannot deploy Class in empty package (default)
                 Key: SOLDER-332
                 URL: https://issues.jboss.org/browse/SOLDER-332
             Project: Solder
          Issue Type: Bug
          Components: Core
    Affects Versions: 3.0.0.Final
            Reporter: Marco Battaglia
            Priority: Minor


If a class is in default package (i.e. no package) 
the whole application (.war) cannot be deployed, because solder annotation processor fall in error: NullPointerException.


org.jboss.seam.solder.core.CoreExtension
[...]
<X> void processAnnotatedType(@Observes final ProcessAnnotatedType<X> pat, BeanManager beanManager)
   {
[...]
 Package pkg = javaClass.getPackage();
      Named namedFromPackage = null;
      ///////////////////////////////////
      // ERROR on next line: pkg is null
      if (pkg.isAnnotationPresent(Named.class) && !annotatedType.isAnnotationPresent(Named.class)) 
      // ERROR pkg is null
      ////////////////////////
      {
         builder = initializeBuilder(builder, annotatedType);
         namedFromPackage = new NamedLiteral();
         builder.addToClass(namedFromPackage);
      }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list