Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1280

"org.guvnor.common.services.builder.Builder" build() method swallow Exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.1.0
    • 6.0.1
    • Business Central
    • None
    • All All

      "org.guvnor.common.services.builder.Builder" at the end of build() method swallow Exception:
      ~~~
      for ( final String packageName : kieModuleMetaData.getPackages() ) {
      for ( final String className : kieModuleMetaData.getClasses( packageName ) ) {
      final String fullyQualifiedClassName = packageName + "." + className;
      try {
      final Class clazz = kieModuleMetaData.getClass( packageName,
      className );
      final TypeSource typeSource = getClassSource( kieModuleMetaData,
      clazz );
      if ( TypeSource.JAVA_DEPENDENCY == typeSource )

      { verifyExternalClass( clazz ); }

      } catch ( NoClassDefFoundError e )

      { final String msg = MessageFormat.format( ERROR_EXTERNAL_CLASS_VERIFICATON, fullyQualifiedClassName ); logger.warn( msg ); results.addBuildMessage( makeWarningMessage( msg ) ); }

      catch ( Throwable e )

      { final String msg = MessageFormat.format( ERROR_EXTERNAL_CLASS_VERIFICATON, fullyQualifiedClassName ); logger.error( msg ); results.addBuildMessage( makeErrorMessage( msg ) ); }

      }
      }
      ~~~

      Note that NoClassDefFoundError be swallowed, the output didn't contain No exist class.

              manstis@redhat.com Michael Anstis
              kylinsoong.1214@gmail.com Kylin Soong (Inactive)
              Jiří Locker Jiří Locker (Inactive)
              Jiří Locker Jiří Locker (Inactive)
              Kris Verlaenen, Kylin Soong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: