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 - JavaPlatformManager.getPlatform is not implemented
Summary: JavaPlatformManager.getPlatform is not implemented
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Zezula
Depends on:
Blocks: 40703
  Show dependency tree
Reported: 2004-03-12 17:25 UTC by Jaroslav Tulach
Modified: 2006-03-24 10:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2004-03-12 17:25:51 UTC
JavaPlatform is missing test coverage. Which I
observed when I search for implemetnation of
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
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
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.