Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: Segmentation
    • Labels:

      Description

      SegmentsEntryPersistenceImpl.java

      [echo] +++ b/modules/apps/segments/segments-service/src/main/java/com/liferay/segments/service/persistence/impl/SegmentsEntryPersistenceImpl.java [echo] @@ -11257,4 +11257,13 @@ public class SegmentsEntryPersistenceImpl [echo] private static final Set<String> _badColumnNames = SetUtil.fromArray( [echo] new String[] {"uuid", "active", "type"}); [echo] [echo] + static { [echo] + try { [echo] + Class.forName(SegmentsPersistenceConstants.class.getName()); [echo] + } [echo] + catch (ClassNotFoundException cnfe) { [echo] + throw new ExceptionInInitializerError(cnfe); [echo] + } [echo] + } [echo] + [echo] } [echo] \ No newline at end of file
      

      SegmentsEntryRelPersistenceImpl.java

      [echo] +++ b/modules/apps/segments/segments-service/src/main/java/com/liferay/segments/service/persistence/impl/SegmentsEntryRelPersistenceImpl.java
           [echo] @@ -2925,4 +2925,13 @@ public class SegmentsEntryRelPersistenceImpl
           [echo]  	private static final Log _log = LogFactoryUtil.getLog(
           [echo]  		SegmentsEntryRelPersistenceImpl.class);
           [echo]  
           [echo] +	static {
           [echo] +		try {
           [echo] +			Class.forName(SegmentsPersistenceConstants.class.getName());
           [echo] +		}
           [echo] +		catch (ClassNotFoundException cnfe) {
           [echo] +			throw new ExceptionInInitializerError(cnfe);
           [echo] +		}
           [echo] +	}
           [echo] +
           [echo]  }
           [echo] \ No newline at end of file
      

      SegmentsExperiencePersistenceImpl.java

      [echo] +++ b/modules/apps/segments/segments-service/src/main/java/com/liferay/segments/service/persistence/impl/SegmentsExperiencePersistenceImpl.java [echo] @@ -10974,4 +10974,13 @@ public class SegmentsExperiencePersistenceImpl [echo] private static final Set<String> _badColumnNames = SetUtil.fromArray( [echo] new String[] {"uuid", "active"}); [echo] [echo] + static { [echo] + try { [echo] + Class.forName(SegmentsPersistenceConstants.class.getName()); [echo] + } [echo] + catch (ClassNotFoundException cnfe) { [echo] + throw new ExceptionInInitializerError(cnfe); [echo] + } [echo] + } [echo] + [echo] } [echo] \ No newline at end of file
      

      SegmentsExperimentFinderBaseImpl.java

      [echo] +++ b/modules/apps/segments/segments-service/src/main/java/com/liferay/segments/service/persistence/impl/SegmentsExperimentFinderBaseImpl.java
           [echo] @@ -86,4 +86,13 @@ public abstract class SegmentsExperimentFinderBaseImpl
           [echo]  	private static final Log _log = LogFactoryUtil.getLog(
           [echo]  		SegmentsExperimentFinderBaseImpl.class);
           [echo]  
           [echo] +	static {
           [echo] +		try {
           [echo] +			Class.forName(SegmentsPersistenceConstants.class.getName());
           [echo] +		}
           [echo] +		catch (ClassNotFoundException cnfe) {
           [echo] +			throw new ExceptionInInitializerError(cnfe);
           [echo] +		}
           [echo] +	}
           [echo] +
           [echo]  }
           [echo] \ No newline at end of file
      

      SegmentsExperimentPersistenceImpl.java

      [echo] +++ b/modules/apps/segments/segments-service/src/main/java/com/liferay/segments/service/persistence/impl/SegmentsExperimentPersistenceImpl.java
           [echo] @@ -7178,4 +7178,13 @@ public class SegmentsExperimentPersistenceImpl
           [echo]  	private static final Set<String> _badColumnNames = SetUtil.fromArray(
           [echo]  		new String[] {"uuid"});
           [echo]  
           [echo] +	static {
           [echo] +		try {
           [echo] +			Class.forName(SegmentsPersistenceConstants.class.getName());
           [echo] +		}
           [echo] +		catch (ClassNotFoundException cnfe) {
           [echo] +			throw new ExceptionInInitializerError(cnfe);
           [echo] +		}
           [echo] +	}
           [echo] +
           [echo]  }
           [echo] \ No newline at end of file
      

      SegmentsExperimentRelPersistenceImpl.java

      [echo] +++ b/modules/apps/segments/segments-service/src/main/java/com/liferay/segments/service/persistence/impl/SegmentsExperimentRelPersistenceImpl.java [echo] @@ -1672,4 +1672,13 @@ public class SegmentsExperimentRelPersistenceImpl [echo] private static final Log _log = LogFactoryUtil.getLog( [echo] SegmentsExperimentRelPersistenceImpl.class); [echo] [echo] + static { [echo] + try { [echo] + Class.forName(SegmentsPersistenceConstants.class.getName()); [echo] + } [echo] + catch (ClassNotFoundException cnfe) { [echo] + throw new ExceptionInInitializerError(cnfe); [echo] + } [echo] + } [echo] + [echo] } [echo] \ No newline at end of file
      

      SegmentsPersistenceConstants.java

      [echo] +++ b/modules/apps/segments/segments-service/src/main/java/com/liferay/segments/service/persistence/impl/constants/SegmentsPersistenceConstants.java [echo] @@ -17,16 +17,13 @@ package com.liferay.segments.service.persistence.impl.constants; [echo] import com.liferay.petra.string.StringBundler; [echo] [echo] import org.osgi.framework.Bundle; [echo] -import org.osgi.framework.BundleContext; [echo] import org.osgi.framework.Constants; [echo] -import org.osgi.service.component.annotations.Activate; [echo] -import org.osgi.service.component.annotations.Component; [echo] +import org.osgi.framework.FrameworkUtil; [echo] [echo] /** [echo] * @author Eduardo Garcia [echo] * @generated [echo] */ [echo] -@Component(immediate = true, service = {}) [echo] public class SegmentsPersistenceConstants { [echo] [echo] public static final String BUNDLE_SYMBOLIC_NAME = [echo] @@ -35,9 +32,9 @@ public class SegmentsPersistenceConstants { [echo] public static final String ORIGIN_BUNDLE_SYMBOLIC_NAME_FILTER = [echo] "(origin.bundle.symbolic.name=" + BUNDLE_SYMBOLIC_NAME + ")"; [echo] [echo] - @Activate [echo] - protected void activate(BundleContext bundleContext) { [echo] - Bundle bundle = bundleContext.getBundle(); [echo] + static { [echo] + Bundle bundle = FrameworkUtil.getBundle( [echo] + SegmentsPersistenceConstants.class); [echo] [echo] if (!BUNDLE_SYMBOLIC_NAME.equals(bundle.getSymbolicName())) { [echo] throw new IllegalStateException(
      

        Attachments

          Activity

            People

            • Assignee:
              joshua.itagaki Joshua Itagaki
              Reporter:
              joshua.itagaki Joshua Itagaki
              Participants of an Issue:
              Recent user:
              Joshua Itagaki
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 weeks, 2 days ago

                Packages

                Version Package