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
[-- Attachment #1 --] 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 [-- Attachment #2 --] <!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". 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 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? Is there a solution? <p>Todd Enersen <br> <br> </html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ABA5AC3.CA8F09DD>
