Re: Reverse engineering?

1998-07-31 Thread Paul Fisher

Wes Biggs <[EMAIL PROTECTED]> writes:

> Am I allowed to write Java code, run it on Sun's JDK, and use the
> generated output to give me a feel for how my implementation should
> work?

Yes.

-- 
Paul Fisher * [EMAIL PROTECTED]




RE: Reverse engineering?

1998-07-31 Thread John Keiser

Sun's java is the "reference implementation" and thus is a valid spec
source.
--John Keiser

> -Original Message-
> From: Wes Biggs [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 31, 1998 11:51 AM
> To: classpath
> Subject: Reverse engineering?
>
>
> Am I allowed to write Java code, run it on Sun's JDK, and use the
> generated output to give me a feel for how my implementation should
> work?  e.g. the getZoneStrings() method of java.text.DateFormatSymbols
> returns a String[][], but nothing in the API says anything about the
> format of those arrays.  Obviously, though, there's some kind of
> convention that they're expecting, e.g. it's an array with a pair of
> strings per time zone.
>
> Can I write a program that does something like:
>
> String[][] temp = dfs.getZoneStrings();
> for (int i=0; i   for (int j=0; j System.out.println("["+i+","+j+"] = "+temp[i][j]);
>   }
> }
>
> or does that go against the principles here?
>
> Wes
>
>
>