From owner-freebsd-java Sun Mar 18 12:10:11 2001 Delivered-To: freebsd-java@freebsd.org Received: from tounes.gw.tn (tounes.gw.tn [193.95.50.118]) by hub.freebsd.org (Postfix) with ESMTP id 9387037B719 for ; Sun, 18 Mar 2001 12:10:04 -0800 (PST) (envelope-from famille.daoud@planet.tn) Received: from tounes.ati.tn (tounes-22.ati.tn [193.95.66.22]) by tounes.tngw.tn (8.9.3/8.8.8) with ESMTP id VAA11200 for ; Sun, 18 Mar 2001 21:07:14 -0100 (GMT) Received: from ghassen ([193.95.109.126]) by mail.planet.tn (8.11.0/8.11.0) with SMTP id f2IMFJo22514 for ; Sun, 18 Mar 2001 21:15:20 -0100 (GMT) Message-ID: <000801c0afe7$f9b70040$7e6d5fc1@ghassen> From: "hajer daoud" To: Date: Sun, 18 Mar 2001 21:12:55 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C0AFF0.3359AA20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C0AFF0.3359AA20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello How can i make an excutable with java Thanks ------=_NextPart_000_0005_01C0AFF0.3359AA20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello
 
How can i make an excutable with = java
 
