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.
JavaPlatform is missing test coverage. Which I observed when I search for implemetnation of JavaPlatformManager.getPlatform(String,Specification), when Specification contains some profiles. I found that this is not implemented at all. Either implement and write a test so we know how it should work or remove the method as we discussed in the meeting.
Fixed. Support for profiles was added and covered by tests.
Tests are there, but I will not pretend I understand why, when it is searching for (PersonalJava, null) it returns only P7 and also P5. I thought that the I would get any platform that satisfies all my requirements and P5 does imho moreover it adds RMI, which I do not care about. Maybe return P7 and P5 and make P7 first in array because it matches more closely? Anyway, I think the original request is satisfied.
(PersonalJava, null) means platform which is PersonalJava and *. Both P5 = (PersonalJava, RMI) and P7 = (PersonalJava) satisfy this query. If you want to get a platform which is only PersonalJava and nothing more use query (PersonalJava) and you will get only P7, at least I hope so ;-) The ordering is good idea.