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 40970

Summary: JavaPlatformManager.getPlatform is not implemented
Product: java Reporter: Jaroslav Tulach <jtulach>
Component: PlatformAssignee: Tomas Zezula <tzezula>
Status: CLOSED FIXED    
Severity: blocker CC: jglick
Priority: P1    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 40703    

Description Jaroslav Tulach 2004-03-12 17:25:51 UTC
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.
Comment 1 Tomas Zezula 2004-03-18 13:17:51 UTC
Fixed.
Support for profiles was added and covered by tests.
Comment 2 Jaroslav Tulach 2004-03-18 14:43:36 UTC
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.
Comment 3 Tomas Zezula 2004-03-18 16:15:27 UTC
(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.