commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [cli] Why is the Constructor to CommandLine package protected?
Date Wed, 29 Sep 2010 21:13:49 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jason,

On 9/28/2010 8:16 PM, Jason Powers wrote:
> I'm working with version 1.2 (I've checked the 1.3 source as well) and I'm
> in need of writing a parser that's a little more strict than the provided
> parsers. I really like the rest of the framework, but if I can't instantiate
> a CommandLine object without being in the same package I can't extend it
> very well.

Quick fix: extend CommandLine and add your own constructor that calls
the superclass's constructor.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyjrA0ACgkQ9CaO5/Lv0PB7QgCfYhkQgIBMOqFVBp/I4/4wT8cf
RJMAnimzGZxLrQtr1IV9k02DycVxoQH7
=TNC0
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message