groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: GROOVY-8527: Enhance import aliasing to an alias with a package name
Date Wed, 04 Apr 2018 10:46:50 GMT


Am 04.04.2018 um 06:58 schrieb Daniel Sun:
> Hi all,
> 
> 
>         Paul proposed to enhance import aliasing to an alias with a package
> name(see GROOVY-8527[2]), which I think is useful sometimes, so I have
> implemented in groovy-parser project[1].
> 
>         If no one rejects it, I will sync it to apache/groovy project.
> 
> Cheers,
> Daniel.Sun
> 
> [1] https://github.com/danielsun1106/groovy-parser/tree/refine-import-as
> [2] https://issues.apache.org/jira/browse/GROOVY-8527

I am unclear about the use case for this. I mean if you

import java.lang.String as some.package.MyString

you will have to do "new some.package.MyString()". If you are fully 
qualifying the name, why not use the original name instead.

bye Jochen

Mime
View raw message