Yunkun gives a solid reason which happens in my mind too. Here's one side
question, no matter how we rename, we need to consider the backward
compatibility. Mercy, do you have any plan on this to share with us?

Thanks,
-Ian.


On Fri, Mar 1, 2019 at 10:14 AM YunKun Huang <[email protected]> wrote:

> +1 for rename with prefix
>
> Service annotation is used by Spring Framework. We can use prefix to make
> things more clear to understand and easy to investigate issue.
>
> Of course, we can make sure everything still works with `wrong` import,
> but I think rename with prefix will be more easy to achieve.
>
> On 2019/03/01 01:56:22, LiZhenNet <[email protected]> wrote:
> > I think it is necessary ,Code will be more clearer and will not be
> confused
> > with other annotations , like @Service in Spring
> >
> >
> > kezhenxu94 <[email protected]> 于2019年3月1日周五 上午8:56写道:
> >
> > > > Classes in different frameworks have identical names is widespread.
> For
> > > example, java nio and netty both have Channel class.
> > >
> > >
> > > I think it's ok for classes because if you import the class from a
> wrong
> > > package, it's usually a compile time error,
> > > but for annotations, it's not the case.
> > >
> > >
> > > Another example is com.google.inject.Inject (in Guice) and
> > > javax.inject.Inject, but Guice supports the both annotation classes,
> > > meaning it works well event if you import the "wrong" class, but
> importing
> > > the wrong "Service" may be tricky to debug?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > 在 2019-02-28 23:05:02,"Taosheng, Wei" <[email protected]> 写道:
> > > >I think it is not necessary. If a shorter name can express its meaning
> > > clearly, we do not need to make it longer.
> > > >Classes in different frameworks have identical names is widespread.
> For
> > > example, java nio and netty both have Channel class.
> > > >
> > > >
> > > >
> > > >
> > > >------------------ 原始邮件 ------------------
> > > >发件人: "Mercy"<[email protected]>;
> > > >发送时间: 2019年2月28日(星期四) 下午5:17
> > > >收件人: "dev"<[email protected]>;
> > > >主题: [Discussion] Should we rename the Dubbo's Java anntations
> with"Dubbo"
> > > prefix?
> > > >
> > > >
> > > >
> > > >Hi all,
> > > >
> > > >
> > > >     It's an interesting issue[1] that was posted on Dubbo Spring Boot
> > > >Project, the reporter ask to rename the Dubbo's Java anntations with
> > > >"Dubbo" Prefix:
> > > >
> > > >Before:
> > > >
> > > >     @Service
> > > >
> > > >     @Reference
> > > >
> > > >After:
> > > >
> > > >     @DubboService
> > > >
> > > >     @DubboReference
> > > >
> > > >
> > > >I think that's fine, What's your opinion?
> > > >
> > > >
> > > >[1]:
> > > >
> https://github.com/apache/incubator-dubbo-spring-boot-project/issues/447
> > > >
> > > >
> > > >Kind regards,
> > > >
> > > >Mercy Ma
> > >
> >
>

Reply via email to