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

(-)a/o.n.bootstrap/src/org/netbeans/ModuleData.java (-6 / +6 lines)
Lines 128-136 Link Here
128
                specVers = null;
128
                specVers = null;
129
            }
129
            }
130
            String iv = attr.getValue("OpenIDE-Module-Implementation-Version"); // NOI18N
130
            String iv = attr.getValue("OpenIDE-Module-Implementation-Version"); // NOI18N
131
            implVersion = iv == null ? "" : iv;
131
            implVersion = iv == null ? "" : iv.intern();
132
            String bld = attr.getValue("OpenIDE-Module-Build-Version"); // NOI18N
132
            String bld = attr.getValue("OpenIDE-Module-Build-Version"); // NOI18N
133
            buildVersion = bld == null ? implVersion : bld;
133
            buildVersion = bld == null ? implVersion : bld.intern();
134
            
134
            
135
            this.provides = computeProvides(forModule, attr, verifyCNBs, false);
135
            this.provides = computeProvides(forModule, attr, verifyCNBs, false);
136
136
Lines 194-200 Link Here
194
                            Dependency.create(Dependency.TYPE_MODULE, piece);
194
                            Dependency.create(Dependency.TYPE_MODULE, piece);
195
                        }
195
                        }
196
                        // OK, add it.
196
                        // OK, add it.
197
                        set.add(piece);
197
                        set.add(piece.intern());
198
                    }
198
                    }
199
                    if (set.isEmpty()) {
199
                    if (set.isEmpty()) {
200
                        throw new IllegalArgumentException("Empty OpenIDE-Module-Friends: " + friends); // NOI18N
200
                        throw new IllegalArgumentException("Empty OpenIDE-Module-Friends: " + friends); // NOI18N
Lines 251-258 Link Here
251
            this.codeNameRelease = dis.readInt();
251
            this.codeNameRelease = dis.readInt();
252
            this.coveredPackages = readStrings(dis, new HashSet<String>(), true);
252
            this.coveredPackages = readStrings(dis, new HashSet<String>(), true);
253
            this.dependencies = (Dependency[]) dis.readObject();
253
            this.dependencies = (Dependency[]) dis.readObject();
254
            this.implVersion = dis.readUTF();
254
            this.implVersion = dis.readUTF().intern();
255
            this.buildVersion = dis.readUTF();
255
            this.buildVersion = dis.readUTF().intern();
256
            this.provides = readStrings(dis);
256
            this.provides = readStrings(dis);
257
            this.friendNames = readStrings(dis, new HashSet<String>(), false);
257
            this.friendNames = readStrings(dis, new HashSet<String>(), false);
258
            this.specVers = new SpecificationVersion(dis.readUTF());
258
            this.specVers = new SpecificationVersion(dis.readUTF());
Lines 477-483 Link Here
477
            return null;
477
            return null;
478
        }
478
        }
479
        while (cnt-- > 0) {
479
        while (cnt-- > 0) {
480
            set.add(dis.readUTF());
480
            set.add(dis.readUTF().intern());
481
        }
481
        }
482
        return set;
482
        return set;
483
    }
483
    }

Return to bug 214726