Thanks
------=_NextPart_000_0005_01C0AFF0.3359AA20-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Mar 18 23:25: 7 2001 Delivered-To: freebsd-java@freebsd.org Received: from sight.muraoka.info.waseda.ac.jp (sight.muraoka.info.waseda.ac.jp [133.9.68.48]) by hub.freebsd.org (Postfix) with ESMTP id 767F737B719 for ; Sun, 18 Mar 2001 23:25:04 -0800 (PST) (envelope-from shudoh@muraoka.info.waseda.ac.jp) Received: from localhost (IDENT:shudoh@localhost [127.0.0.1]) by sight.muraoka.info.waseda.ac.jp (8.11.0/3.7W) with ESMTP id f2J7PeY06048; Mon, 19 Mar 2001 16:25:40 +0900 Date: Mon, 19 Mar 2001 16:25:40 +0900 (JST) Message-Id: <20010319.162540.596519540.shudoh@muraoka.info.waseda.ac.jp> To: ari@suutari.iki.fi Cc: freebsd-java@FreeBSD.ORG Subject: Re: Jdk 1.2.2-beta and shujit problem From: shudoh@muraoka.info.waseda.ac.jp In-Reply-To: <056301c0ac8a$1900c8c0$0e05a8c0@coffee> References: <056301c0ac8a$1900c8c0$0e05a8c0@coffee> X-Mailer: Mew version 1.95b43 on XEmacs 21.1 (Channel Islands) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Ari, Thanks for reporting. I have fixed the problem and released the 0.7.1 version of shuJIT. I'd appreciate if you try the new version. > Does anyone tried newest shujit version (0.7) with native jdk1.2.2 -beta ? > I have been trying to run Apache JServ 1.1.2 with it but things crash > at startup like this: I could reproduce your problem with the ExtendedProperties class of Apache JServ. As you suggested, the bug is implicated in exception handling with method inlining. > shuJIT for Sun Classic VM/x86 by Kazuyuki Shudo > ApacheJServ/1.1.2 > Exception in thread "main" java.lang.NullPointerException > at > org.apache.java.util.ExtendedProperties.load(ExtendedProperties.java, > Compiled Code) > If I run without shujit or set JAVA_COMPILER_OPT="inlinedepth=0" > everything works OK (this is FreeBSD 4.x-STABLE). Kazuyuki SHUDO Happy Hacking! Muraoka Laboratory, Waseda University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 19 0:13:51 2001 Delivered-To: freebsd-java@freebsd.org Received: from osku.suutari.iki.fi (osku.syncrontech.com [213.28.98.4]) by hub.freebsd.org (Postfix) with ESMTP id 82E6B37B71B for ; Mon, 19 Mar 2001 00:13:47 -0800 (PST) (envelope-from ari@suutari.iki.fi) Received: from coffee (adsl-nat.syncrontech.com [213.28.98.3]) by osku.suutari.iki.fi (8.9.3/8.9.3) with SMTP id KAA63819; Mon, 19 Mar 2001 10:13:42 +0200 (EET) (envelope-from ari@suutari.iki.fi) Message-ID: <001b01c0b04c$6cac7b20$0e05a8c0@coffee> From: "Ari Suutari" To: Cc: References: <056301c0ac8a$1900c8c0$0e05a8c0@coffee> <20010319.162540.596519540.shudoh@muraoka.info.waseda.ac.jp> Subject: Re: Jdk 1.2.2-beta and shujit problem Date: Mon, 19 Mar 2001 10:13:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Just tried 0.7.1, works without problems. Thanks, Ari S. ----- Original Message ----- From: To: Cc: Sent: Monday, March 19, 2001 9:25 AM Subject: Re: Jdk 1.2.2-beta and shujit problem > Hi Ari, > > Thanks for reporting. > I have fixed the problem and > released the 0.7.1 version of shuJIT. > I'd appreciate if you try the new version. > > > Does anyone tried newest shujit version (0.7) with native jdk1.2.2 -beta ? > > I have been trying to run Apache JServ 1.1.2 with it but things crash > > at startup like this: > > I could reproduce your problem with the > ExtendedProperties class of Apache JServ. > As you suggested, the bug is implicated in > exception handling with method inlining. > > > > shuJIT for Sun Classic VM/x86 by Kazuyuki Shudo > > ApacheJServ/1.1.2 > > Exception in thread "main" java.lang.NullPointerException > > at > > org.apache.java.util.ExtendedProperties.load(ExtendedProperties.java, > > Compiled Code) > > > If I run without shujit or set JAVA_COMPILER_OPT="inlinedepth=0" > > everything works OK (this is FreeBSD 4.x-STABLE). > > > Kazuyuki SHUDO Happy Hacking! > Muraoka Laboratory, Waseda University > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 19 0:40: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from matavnet.hu (mail.matavnet.hu [195.228.240.10]) by hub.freebsd.org (Postfix) with SMTP id 6B16C37B719 for ; Mon, 19 Mar 2001 00:40:00 -0800 (PST) (envelope-from kuti@cetelem.hu) Received: (qmail 11697 invoked from network); 19 Mar 2001 09:39:58 +0100 Received: from mail.cetelem.hu (HELO cet002.cetelem.hu) (195.228.218.103) by mail.matavnet.hu with SMTP; 19 Mar 2001 09:39:58 +0100 Received: from server.cetelem.hu (unverified) by cet002.cetelem.hu (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Mon, 19 Mar 2001 09:40:11 +0100 Received: from cetelem.hu (192.9.210.105 [192.9.210.105]) by server.cetelem.hu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id GDCGXR50; Mon, 19 Mar 2001 09:27:03 +0100 Message-ID: <3AB5C6D0.A8D128FA@cetelem.hu> Date: Mon, 19 Mar 2001 09:44:00 +0100 From: Zsolt Kuti X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Re: WOW! References: <3AB0FE0D.5AB2845A@parabon.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Brian J. Sletten" wrote: Hi! Just some points to this good news. > I just downloaded JavaWebStart and it works beautifully under >FreeBSD w/ Linux emulation (4.3 BETA). With 4.1 also. > Note, this will probably only work with the Linux communicator. I use it with the native ;) >I modded the install script to point to /compat/linux/bin/bash; >everything else worked out of the box. There are a page of >applications to download too. I changed it to ksh then hand-tuned the jws config file, as the install made some mess in it. It was easy to figure out that, but I can't remember the details (some paths were incorrectly formed). I made jws to use our native jdk1.2.2 (not ceasing to thank enough for the porters :-), but you could use any available jre, of course. By adjusting your jnlp files you can control what jre jws will use for running a given application. Zsolt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 19 3:49:17 2001 Delivered-To: freebsd-java@freebsd.org Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by hub.freebsd.org (Postfix) with ESMTP id 321E537B719 for ; Mon, 19 Mar 2001 03:49:14 -0800 (PST) (envelope-from K.J.Koster@kpn.com) Received: by l04.research.kpn.com with Internet Mail Service (5.5.2653.19) id ; Mon, 19 Mar 2001 12:49:13 +0100 Message-ID: <59063B5B4D98D311BC0D0001FA7E452205FD9A75@l04.research.kpn.com> From: "Koster, K.J." To: 'hajer daoud' Cc: freebsd-java@FreeBSD.ORG Subject: RE: Date: Mon, 19 Mar 2001 12:49:11 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > > How can i make an excutable with java > Umm. You don't, because executables are inherently platform dependent. If you don't like to type command line, use shell scripts and batch files to make it more friendly. If you're looking for a Java to native compiler, do a websearch for Java to C or C++ compilers. I doubt they're very useful, because I think they won't support dynamic code loading. That is arguably one of the more useful features of Java. Kees Jan PS. It is considered bad form to post HTML to a public mailing list. ================================================ You are only young once, but you can stay immature all your life. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 19 6:20: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from crdras.crd.ge.COM (crdras.crd.GE.COM [192.35.44.7]) by hub.freebsd.org (Postfix) with ESMTP id 1CB5137B719 for ; Mon, 19 Mar 2001 06:19:59 -0800 (PST) (envelope-from lapinski@crd.ge.com) Received: from crdras.crd.ge.COM (localhost [127.0.0.1]) by crdras.crd.ge.COM (18xxx/8.9.3/8.9.3) with ESMTP id JAA06291 for ; Mon, 19 Mar 2001 09:19:57 -0500 (EST) Received: from crdns.crd.ge.com (crdns [3.1.7.107]) by crdras.crd.ge.COM (25/8.9.3/8.9.3) with ESMTP id JAA06281; Mon, 19 Mar 2001 09:19:52 -0500 (EST) Received: from exc01crdge.crd.ge.com (exc01crdge.crd.ge.com [3.1.116.47]) by crdns.crd.ge.com (8.9.3/8.9.3) with ESMTP id JAA14071; Mon, 19 Mar 2001 09:20:02 -0500 (EST) Received: by exc01crdge.crd.ge.com with Internet Mail Service (5.5.2653.19) id ; Mon, 19 Mar 2001 09:19:51 -0500 Message-ID: From: "Lapinski, Michael (CRD)" To: "'hajer daoud'" , freebsd-java@FreeBSD.ORG Subject: RE: Date: Mon, 19 Mar 2001 09:19:50 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0B07F.A8F5CC70" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0B07F.A8F5CC70 Content-Type: text/plain; charset="iso-8859-1" Maybe the sun mailing lists are a better forum for straight java questions =) http://java.sun.com has lists for all levels of questions and help. -mtl -----Original Message----- From: hajer daoud [mailto:famille.daoud@planet.tn] Sent: Sunday, March 18, 2001 3:13 PM To: freebsd-java@FreeBSD.ORG Subject: Hello How can i make an excutable with java Thanks ------_=_NextPart_001_01C0B07F.A8F5CC70 Content-Type: text/html; charset="iso-8859-1"
Maybe the sun mailing lists are a better forum for straight java questions =)
 
