Review Request JDK-8166846: jdeps fails to generate module info if there is any class in unnamed package

Mandy Chung mandy.chung at oracle.com
Wed Oct 5 18:49:32 UTC 2016


Lance,

Thanks for the review. jdeps.properties updated:

err.genmoduleinfo.not.jarfile={0} is a modular JAR file that cannot be specified with the --generate-module-info option
err.genmoduleinfo.unnamed.package={0} contains an unnamed package that is not allowed in a module

Mandy

> On Oct 5, 2016, at 11:29 AM, Lance Andersen <lance.andersen at oracle.com> wrote:
> 
> Hi Mandy
> 
> The code changes look good.
> 
> A couple of minor suggestions
> 
> This looks good.  Only thought I had is 
> 
> err.genmoduleinfo.unnamed.package={0} contains unnamed package; not a valid module to generate module-info.java
> perhaps change it to:
> 
> 	{0} contains an unnamed package that is not allowed in a module.
> 
> err.genmoduleinfo.not.jarfile={0} is a modular JAR file; not valid for --generate-module-info option
> I might tweak this to be:
> 
> 	{0} is a modular JAR file and may not be specified with the —generate-module-info option
> 
> 
> HTH,
> 
> Best,
> Lance
>> On Oct 4, 2016, at 10:50 PM, Mandy Chung <mandy.chung at oracle.com> wrote:
>> 
>> http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8166846/webrev.00/
>> 
>> This improves jdeps error message to indicate that a JAR file containing unnamed package is not valid to generate module-info.java.
>> 
>> Mandy
> 
> <oracle_sig_logo.gif>
> 
> Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
> Oracle Java Engineering 
> 1 Network Drive 
> Burlington, MA 01803
> Lance.Andersen at oracle.com
> 
> 
> 



More information about the core-libs-dev mailing list