From owner-freebsd-java Thu Mar 22 12: 5: 7 2001 Delivered-To: freebsd-java@freebsd.org Received: from flame.fireclick.com (flame.fireclick.com [208.45.103.18]) by hub.freebsd.org (Postfix) with ESMTP id 39F0437B719 for ; Thu, 22 Mar 2001 12:04:59 -0800 (PST) (envelope-from tee@fireclick.com) Received: from fireclick.com (todd.fireclick.com [192.168.254.106]) by flame.fireclick.com (8.10.1/8.10.1) with ESMTP id f2MK4lf04092 for ; Thu, 22 Mar 2001 12:04:48 -0800 Message-ID: <3ABA5AC3.CA8F09DD@fireclick.com> Date: Thu, 22 Mar 2001 12:04:19 -0800 From: Todd Enersen X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: possible bug in port of javac Content-Type: multipart/alternative; boundary="------------1EED3C64C602FEB08BD11F3B" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --------------1EED3C64C602FEB08BD11F3B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I'm trying to port one of our software packages to the FreeBSD platform. It currently works on Win32, Solaris and Linux, and we have customer who'd like to see it run on FreeBSD. So, I've downloaded an built a version of the jdk from your installation instructions. I believe that I have followed the instructions to a "t". However the java compiler is choking on the following code segment private final int m_maxValuesPerName; The compiler is complaining about: > Blank final variable 'm_maxValuesPerName' may not have been initialized. It must be assigned a value in an initializer, or in every constructor. > Even though the constructor assigns a value to the final variable. I've tried adding a default constructor but that didn't fix the problem. The only solution so far has been to remove the "final" keyword from the declaration. Have you heard of this issue? Is there a solution? Todd Enersen --------------1EED3C64C602FEB08BD11F3B Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello,

I'm trying to port one of our software packages to the FreeBSD platform. It currently works on Win32, Solaris and Linux, and we have customer who'd like to see it run on FreeBSD.

So, I've downloaded an built a version of the jdk from your installation instructions. I believe that I have followed the instructions to a "t".  However the java compiler is choking on the following code segment

private final int m_maxValuesPerName;

The compiler is complaining about:

Blank final variable 'm_maxValuesPerName' may not have been initialized. It must  be assigned a value in an initializer, or in every constructor.


Even though the constructor assigns a value to the final variable.

I've tried adding a default constructor but that didn't fix the problem.

The only solution so far has been to remove the "final" keyword from the declaration.

Have you heard of this issue?  Is there a solution?

Todd Enersen
 
  --------------1EED3C64C602FEB08BD11F3B-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message