[rfc][icedtea-web] TeeOutputStream Dependency Fix
Jiri Vanek
jvanek at redhat.com
Tue Sep 9 15:01:35 UTC 2014
> I am going to go with probably worse. Again, why cannot we use reflection here to get
> TeeOutputStream.byteArrayOutputStream and then monitor its flow during the test? Really, this is one
> reason why reflection has been introduced to Java.
Unluckily, yes, this have spread in ITW a lot. The api is being dirty by non-private utility
methods which
- should be private
- should be tested
I would probably like to set some kind of rule for this to future. To test such private methods via
reflection stub. It will move test "api" issues from compile time to runtime, but by retrospective
look, it is probably worthy.
Options?
J.
More information about the distro-pkg-dev
mailing list