This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 206347
Collapse All | Expand All

(-)a/core.netigso/src/org/netbeans/core/netigso/Netigso.java (+3 lines)
Lines 411-416 Link Here
411
                    LOG.log(Level.FINE, "Installing bundle {0}", loc);
411
                    LOG.log(Level.FINE, "Installing bundle {0}", loc);
412
                    b = bc.installBundle(loc);
412
                    b = bc.installBundle(loc);
413
                    int startLevel = m.getStartLevel();
413
                    int startLevel = m.getStartLevel();
414
                    if (startLevel == -1) {
415
                        startLevel = defaultStartLevel();
416
                    }
414
                    if (startLevel > 0) {
417
                    if (startLevel > 0) {
415
                        setBundleStartLevel(bc, b, startLevel);
418
                        setBundleStartLevel(bc, b, startLevel);
416
                    }
419
                    }
(-)a/o.n.bootstrap/src/org/netbeans/Module.java (-2 / +2 lines)
Lines 617-623 Link Here
617
    /** Finds out if a module has been assigned with a specific start level.
617
    /** Finds out if a module has been assigned with a specific start level.
618
     * Start level is only useful for OSGi bundles. Otherwise it is always zero.
618
     * Start level is only useful for OSGi bundles. Otherwise it is always zero.
619
     * 
619
     * 
620
     * @return zero, if no specific level is assigned, positive integer if so
620
     * @return -1, if no specific level is assigned, non-negative integer if so
621
     * @since 2.43
621
     * @since 2.43
622
     */
622
     */
623
    public final int getStartLevel() {
623
    public final int getStartLevel() {
Lines 625-631 Link Here
625
    }
625
    }
626
    
626
    
627
    int getStartLevelImpl() {
627
    int getStartLevelImpl() {
628
        return 0;
628
        return -1;
629
    }
629
    }
630
    
630
    
631
    /** String representation for debugging. */
631
    /** String representation for debugging. */
(-)a/o.n.bootstrap/src/org/netbeans/NetigsoModule.java (-2 / +1 lines)
Lines 56-62 Link Here
56
import java.util.logging.Logger;
56
import java.util.logging.Logger;
57
import org.openide.modules.SpecificationVersion;
57
import org.openide.modules.SpecificationVersion;
58
import org.openide.util.Exceptions;
58
import org.openide.util.Exceptions;
59
import org.openide.util.Lookup;
60
59
61
/** Special module for representing OSGi bundles 
60
/** Special module for representing OSGi bundles 
62
 * @author Jaroslav Tulach
61
 * @author Jaroslav Tulach
Lines 230-236 Link Here
230
229
231
    @Override
230
    @Override
232
    final int getStartLevelImpl() {
231
    final int getStartLevelImpl() {
233
        return startLevel == -1 ? Lookup.getDefault().lookup(NetigsoFramework.class).defaultStartLevel() : startLevel;
232
        return startLevel;
234
    }
233
    }
235
234
236
    final void setStartLevel(int startLevel) {
235
    final void setStartLevel(int startLevel) {

Return to bug 206347