http://java.sun.com has lists for all levels of questions and help.
-mtl
-----Original Message-----
From: hajer daoud [mailto:famille.daoud@planet.tn]
Sent: Sunday, March 18, 2001 3:13 PM
To: freebsd-java@FreeBSD.ORG
Subject:

Hello
 
How can i make an excutable with java
 
Thanks
------_=_NextPart_001_01C0B07F.A8F5CC70-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message 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 From owner-freebsd-java Thu Mar 22 12:26:32 2001 Delivered-To: freebsd-java@freebsd.org Received: from exch01.projectseneca.com (w186.z208036141.was-dc.dsl.cnc.net [208.36.141.186]) by hub.freebsd.org (Postfix) with ESMTP id 4AE9737B71B for ; Thu, 22 Mar 2001 12:26:29 -0800 (PST) (envelope-from brian@parabon.com) Received: from parabon.com (limestone.projectseneca.com [192.168.0.105]) by exch01.projectseneca.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id G4CCTNWH; Thu, 22 Mar 2001 15:26:26 -0500 Message-ID: <3ABA5FF3.2E2063AF@parabon.com> Date: Thu, 22 Mar 2001 15:26:28 -0500 From: "Brian J. Sletten" Organization: Parabon Computation, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Todd Enersen Cc: freebsd-java@freebsd.org Subject: Re: possible bug in port of javac References: <3ABA5AC3.CA8F09DD@fireclick.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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. Are you using the same version of the JDK on every platform? I'm using the Linux version of JDK1.3 under FreeBSD and it complains the same way. I'd say it is more likely to do with some versions of Java allowing it and some not, rather than something FreeBSD-specific. > > 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. I assume you mean "I've tried adding a default constructor and assigned the value in it". I did the same thing and the aforementioned error went away. > The only solution so far has been to remove the "final" keyword from the declaration. I'm assuming that you are trying to assign this value from a property or something. Do you need it as a final instance variable? If the same value is going to be valid for every class, try something like: public class A { private static final int m_maxValuesPerName; static { m_maxValuesPerName = Integer.getInteger( "foo.maxValuesPerName", 5 ).intValue(); } } Or even the more succinct: public class A { private static final int m_maxValuesPerName = Integer.getInteger( "foo.maxValuesPerName", 5 ).intValue(); } -- Where you stand depends on where you sit. -- Anonymous To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 22 12:29:13 2001 Delivered-To: freebsd-java@freebsd.org Received: from exch01.projectseneca.com (w186.z208036141.was-dc.dsl.cnc.net [208.36.141.186]) by hub.freebsd.org (Postfix) with ESMTP id B873637B71F for ; Thu, 22 Mar 2001 12:29:10 -0800 (PST) (envelope-from brian@parabon.com) Received: from parabon.com (limestone.projectseneca.com [192.168.0.105]) by exch01.projectseneca.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id G4CCTNW3; Thu, 22 Mar 2001 15:29:08 -0500 Message-ID: <3ABA6095.E89C78EC@parabon.com> Date: Thu, 22 Mar 2001 15:29:09 -0500 From: "Brian J. Sletten" Organization: Parabon Computation, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Todd Enersen Cc: freebsd-java@freebsd.org Subject: Re: possible bug in port of javac References: <3ABA5AC3.CA8F09DD@fireclick.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I *MEANT*: I'm assuming that you are trying to assign this value from a property or something. Do you need it as a final instance variable? If the same value is going to be valid for every *INSTANCE*, try something like: public class A { private static final int m_maxValuesPerName = Integer.getInteger( "foo.maxValuesPerName", 5 ).intValue(); } Sorry. -- I don't want to achieve immortality through my work. I want to achieve it through not dying. -- Woody Allen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 22 13:45:21 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id A891137B71B for ; Thu, 22 Mar 2001 13:45:18 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (yogotech.nokia.com [4.22.66.156]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id OAA28211; Thu, 22 Mar 2001 14:45:16 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id OAA29191; Thu, 22 Mar 2001 14:45:12 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15034.29287.514974.19662@nomad.yogotech.com> Date: Thu, 22 Mar 2001 14:45:11 -0700 (MST) To: Todd Enersen Cc: freebsd-java@FreeBSD.ORG Subject: Re: possible bug in port of javac In-Reply-To: <3ABA5AC3.CA8F09DD@fireclick.com> References: <3ABA5AC3.CA8F09DD@fireclick.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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. Does it compile with the same version of the JDK on Win32, Solaris, and Linux? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 22 18:34: 2 2001 Delivered-To: freebsd-java@freebsd.org Received: from veldy.net (w028.z064001117.msp-mn.dsl.cnc.net [64.1.117.28]) by hub.freebsd.org (Postfix) with ESMTP id C183E37B71B for ; Thu, 22 Mar 2001 18:33:48 -0800 (PST) (envelope-from veldy@veldy.net) Received: from cascade (cascade.veldy.net [64.1.117.29]) by veldy.net (Postfix) with SMTP id ABDD6BA33; Thu, 22 Mar 2001 20:33:01 -0600 (CST) Message-ID: <005d01c0b341$5cedac20$1d750140@cascade> From: "Thomas T. Veldhouse" To: "Todd Enersen" Cc: References: <3ABA5AC3.CA8F09DD@fireclick.com> Subject: Re: possible bug in port of javac Date: Thu, 22 Mar 2001 20:31:27 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_005A_01C0B30F.12363E40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_005A_01C0B30F.12363E40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable When you declare something final, aren't you supposed to supply an = initializer? I believe this is analgous to const int m_maxValuesPerName = =3D 10 in C++. private final int m_maxValuesPerName =3D 10;=20 I believe this is analgous to const int m_maxValuesPerName =3D 10; in = C++. Tom Veldhouse veldy@veldy.net ----- Original Message -----=20 From: Todd Enersen=20 To: freebsd-java@freebsd.org=20 Sent: Thursday, March 22, 2001 2:04 PM Subject: possible bug in port of javac Hello,=20 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.=20 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=20 private final int m_maxValuesPerName;=20 The compiler is complaining about:=20 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.=20 I've tried adding a default constructor but that didn't fix the = problem.=20 The only solution so far has been to remove the "final" keyword from = the declaration.=20 Have you heard of this issue? Is there a solution?=20 Todd Enersen=20 =20 =20 ------=_NextPart_000_005A_01C0B30F.12363E40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

