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 244283
Collapse All | Expand All

(-)a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/LaunchingSessionProvider.java (-2 / +2 lines)
Lines 113-119 Link Here
113
            }
113
            }
114
114
115
            try {
115
            try {
116
                int t = Integer.parseInt (pn.substring (sessionName.length ()));
116
                int t = Integer.parseInt (pn.substring (sessionName.length () + 3)); // 3 = " - ".length
117
                m.add (Integer.valueOf(t));
117
                m.add (Integer.valueOf(t));
118
            } catch (Exception e) {
118
            } catch (Exception e) {
119
            }
119
            }
Lines 124-130 Link Here
124
        for (i = 0; i < k; i++)
124
        for (i = 0; i < k; i++)
125
           if (!m.contains (Integer.valueOf(i)))
125
           if (!m.contains (Integer.valueOf(i)))
126
               break;
126
               break;
127
        if (i > 0) sessionName = sessionName + i;
127
        if (i > 0) sessionName = sessionName + " - " + i;
128
        return sessionName;
128
        return sessionName;
129
    };
129
    };
130
}
130
}

Return to bug 244283