Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3366

When adding resources using both MVEL and Java dialects the JavaDialect constructor fails when dialectData is found and stored.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 5.3.1.Final
    • drools-compiler
    • None

    Description

      In the constructor of JavaDialect, if pkg.getDialectRuntimeRegistry().getDialectData( ID ) returns a non null value, then a null is passed into the PackageStore constructor.

      if ( pkg.getDialectRuntimeRegistry().getDialectData( ID ) == null )

      { data = new JavaDialectRuntimeData(); this.pkg.getDialectRuntimeRegistry().setDialectData( ID, data ); data.onAdd( this.pkg.getDialectRuntimeRegistry(), this.packageBuilder.getRootClassLoader() ); }

      this.packageStoreWrapper = new PackageStore( data,
      this.results );

      is fixed by:

      if (( data = (JavaDialectRuntimeData) pkg.getDialectRuntimeRegistry().getDialectData( ID )) == null ) { data = new JavaDialectRuntimeData(); this.pkg.getDialectRuntimeRegistry().setDialectData( ID, data ); data.onAdd( this.pkg.getDialectRuntimeRegistry(), this.packageBuilder.getRootClassLoader() ); }

      this.packageStoreWrapper = new PackageStore( data, this.results );

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            thatzall Alan Zall (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty