You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Zakharov, Vasily M" <va...@intel.com> on 2007/05/25 13:41:01 UTC
[classlib] Support for sun.misc.Service ?
Hi, all,
While trying to run NetBeans with NetBeans Profiler on Harmony I've
found out that it produces a lot of errors, most of which are caused by
sun.misc.Service class is absent. The general idea for this class can be
obtained from [1] - look for Service.providers call. I'm not sure if
Harmony has an equivalent for that class, but it probably should -
people on the net (Google) say that the class is rather widely used and
that it should become a part of public API in future, and it probably
would [2]. Moreover, it seems to be already replaced with
java.util.ServiceLoader [3] in Java 6. So, we have the following
questions to answer:
1. Does Harmony have a functional equivalent for sun.misc.Service class?
2. If it doesn't, than should we provide that equivalent?
3. Shouldn't we add a wrapper for that functionality ot at least a dummy
stub for sun.misc.Service to Suncompat module to avoid problems with
applications that address it?
[1] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
[2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640520
[3] http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
Vasily Zakharov
Intel ESSD
RE: [classlib] Support for sun.misc.Service ?
Posted by "Zakharov, Vasily M" <va...@intel.com>.
Great! Thanks.
-----Original Message-----
From: nbeyer@gmail.com [mailto:nbeyer@gmail.com] On Behalf Of Nathan
Beyer
Sent: Tuesday, June 26, 2007 7:39 AM
To: dev@harmony.apache.org
Subject: Re: [classlib] Support for sun.misc.Service ?
Yeah, we can work something out for the Java 5 branch.
On 6/25/07, Zakharov, Vasily M <va...@intel.com> wrote:
> Nathan,
>
> It's great to hear that, thank you!
>
> I wonder if this implementation would only be available for Java 6
> version.
> Would it be possible to have that functionality usable by Java 5
branch
> also
> (by wrapping to sun.misc.Service, at least)?..
>
> Vasily
>
>
> -----Original Message-----
> From: nbeyer@gmail.com [mailto:nbeyer@gmail.com] On Behalf Of Nathan
> Beyer
> Sent: Tuesday, June 26, 2007 7:19 AM
> To: dev@harmony.apache.org
> Subject: Re: [classlib] Support for sun.misc.Service ?
>
> Yeah, I do have some code for the Java 6 ServiceLoader. I'm waiting
> for the M2 stuff to calm down and then I can put something into the
> repo and have it go a few rounds of review.
>
> -Nathan
>
> On 6/25/07, Tony Wu <wu...@gmail.com> wrote:
> > I think Nathan is working on the ServiceLoader recently. If it is
> > widely used I suggest to maintain a copy in suncompat and wrap it.
> >
> > On 6/26/07, Zakharov, Vasily M <va...@intel.com> wrote:
> > >
> > > I've filed jira HARMONY-4280 for this issue, and attached a simple
> > > patch.
> > >
> > > Does anybody have any opinions on how should we resolve it?
> > >
> > > Vasily
> > >
> > >
> > > -----Original Message-----
> > > From: Zakharov, Vasily M [mailto:vasily.m.zakharov@intel.com]
> > > Sent: Friday, May 25, 2007 3:41 PM
> > > To: dev@harmony.apache.org
> > > Subject: [classlib] Support for sun.misc.Service ?
> > >
> > > Hi, all,
> > >
> > > While trying to run NetBeans with NetBeans Profiler on Harmony
I've
> > > found out that it produces a lot of errors, most of which are
caused
> by
> > > sun.misc.Service class is absent. The general idea for this class
> can be
> > > obtained from [1] - look for Service.providers call. I'm not sure
if
> > > Harmony has an equivalent for that class, but it probably should -
> > > people on the net (Google) say that the class is rather widely
used
> and
> > > that it should become a part of public API in future, and it
> probably
> > > would [2]. Moreover, it seems to be already replaced with
> > > java.util.ServiceLoader [3] in Java 6. So, we have the following
> > > questions to answer:
> > >
> > > 1. Does Harmony have a functional equivalent for sun.misc.Service
> class?
> > >
> > > 2. If it doesn't, than should we provide that equivalent?
> > >
> > > 3. Shouldn't we add a wrapper for that functionality ot at least a
> dummy
> > > stub for sun.misc.Service to Suncompat module to avoid problems
with
> > > applications that address it?
> > >
> > > [1] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
> > > [2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640520
> > > [3]
> http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
> > >
> > > Vasily Zakharov
> > > Intel ESSD
> > >
> >
> >
> > --
> > Tony Wu
> > China Software Development Lab, IBM
> >
>
Re: [classlib] Support for sun.misc.Service ?
Posted by Nathan Beyer <nd...@apache.org>.
Yeah, we can work something out for the Java 5 branch.
On 6/25/07, Zakharov, Vasily M <va...@intel.com> wrote:
> Nathan,
>
> It's great to hear that, thank you!
>
> I wonder if this implementation would only be available for Java 6
> version.
> Would it be possible to have that functionality usable by Java 5 branch
> also
> (by wrapping to sun.misc.Service, at least)?..
>
> Vasily
>
>
> -----Original Message-----
> From: nbeyer@gmail.com [mailto:nbeyer@gmail.com] On Behalf Of Nathan
> Beyer
> Sent: Tuesday, June 26, 2007 7:19 AM
> To: dev@harmony.apache.org
> Subject: Re: [classlib] Support for sun.misc.Service ?
>
> Yeah, I do have some code for the Java 6 ServiceLoader. I'm waiting
> for the M2 stuff to calm down and then I can put something into the
> repo and have it go a few rounds of review.
>
> -Nathan
>
> On 6/25/07, Tony Wu <wu...@gmail.com> wrote:
> > I think Nathan is working on the ServiceLoader recently. If it is
> > widely used I suggest to maintain a copy in suncompat and wrap it.
> >
> > On 6/26/07, Zakharov, Vasily M <va...@intel.com> wrote:
> > >
> > > I've filed jira HARMONY-4280 for this issue, and attached a simple
> > > patch.
> > >
> > > Does anybody have any opinions on how should we resolve it?
> > >
> > > Vasily
> > >
> > >
> > > -----Original Message-----
> > > From: Zakharov, Vasily M [mailto:vasily.m.zakharov@intel.com]
> > > Sent: Friday, May 25, 2007 3:41 PM
> > > To: dev@harmony.apache.org
> > > Subject: [classlib] Support for sun.misc.Service ?
> > >
> > > Hi, all,
> > >
> > > While trying to run NetBeans with NetBeans Profiler on Harmony I've
> > > found out that it produces a lot of errors, most of which are caused
> by
> > > sun.misc.Service class is absent. The general idea for this class
> can be
> > > obtained from [1] - look for Service.providers call. I'm not sure if
> > > Harmony has an equivalent for that class, but it probably should -
> > > people on the net (Google) say that the class is rather widely used
> and
> > > that it should become a part of public API in future, and it
> probably
> > > would [2]. Moreover, it seems to be already replaced with
> > > java.util.ServiceLoader [3] in Java 6. So, we have the following
> > > questions to answer:
> > >
> > > 1. Does Harmony have a functional equivalent for sun.misc.Service
> class?
> > >
> > > 2. If it doesn't, than should we provide that equivalent?
> > >
> > > 3. Shouldn't we add a wrapper for that functionality ot at least a
> dummy
> > > stub for sun.misc.Service to Suncompat module to avoid problems with
> > > applications that address it?
> > >
> > > [1] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
> > > [2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640520
> > > [3]
> http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
> > >
> > > Vasily Zakharov
> > > Intel ESSD
> > >
> >
> >
> > --
> > Tony Wu
> > China Software Development Lab, IBM
> >
>
RE: [classlib] Support for sun.misc.Service ?
Posted by "Zakharov, Vasily M" <va...@intel.com>.
Nathan,
It's great to hear that, thank you!
I wonder if this implementation would only be available for Java 6
version.
Would it be possible to have that functionality usable by Java 5 branch
also
(by wrapping to sun.misc.Service, at least)?..
Vasily
-----Original Message-----
From: nbeyer@gmail.com [mailto:nbeyer@gmail.com] On Behalf Of Nathan
Beyer
Sent: Tuesday, June 26, 2007 7:19 AM
To: dev@harmony.apache.org
Subject: Re: [classlib] Support for sun.misc.Service ?
Yeah, I do have some code for the Java 6 ServiceLoader. I'm waiting
for the M2 stuff to calm down and then I can put something into the
repo and have it go a few rounds of review.
-Nathan
On 6/25/07, Tony Wu <wu...@gmail.com> wrote:
> I think Nathan is working on the ServiceLoader recently. If it is
> widely used I suggest to maintain a copy in suncompat and wrap it.
>
> On 6/26/07, Zakharov, Vasily M <va...@intel.com> wrote:
> >
> > I've filed jira HARMONY-4280 for this issue, and attached a simple
> > patch.
> >
> > Does anybody have any opinions on how should we resolve it?
> >
> > Vasily
> >
> >
> > -----Original Message-----
> > From: Zakharov, Vasily M [mailto:vasily.m.zakharov@intel.com]
> > Sent: Friday, May 25, 2007 3:41 PM
> > To: dev@harmony.apache.org
> > Subject: [classlib] Support for sun.misc.Service ?
> >
> > Hi, all,
> >
> > While trying to run NetBeans with NetBeans Profiler on Harmony I've
> > found out that it produces a lot of errors, most of which are caused
by
> > sun.misc.Service class is absent. The general idea for this class
can be
> > obtained from [1] - look for Service.providers call. I'm not sure if
> > Harmony has an equivalent for that class, but it probably should -
> > people on the net (Google) say that the class is rather widely used
and
> > that it should become a part of public API in future, and it
probably
> > would [2]. Moreover, it seems to be already replaced with
> > java.util.ServiceLoader [3] in Java 6. So, we have the following
> > questions to answer:
> >
> > 1. Does Harmony have a functional equivalent for sun.misc.Service
class?
> >
> > 2. If it doesn't, than should we provide that equivalent?
> >
> > 3. Shouldn't we add a wrapper for that functionality ot at least a
dummy
> > stub for sun.misc.Service to Suncompat module to avoid problems with
> > applications that address it?
> >
> > [1] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
> > [2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640520
> > [3]
http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
> >
> > Vasily Zakharov
> > Intel ESSD
> >
>
>
> --
> Tony Wu
> China Software Development Lab, IBM
>
Re: [classlib] Support for sun.misc.Service ?
Posted by Nathan Beyer <nd...@apache.org>.
Yeah, I do have some code for the Java 6 ServiceLoader. I'm waiting
for the M2 stuff to calm down and then I can put something into the
repo and have it go a few rounds of review.
-Nathan
On 6/25/07, Tony Wu <wu...@gmail.com> wrote:
> I think Nathan is working on the ServiceLoader recently. If it is
> widely used I suggest to maintain a copy in suncompat and wrap it.
>
> On 6/26/07, Zakharov, Vasily M <va...@intel.com> wrote:
> >
> > I've filed jira HARMONY-4280 for this issue, and attached a simple
> > patch.
> >
> > Does anybody have any opinions on how should we resolve it?
> >
> > Vasily
> >
> >
> > -----Original Message-----
> > From: Zakharov, Vasily M [mailto:vasily.m.zakharov@intel.com]
> > Sent: Friday, May 25, 2007 3:41 PM
> > To: dev@harmony.apache.org
> > Subject: [classlib] Support for sun.misc.Service ?
> >
> > Hi, all,
> >
> > While trying to run NetBeans with NetBeans Profiler on Harmony I've
> > found out that it produces a lot of errors, most of which are caused by
> > sun.misc.Service class is absent. The general idea for this class can be
> > obtained from [1] - look for Service.providers call. I'm not sure if
> > Harmony has an equivalent for that class, but it probably should -
> > people on the net (Google) say that the class is rather widely used and
> > that it should become a part of public API in future, and it probably
> > would [2]. Moreover, it seems to be already replaced with
> > java.util.ServiceLoader [3] in Java 6. So, we have the following
> > questions to answer:
> >
> > 1. Does Harmony have a functional equivalent for sun.misc.Service class?
> >
> > 2. If it doesn't, than should we provide that equivalent?
> >
> > 3. Shouldn't we add a wrapper for that functionality ot at least a dummy
> > stub for sun.misc.Service to Suncompat module to avoid problems with
> > applications that address it?
> >
> > [1] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
> > [2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640520
> > [3] http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
> >
> > Vasily Zakharov
> > Intel ESSD
> >
>
>
> --
> Tony Wu
> China Software Development Lab, IBM
>
Re: [classlib] Support for sun.misc.Service ?
Posted by Tony Wu <wu...@gmail.com>.
I think Nathan is working on the ServiceLoader recently. If it is
widely used I suggest to maintain a copy in suncompat and wrap it.
On 6/26/07, Zakharov, Vasily M <va...@intel.com> wrote:
>
> I've filed jira HARMONY-4280 for this issue, and attached a simple
> patch.
>
> Does anybody have any opinions on how should we resolve it?
>
> Vasily
>
>
> -----Original Message-----
> From: Zakharov, Vasily M [mailto:vasily.m.zakharov@intel.com]
> Sent: Friday, May 25, 2007 3:41 PM
> To: dev@harmony.apache.org
> Subject: [classlib] Support for sun.misc.Service ?
>
> Hi, all,
>
> While trying to run NetBeans with NetBeans Profiler on Harmony I've
> found out that it produces a lot of errors, most of which are caused by
> sun.misc.Service class is absent. The general idea for this class can be
> obtained from [1] - look for Service.providers call. I'm not sure if
> Harmony has an equivalent for that class, but it probably should -
> people on the net (Google) say that the class is rather widely used and
> that it should become a part of public API in future, and it probably
> would [2]. Moreover, it seems to be already replaced with
> java.util.ServiceLoader [3] in Java 6. So, we have the following
> questions to answer:
>
> 1. Does Harmony have a functional equivalent for sun.misc.Service class?
>
> 2. If it doesn't, than should we provide that equivalent?
>
> 3. Shouldn't we add a wrapper for that functionality ot at least a dummy
> stub for sun.misc.Service to Suncompat module to avoid problems with
> applications that address it?
>
> [1] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
> [2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640520
> [3] http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
>
> Vasily Zakharov
> Intel ESSD
>
--
Tony Wu
China Software Development Lab, IBM
RE: [classlib] Support for sun.misc.Service ?
Posted by "Zakharov, Vasily M" <va...@intel.com>.
I've filed jira HARMONY-4280 for this issue, and attached a simple
patch.
Does anybody have any opinions on how should we resolve it?
Vasily
-----Original Message-----
From: Zakharov, Vasily M [mailto:vasily.m.zakharov@intel.com]
Sent: Friday, May 25, 2007 3:41 PM
To: dev@harmony.apache.org
Subject: [classlib] Support for sun.misc.Service ?
Hi, all,
While trying to run NetBeans with NetBeans Profiler on Harmony I've
found out that it produces a lot of errors, most of which are caused by
sun.misc.Service class is absent. The general idea for this class can be
obtained from [1] - look for Service.providers call. I'm not sure if
Harmony has an equivalent for that class, but it probably should -
people on the net (Google) say that the class is rather widely used and
that it should become a part of public API in future, and it probably
would [2]. Moreover, it seems to be already replaced with
java.util.ServiceLoader [3] in Java 6. So, we have the following
questions to answer:
1. Does Harmony have a functional equivalent for sun.misc.Service class?
2. If it doesn't, than should we provide that equivalent?
3. Shouldn't we add a wrapper for that functionality ot at least a dummy
stub for sun.misc.Service to Suncompat module to avoid problems with
applications that address it?
[1] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
[2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640520
[3] http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
Vasily Zakharov
Intel ESSD