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.

Bug 212364 - Malformed dot-separated identifier when artifactid contains dot separated numbers
Summary: Malformed dot-separated identifier when artifactid contains dot separated num...
Alias: None
Product: platform
Classification: Unclassified
Component: Netigso (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jaroslav Tulach
Depends on:
Reported: 2012-05-11 08:53 UTC by anttiko
Modified: 2012-05-24 05:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

More flexible code name scheme (3.95 KB, patch)
2012-05-17 10:25 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description anttiko 2012-05-11 08:53:35 UTC
Validation of artifactId which has dot separated numbers fails.


This will cause exception:

java.lang.IllegalArgumentException: Malformed dot-separated identifier: org.apache.servicemix.specs.jsr303_api_1.0.0
  at org.openide.modules.Dependency.checkCodeName(
  at org.openide.modules.Dependency.create(
[catch] at org.netbeans.core.startup.ModuleList$
  at org.openide.filesystems.EventControl.runAtomicAction(
  at org.openide.filesystems.FileSystem.runAtomicAction(
  at org.netbeans.core.startup.ModuleList.readInitial(
  at org.netbeans.core.startup.ModuleSystem.readList(
  at org.netbeans.core.startup.Main.getModuleSystem(
  at org.netbeans.core.startup.Main.start(
Comment 1 Jaroslav Tulach 2012-05-17 10:25:11 UTC
To absorb the flexibility of OSGi symbolic names, we can either invent some mangling scheme or relax our code name rules. We are already mangling "-" into "_" and it requires mangling/demangling to be spread all over the code base. Rather then doing the same in this case, I propose to relax our rules to allow parts of the code name to start with numbers.
Comment 2 Jaroslav Tulach 2012-05-17 10:25:16 UTC
Created attachment 119563 [details]
More flexible code name scheme
Comment 3 Jaroslav Tulach 2012-05-22 15:47:14 UTC
Can I integrate tomorrow?
Comment 4 Jaroslav Tulach 2012-05-24 05:49:35 UTC