Community
Participate
Working Groups
We are using the PluginRegistry.findModel* API functions, and noticed that if there is a plug-in with a bad version string in the workspace, these methods will throw IllegalArgumentExceptions. From stacktrace we can see the exception is coming from the Version() constructor when it is passed the bad version string. java.lang.IllegalArgumentException: invalid format at org.osgi.framework.Version.<init>(Version.java:140) at org.eclipse.pde.core.plugin.PluginRegistry.getMax(PluginRegistry.java:346) at org.eclipse.pde.core.plugin.PluginRegistry.findModel(PluginRegistry.java:324) java.lang.IllegalArgumentException: invalid format at org.osgi.framework.Version.<init>(Version.java:140) at org.eclipse.pde.core.plugin.PluginRegistry.findModels(PluginRegistry.java:381) at org.eclipse.pde.core.plugin.PluginRegistry.findModel(PluginRegistry.java:324)
A contributed patch would be awesome.
Created attachment 183029 [details] patch for PluginRegistry
Would be nice if this can go in 3.6.2, thanks!
Patch looks good. We can probably put it in for 3.6.2.
Fixed in HEAD. Leaving open for 3.6.2 consideration.
Fixed in 3.6 maintenance branch. Updated pde core version to 3.6.2 Ankur, please verify.
+1 Good for 3.6.2