public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* Generics, BigInteger.
@ 2006-02-15  0:35 Pedro Izecksohn
  0 siblings, 0 replies; only message in thread
From: Pedro Izecksohn @ 2006-02-15  0:35 UTC (permalink / raw)
  To: mauve-discuss

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

As it is known, gnu/testlet/java/math/BigInteger/compareTo.java does
not compile with Generics. It is a useful test, even to Generics
implementations, since it tests the library implementation, but
Generics is forced by the compiler.

To be able to compile it with all other tests, I was needed to change
Makefile.am as the .diff attached. But I don't think it is good, as
other compilers may not understand the -source option, and future
tests may use some language feature not implemented at version 1.4.

So I propose some kind of change, to compile tests separately,
according to the language features used by them. But it is not
urgent, and I did not imagine how to do it yet.

gnu/testlet/java/math/BigInteger/compareTo.java:
The tag JDK1.1 is wrong, according to
http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigInteger.html
 the method compareTo(Object) is there since version 1.2 .

[-- Attachment #2: 3361057457-Makefile.am.diff --]
[-- Type: text/plain, Size: 56 bytes --]

6c6
< JAVACFLAGS = -g
---
> JAVACFLAGS = -g -source 1.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-15  0:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-15  0:35 Generics, BigInteger Pedro Izecksohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).