Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2001 12:04:19 -0800
From:      Todd Enersen <tee@fireclick.com>
To:        freebsd-java@freebsd.org
Subject:   possible bug in port of javac
Message-ID:  <3ABA5AC3.CA8F09DD@fireclick.com>

next in thread | raw e-mail | index | archive | help

--------------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

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello,
<p>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.
<p>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".&nbsp;
However the java compiler is choking on the following code segment
<p><b>private final int m_maxValuesPerName;</b>
<p>The compiler is complaining about:
<blockquote TYPE=CITE>
<pre>Blank final variable 'm_maxValuesPerName' may not have been initialized. It must&nbsp; be assigned a value in an initializer, or in every constructor.</pre>
</blockquote>

<p><br>Even though the constructor assigns a value to the final variable.
<p>I've tried adding a default constructor but that didn't fix the problem.
<p>The only solution so far has been to remove the "final" keyword from
the declaration.
<p>Have you heard of this issue?&nbsp; Is there a solution?
<p>Todd Enersen
<br>&nbsp;
<br>&nbsp;</html>

--------------1EED3C64C602FEB08BD11F3B--


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ABA5AC3.CA8F09DD>