bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/27372] BigInteger should use nextBytes()


From: sven at physto dot se
Subject: [Bug classpath/27372] BigInteger should use nextBytes()
Date: 9 May 2006 09:12:58 -0000


------- Comment #4 from sven at physto dot se  2006-05-09 09:12 -------
That doesn't matter if it's justified or not, as long as it's not in violation
of spec. Which it isn't. The specification says nothing on the number of bytes
consumed by that method. 

If you're running tests written to assume a certain internal, unspecified,
behaviour of the class library, then that is simply bad programming practice.
You'll have to expect that code to break on different platforms, JVMs and
implementations, and that doesn't mean those implementations are necessarily
buggy because of it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27372





reply via email to

[Prev in Thread] Current Thread [Next in Thread]