When you declare something final, = aren't you=20 supposed to supply an initializer? I believe this is analgous to const = int=20 m_maxValuesPerName =3D 10 in C++.
 
private final int m_maxValuesPerName =3D 10; =
 
I believe this is analgous to = const int=20 m_maxValuesPerName =3D 10; in C++.
 
Tom Veldhouse
veldy@veldy.net
----- Original Message -----
From:=20 Todd = Enersen=20
Sent: Thursday, March 22, 2001 = 2:04=20 PM
Subject: possible bug in port = of=20 javac

Hello,=20

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

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

private final int m_maxValuesPerName;=20

The compiler is complaining about:=20

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.=20

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

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

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

Todd Enersen
 
 

------=_NextPart_000_005A_01C0B30F.12363E40-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 22 19:58: 1 2001 Delivered-To: freebsd-java@freebsd.org Received: from www.kpi.com.au (www.kpi.com.au [203.39.132.210]) by hub.freebsd.org (Postfix) with ESMTP id 2E6CA37B71A for ; Thu, 22 Mar 2001 19:57:55 -0800 (PST) (envelope-from shevlandj@kpi.com.au) Received: from BLACKHAWK (pA62.hbt.southcom.com.au [203.60.23.99]) by www.kpi.com.au (8.9.3/8.9.3) with SMTP id OAA64235; Fri, 23 Mar 2001 14:57:08 +1100 (EST) (envelope-from shevlandj@kpi.com.au) From: "Joe Shevland" To: "Thomas T. Veldhouse" , "Todd Enersen" Cc: Subject: RE: possible bug in port of javac Date: Fri, 23 Mar 2001 15:00:06 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <005d01c0b341$5cedac20$1d750140@cascade> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This struck me as odd too, but after reading the postings I compiled a = small test on Windows JDK 1.3 that seemed to allow the initialisation to = occur in the constructor. Subclasses still won't be able to access/alter = the variable by overriding the constructor, but it kind of goes against = the meaning of 'final' to me. I wonder did Todd add the initialisation in _every_ constructor? e.g. public class test { private final int someint; public test() { someint =3D 5; } } was allowed which surprised me. The FreeBSD JDK 1.1.8 allowed it also. Regards, Joe -----Original Message----- From: owner-freebsd-java@FreeBSD.ORG = [mailto:owner-freebsd-java@FreeBSD.ORG]On Behalf Of Thomas T. Veldhouse Sent: Friday, March 23, 2001 1:31 PM To: Todd Enersen Cc: freebsd-java@FreeBSD.ORG Subject: Re: possible bug in port of javac When you declare something final, aren't you supposed to supply an = initializer? I believe this is analgous to const int m_maxValuesPerName = =3D 10 in C++. =20 private final int m_maxValuesPerName =3D 10;=20 I believe this is analgous to const int m_maxValuesPerName =3D 10; in = C++. =20 Tom Veldhouse veldy@veldy.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 23 0:53:44 2001 Delivered-To: freebsd-java@freebsd.org Received: from bom2.vsnl.net.in (bom2.vsnl.net.in [202.54.1.1]) by hub.freebsd.org (Postfix) with ESMTP id AEA5737B720; Fri, 23 Mar 2001 00:52:40 -0800 (PST) (envelope-from toner1@asianwired.net) Received: from 202.54.1.1 (rsvp-208-187-151-175.ac05.dlls.eli.net [208.187.151.175]) by bom2.vsnl.net.in (Postfix) with SMTP id 9B0C32B28B; Fri, 23 Mar 2001 14:20:28 +0530 (GMT+5:30) To: customer@republic.com Date: Thu, 22 Mar 01 03:22:20 EST From: toner1@asianwired.net Subject: toner supplies Message-Id: <20010323085039.9B0C32B28B@bom2.vsnl.net.in> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org PLEASE FORWARD TO THE PERSON RESPONSIBLE FOR PURCHASING YOUR LASER PRINTER SUPPLIES **** VORTEX SUPPLIES **** -SPECIALS OF THE DAY ON LASER TONER SUPPLIES AT DISCOUNT PRICES-- LASER PRINTER TONER CARTRIDGES COPIER AND FAX CARTRIDGES WE ARE -->THE<-- PLACE TO BUY YOUR TONER CARTRIDGES BECAUSE YOU SAVE UP TO 30% FROM OFFICE DEPOT'S, QUILL'S OR OFFICE MAX'S EVERY DAY LOW PRICES ORDER BY PHONE:1-888-288-9043 ORDER BY FAX: 1-888-977-1577 CUSTOMER SERVICE: 1-888-248-2015 E-MAIL REMOVAL LINE: 1-888-248-4930 UNIVERSITY AND/OR SCHOOL PURCHASE ORDERS WELCOME. (NO CREDIT APPROVAL REQUIRED) ALL OTHER PURCHASE ORDER REQUESTS REQUIRE CREDIT APPROVAL. PAY BY CHECK (C.O.D), CREDIT CARD OR PURCHASE ORDER (NET 30 DAYS). IF YOUR ORDER IS BY CREDIT CARD PLEASE LEAVE YOUR CREDIT CARD # PLUS EXPIRATION DATE. IF YOUR ORDER IS BY PURCHASE ORDER LEAVE YOUR SHIPPING/BILLING ADDRESSES AND YOUR P.O. NUMBER NO SHIPPING CHARGES FOR ORDERS $49 OR OVER ADD $4.75 FOR ORDERS UNDER $49. C.O.D. ORDERS ADD $4.5 TO SHIPPING CHARGES. FOR THOSE OF YOU WHO REQUIRE MORE INFORMATION ABOUT OUR COMPANY INCUDING FEDERAL TAX ID NUMBER, CLOSEST SHIPPING OR CORPORATE ADDRESS IN THE CONTINENTAL U.S. OR FOR CATALOG REQUESTS PLEASE CALL OUR CUSTOMER SERVICE LINE 1-888-248-2015 OUR NEW , LASER PRINTER TONER CARTRIDGE, PRICES ARE AS FOLLOWS: (PLEASE ORDER BY PAGE NUMBER AND/OR ITEM NUMBER) HEWLETT PACKARD: (ON PAGE 2) ITEM #1 LASERJET SERIES 4L,4P (74A)------------------------$44 ITEM #2 LASERJET SERIES 1100 (92A)-------------------------$44 ITEM #3 LASERJET SERIES 2 (95A)-------------------------------$39 ITEM #4 LASERJET SERIES 2P (75A)-----------------------------$54 ITEM #5 LASERJET SERIES 5P,6P,5MP, 6MP (3903A)--$44 ITEM #6 LASERJET SERIES 5SI, 5000 (29A)------------------$95 ITEM #7 LASERJET SERIES 2100 (96A)-------------------------$74 ITEM #8 LASERJET SERIES 8100 (82X)-----------------------$145 ITEM #9 LASERJET SERIES 5L/6L (3906A0------------------$35 ITEM #10 LASERJET SERIES 4V-------------------------------------$95 ITEM #11 LASERJET SERIES 4000 (27X)-------------------------$72 ITEM #12 LASERJET SERIES 3SI/4SI (91A)--------------------$54 ITEM #13 LASERJET SERIES 4, 4M, 5,5M-----------------------$49 HEWLETT PACKARD FAX (ON PAGE 2) ITEM #14 LASERFAX 500, 700 (FX1)----------$49 ITEM #15 LASERFAX 5000,7000 (FX2)------$54 ITEM #16 LASERFAX (FX3)------------------------$59 ITEM #17 LASERFAX (FX4)------------------------$54 LEXMARK/IBM (ON PAGE 3) OPTRA 4019, 4029 HIGH YIELD---------------$89 OPTRA R, 4039, 4049 HIGH YIELD---------$105 OPTRA E----------------------------------------------------$59 OPTRA N--------------------------------------------------$115 OPTRA S--------------------------------------------------$165 - EPSON (ON PAGE 4) ACTION LASER 7000,7500,8000,9000-------$105 ACTION LASER 1000,1500-------------------------$105 CANON PRINTERS (ON PAGE 5) PLEASE CALL FOR MODELS AND UPDATED PRICES FOR CANON PRINTER CARTRIDGES PANASONIC (0N PAGE 7) NEC SERIES 2 MODELS 90 AND 95----------$105 APPLE (0N PAGE 8) LASER WRITER PRO 600 or 16/600------------$49 LASER WRITER SELECT 300,320,360---------$74 LASER WRITER 300 AND 320----------------------$54 LASER WRITER NT, 2NT------------------------------$54 LASER WRITER 12/640--------------------------------$79 CANON FAX (ON PAGE 9) LASERCLASS 4000 (FX3)---------------------------$59 LASERCLASS 5000,6000,7000 (FX2)---------$54 LASERFAX 5000,7000 (FX2)----------------------$54 LASERFAX 8500,9000 (FX4)----------------------$54 CANON COPIERS (PAGE 10) PC 3, 6RE, 7 AND 11 (A30)---------------------$69 PC 300,320,700,720 and 760 (E-40)--------$89 IF YOUR CARTRIDGE IS NOT LISTED CALL CUSTOMER SERVICE AT 1-888-248-2015 90 DAY UNLIMITED WARRANTY INCLUDED ON ALL PRODUCTS. ALL TRADEMARKS AND BRAND NAMES LISTED ABOVE ARE PROPERTY OF THE RESPECTIVE HOLDERS AND USED FOR DESCRIPTIVE PURPOSES ONLY. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 23 6: 1:53 2001 Delivered-To: freebsd-java@freebsd.org Received: from exch01.projectseneca.com (w186.z208036141.was-dc.dsl.cnc.net [208.36.141.186]) by hub.freebsd.org (Postfix) with ESMTP id E433337B728 for ; Fri, 23 Mar 2001 06:01:49 -0800 (PST) (envelope-from brian@parabon.com) Received: from parabon.com (limestone.projectseneca.com [192.168.0.105]) by exch01.projectseneca.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id G4CCT32D; Fri, 23 Mar 2001 09:01:48 -0500 Message-ID: <3ABB574C.AD75BCA6@parabon.com> Date: Fri, 23 Mar 2001 09:01:48 -0500 From: "Brian J. Sletten" Organization: Parabon Computation, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Thomas T. Veldhouse" Cc: Todd Enersen , freebsd-java@freebsd.org Subject: Re: possible bug in port of javac References: <3ABA5AC3.CA8F09DD@fireclick.com> <005d01c0b341$5cedac20$1d750140@cascade> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > When you declare something final, aren't you supposed to supply an initializer? I believe > this is analgous to const int m_maxValuesPerName = 10 in C++. That is how it is usually used, but it needn't be initialized at that point. You might also initialize it either in a static block (if it is a final static) or in the constructors. The key is that it can only be assigned to once. -- Self-discovery is useless unless I discover I am somebody else. -- Dan Goodman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 23 6: 4:52 2001 Delivered-To: freebsd-java@freebsd.org Received: from firewall.ox.com (firewall.ox.com [129.77.1.1]) by hub.freebsd.org (Postfix) with ESMTP id 3EC1937B71A for ; Fri, 23 Mar 2001 06:04:48 -0800 (PST) (envelope-from rfurphy@ox.com) Received: from firewall.ox.com (root@localhost) by firewall.ox.com with ESMTP id JAA28701 for ; Fri, 23 Mar 2001 09:04:47 -0500 (EST) Received: from pur-sv-exchgw1.ny.ox.com (pur-sv-exchgw1.ny.ox.com [129.77.2.49]) by firewall.ox.com with ESMTP id JAA28697 for ; Fri, 23 Mar 2001 09:04:47 -0500 (EST) Received: from ox.com (rfurphy.ny.ox.com [129.77.2.97]) by pur-sv-exchgw1.ny.ox.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 17HPFYS6; Fri, 23 Mar 2001 09:04:47 -0500 Message-ID: <3ABB57F9.2090101@ox.com> Date: Fri, 23 Mar 2001 09:04:41 -0500 From: Rob Furphy User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-14smp i686; en-US; 0.8.1) Gecko/20010321 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: possible bug in port of javac Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Some documentation may clear up what is supposed to happen. I started start here: http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#35962 and found http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html#10931 this even describes what a 'blank final' variable is and "It is a compile-time error if a blank final class variable is not definitely assigned....." Some more examples: Using Joe Shevland's example class (and Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) public class test { private final int someint; public test() { someint = 5; } } This compiles without error (I think it should). However, if you make a change to thispublic class test { private static final int someint; public test() { someint = 5; } } this error pops out "Blank final variable 'someint' may not have been initialized. It must be assigned a value in an initializer, or in every constructor" Using the latest beta java for linux java version "1.3.1-beta" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15) Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode) I do not see the error in question but I get "test.java:3: cannot assign a value to final variable someint" when someint is static but no error when it is not. Rob F. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 23 11:27: 9 2001 Delivered-To: freebsd-java@freebsd.org Received: from cypherpunks.ai (cypherpunks.ai [209.88.68.47]) by hub.freebsd.org (Postfix) with ESMTP id 17EE137B719 for ; Fri, 23 Mar 2001 11:27:05 -0800 (PST) (envelope-from jeroen@vangelderen.org) Received: from vangelderen.org (grolsch.ai [209.88.68.214]) by cypherpunks.ai (Postfix) with ESMTP id 0B1BABE; Fri, 23 Mar 2001 15:27:02 -0400 (AST) Message-ID: <3ABBA386.EB08F648@vangelderen.org> Date: Fri, 23 Mar 2001 15:27:02 -0400 From: "Jeroen C. van Gelderen" X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Rob Furphy Cc: freebsd-java@freebsd.org Subject: Re: possible bug in port of javac References: <3ABB57F9.2090101@ox.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Rob Furphy wrote: > > Some documentation may clear up what is supposed to happen. > I started start here: > > http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#35962 > > and found > > http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html#10931 > > this even describes what a 'blank final' variable is and > > "It is a compile-time error if a blank final class variable is not > definitely assigned....." > > Some more examples: > > Using Joe Shevland's example class (and Solaris VM (build > Solaris_JDK_1.2.2_05a, native threads, sunwjit) > public class test { > private final int someint; > public test() { someint = 5; } > } > > This compiles without error (I think it should). However, if you make a > change to thispublic class test { > private static final int someint; > public test() { someint = 5; } > } > > this error pops out > "Blank final variable 'someint' may not have been initialized. It must > be assigned a value in an initializer, or in every constructor" That makes sense. someint is a final class variable and hence must can only be assigned with an immediate or from within a static{} block: public class Test { private static final int someInt; static { someInt = 5; } } or public class Test { private static final int someInt = 5; } Cheers, Jeroen -- Jeroen C. van Gelderen - jeroen@vangelderen.org "A government that robs Peter to pay Paul can always depend upon the support of Paul." -- George Bernard Shaw To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 23 11:37:43 2001 Delivered-To: freebsd-java@freebsd.org Received: from cypherpunks.ai (cypherpunks.ai [209.88.68.47]) by hub.freebsd.org (Postfix) with ESMTP id 2D43737B719 for ; Fri, 23 Mar 2001 11:37:37 -0800 (PST) (envelope-from jeroen@vangelderen.org) Received: from vangelderen.org (grolsch.ai [209.88.68.214]) by cypherpunks.ai (Postfix) with ESMTP id 4391FBE; Fri, 23 Mar 2001 15:37:35 -0400 (AST) Message-ID: <3ABBA5FF.A11E23EA@vangelderen.org> Date: Fri, 23 Mar 2001 15:37:35 -0400 From: "Jeroen C. van Gelderen" X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Todd Enersen Cc: freebsd-java@freebsd.org Subject: Re: possible bug in port of javac References: <3ABA5AC3.CA8F09DD@fireclick.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Todd, Todd Enersen wrote: > 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. This can be caused by a number of problems and since you didn't post the code in question it is hard to say what is at fault. Try and isolate the fault by compiling with the Jikes compiler or with the same version of javac on a different platform as suggested by others in this thread. If the problem doesn't manifest itself on the alternative compiler you have probably spotted a compiler bug. You will then have to produce a small test case demonstrating the problem and submit it to the compiler maintainers. It is not unlikely that your problem is caused by a compiler bug. Most compiler bugs I have seen manifest themselves when you use inner classes or static{} initilizers but Javasoft doesn't really have a track record of producing reliable code so I'd expect anything. (To be fair, Jikes 1.13 has some analysis bugs as well.) > 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. That is to be expected. > The only solution so far has been to remove the "final" keyword from > the declaration. That is rather ugly. > Have you heard of this issue? Is there a solution? You will have to try and pinpoint the problem or provide source code for us to analyze. Without more details we can only speculate. Cheers, Jeroen -- Jeroen C. van Gelderen - jeroen@vangelderen.org "A government that robs Peter to pay Paul can always depend upon the support of Paul." -- George Bernard Shaw To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 23 11:49:27 2001 Delivered-To: freebsd-java@freebsd.org Received: from fritz.cc.gt.atl.ga.us (fritz.cc.gt.atl.ga.us [199.77.128.120]) by hub.freebsd.org (Postfix) with ESMTP id B160237B71B for ; Fri, 23 Mar 2001 11:49:23 -0800 (PST) (envelope-from dagon@fritz.cc.gt.atl.ga.us) Received: (from dagon@localhost) by fritz.cc.gt.atl.ga.us (8.9.3/8.9.3) id PAA50156; Fri, 23 Mar 2001 15:15:56 -0500 (EST) (envelope-from dagon) Date: Fri, 23 Mar 2001 15:15:56 -0500 From: David Dagon To: "Thomas T. Veldhouse" Cc: Todd Enersen , freebsd-java@FreeBSD.ORG Subject: Re: possible bug in port of javac Message-ID: <20010323151555.B49813@fritz.cc.gt.atl.ga.us> References: <3ABA5AC3.CA8F09DD@fireclick.com> <005d01c0b341$5cedac20$1d750140@cascade> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <005d01c0b341$5cedac20$1d750140@cascade>; from veldy@veldy.net on Thu, Mar 22, 2001 at 08:31:27PM -0600 X-Echelon: RSA Crypto C4 Mossad CIA BXA Export Control Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Mar 22, 2001 at 08:31:27PM -0600, Thomas T. Veldhouse wrote: > When you declare something final, aren't you supposed to supply an > initializer? Java requires a value at the declaration. For so-called "blank final" variables, JLS s. 4.5.4, assignment comes in the instance call--the constructor. In the old days, JDK 1.1 had a bug where you could later change a final value. (This was fixed for Java2 generation compilers, IIRC, and was probably patched to JDK 1.1 generation compilers as well.) Since the observed behavior seems to interact with constructors, a small piece of demonstration code would be useful. > I believe this is analgous to const int m_maxValuesPerName = 10 in C++. I think so. Of course, differences arise when using references and not primitives. (Java acts as if every field in a const object reference were declared 'mutable', while C++ is the opposite, and requires const object fields to be declared mutable.) Anyone have a demonstration snippet involving constructor assignment of a blank final variable? -- David Dagon /"\ "When cryptography dagon@cc.gatech.edu \ / ASCII RIBBON CAMPAIGN is outlawed, bayl Collage(sic) o' Computing X AGAINST HTML MAIL bhgynjf jvyy unir Georgia Inst. o' Tech. / \ cevinpl." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 23 12:46:39 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 CBEA737B71B for ; Fri, 23 Mar 2001 12:46:29 -0800 (PST) (envelope-from tee@fireclick.com) Received: from toddtop (adsl-63-193-228-66.dsl.snfc21.pacbell.net [63.193.228.66]) by flame.fireclick.com (8.10.1/8.10.1) with SMTP id f2NKkNf12007; Fri, 23 Mar 2001 12:46:23 -0800 From: "Todd Enersen" To: "Jeroen C. van Gelderen" Cc: Subject: RE: possible bug in port of javac Date: Sat, 24 Mar 2001 12:46:13 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <3ABBA5FF.A11E23EA@vangelderen.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jeroen (and company): Thanks for all of your suggestions. The code segment in question compiles under other Jdk 1.2 plaforms, including Solaris (jdk 1.2.2_05), Win32, and Linux. It compiles with javac or jikes under all of these platforms. When I was porting to the FreeBSD platform, I originally tried using the jikes (version 1.12 that came as part of my 4.2 distribution). Unfortunately, it immediately threw up some errors which I later solved. As it turns out, this version of jikes doesn't like relative pathnames when given a explicit classpath. Fortunately, after reworking the classpath on the compiler invocation, our software now compiles with jikes under the FreeBSD platform. However the source still fails to compile with the javac that I have built. I'm working on developing a small test code segment. The ones I have built so far all compile smoothly, so I know it has to be some set of complex conditions, or perhaps the size of the class, that is causing the compiler to fail. I'll continue to try and get this issue resolved. There have been many questions as to why we use the private static final invocation. Infact, we use it over 100 places in our code mainly to introduce static final class specific constants that may need to change with different constructors. For example, in this instance we want to assign an integer a constant, but have that constant vary on a class instance basis, based on which constructor was called. I want to give thanks to all those who have written me back. This level of support was unexpected and very appreciated. Regards, Todd Enersen Fireclick -----Original Message----- From: gelderen@cypherpunks.ai [mailto:gelderen@cypherpunks.ai]On Behalf Of Jeroen C. van Gelderen Sent: Friday, March 23, 2001 11:38 AM To: Todd Enersen Cc: freebsd-java@freebsd.org Subject: Re: possible bug in port of javac Hi Todd, Todd Enersen wrote: > 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. This can be caused by a number of problems and since you didn't post the code in question it is hard to say what is at fault. Try and isolate the fault by compiling with the Jikes compiler or with the same version of javac on a different platform as suggested by others in this thread. If the problem doesn't manifest itself on the alternative compiler you have probably spotted a compiler bug. You will then have to produce a small test case demonstrating the problem and submit it to the compiler maintainers. It is not unlikely that your problem is caused by a compiler bug. Most compiler bugs I have seen manifest themselves when you use inner classes or static{} initilizers but Javasoft doesn't really have a track record of producing reliable code so I'd expect anything. (To be fair, Jikes 1.13 has some analysis bugs as well.) > 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. That is to be expected. > The only solution so far has been to remove the "final" keyword from > the declaration. That is rather ugly. > Have you heard of this issue? Is there a solution? You will have to try and pinpoint the problem or provide source code for us to analyze. Without more details we can only speculate. Cheers, Jeroen -- Jeroen C. van Gelderen - jeroen@vangelderen.org "A government that robs Peter to pay Paul can always depend upon the support of Paul." -- George Bernard Shaw To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message