public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
From: Anthony Green <green@redhat.com>
To: gbenson@redhat.com, rhug-rhats@sources.redhat.com, java@gcc.gnu.org
Subject: Tomcat and java.version
Date: Fri, 09 Apr 2004 17:20:00 -0000	[thread overview]
Message-ID: <1081531170.4634.56.camel@escape> (raw)

gcj's java.version system property currently mirrors the GCC release
version.  This can be surprising to some software that examines
java.version.  In some cases it causes fatal errors.  For instance, the
jakarta commons-lang package tries to convert java.version to a floating
point number, but values like "3.5-tree-ssa" really mess it up.

Below is a patch to /etc/init.d/tomcat to work around the problem.  This
was necessary in order use various jsp tag libraries with gcj.

But this raises the question of whether or not we're doing ourselves
any favours by making java.version == the GCC version.  Should we really
be using 1.2, 1.4, etc..?

AG



*** /etc/init.d/tomcat~	2003-11-12 03:48:16.000000000 -0800
--- /etc/init.d/tomcat	2004-04-09 09:47:29.000000000 -0700
***************
*** 141,147 ****
          [ "${BOOTUP:-}" = "verbose" -a -z "$LSB" ] && echo -n " $prog"
  
  	# And start it up.
! 	$nice initlog $INITLOG_ARGS -c "$cmd"
  	RETVAL=$?
  	if [ $RETVAL = 0 ]; then
  	    success $"$prog startup"
--- 141,147 ----
          [ "${BOOTUP:-}" = "verbose" -a -z "$LSB" ] && echo -n " $prog"
  
  	# And start it up.
! 	GCJ_PROPERTIES="java.version=1.2" $nice initlog $INITLOG_ARGS -c "$cmd"
  	RETVAL=$?
  	if [ $RETVAL = 0 ]; then
  	    success $"$prog startup"


-- 
Anthony Green <green@redhat.com>
Red Hat, Inc.

             reply	other threads:[~2004-04-09 17:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-09 17:20 Anthony Green [this message]
2004-04-09 17:30 ` Andrew Pinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1081531170.4634.56.camel@escape \
    --to=green@redhat.com \
    --cc=gbenson@redhat.com \
    --cc=java@gcc.gnu.org \
    --cc=rhug-rhats@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).