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.
Summary: | Exception when adding Java Secure Channel integration to NetBeans RCP project | ||
---|---|---|---|
Product: | apisupport | Reporter: | sflemming <sflemming> |
Component: | Harness | Assignee: | rmichalsky <rmichalsky> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jglick |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
sflemming
2009-08-26 10:14:41 UTC
Issue #159576 is about "foreign-project" type, so it's different issue. Please evaluate, thanks. Reproducible. The notation is ok, problem is in the leading '0' in '.0141'. XSD specifically forbids leading zero in version numbers. Jesse, is there some reason behind it or could I relax the constraint there? The version in the generated manifest is indeed malformed: OpenIDE-Module-Specification-Version: 1.8.1.0141 There are two bugs which together produce the symptom: (1) The OIDE-M-Implementation-Version in the source manifest should probably be "0.1.41" rather than "0141" (or simply deleted as it is pretty useless), and/or a simple OIDE-M-S-V should be given in the manifest rather than using spec.version.base. (2) This code in JarWithModuleAttributes: if (implVers != null) { try { Integer.parseInt(implVers); specVersBase += "." + implVers; edited = true; } catch (NumberFormatException e) {...} } should treat a string matching /0\d+/ as a non-integer (thus triggering the same logic as for a NumberFormatException). Leaving assigned to apisupport/harness for (2); (1) should be fixed in libs.jsch/manifest.mf (no idea what IZ component that would be). (2) could be easily backported. Immediate workaround is just to delete ".0141" from ide11/modules/org-netbeans-libs-jsch.jar!/META-INF/MANIFEST.MF#OpenIDE-Module-Specification-Version and continue. core-main #720d0381aeec Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/720d0381aeec User: Jesse Glick <jglick@netbeans.org> Log: #170919: do not use 0\d+ as implementation versions. |