#2 JReleaseInfo incorrectly forces package names to lowercase

closed-accepted
5
2005-08-23
2005-01-17
Ken Gentle
No

While it is accepted convention to use a completely
lowercase package name that reflects an internet domain
this is not a requirement of the compiler or the
Language specification.

See
http://java.sun.com/docs/books/jls/second_edition/html/names.doc.html#9184

and

http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html#40169

There is code that I'm responsible for that uses a
mixed case package name. I've also maintained code
that had the original convention (All UPPERCASE, at
least for the top level domain )

The solution is rather simple:

In JReleaseInfoBean.setPackageName(String)
replace

this.packageName = packageName.trim().toLowerCase();

with

this.packageName = packageName.trim();

Thanks...

Ken

Discussion

  • Thomas Cotting
    Thomas Cotting
    2005-08-08

    • assigned_to: nobody --> tcotting
    • status: open --> pending-accepted
     
  • Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-accepted --> closed-accepted