Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181425 - Stable request for dev-java/castor-0.9.9.1-r2
Summary: Stable request for dev-java/castor-0.9.9.1-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL: http://overlays.gentoo.org/proj/java/...
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2007-06-09 15:25 UTC by Petteri Räty (RETIRED)
Modified: 2007-09-15 09:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2007-06-09 15:25:07 UTC
Please mark it stable so that we can get rid of jdbc2-postgresql at some point.

*castor-0.9.9.1-r2 (09 Jun 2007)

  09 Jun 2007; Petteri Räty <betelgeuse@gentoo.org>
  +castor-0.9.9.1-r2.ebuild:
  Drop the postgres use flag because the jdbc driver is only used at runtime
  and it's only one of many possible drivers.
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2007-06-14 00:28:35 UTC
x86 stable
Comment 2 Jonas Pedersen 2007-07-04 17:38:04 UTC
dev-java/castor-0.9.9.1-r2  USE="doc examples -source"

Some of the examples does not work. I have tried SourceGenerator example and test.sh is broken. After correcting it the JAVA code produced by castor does not compile. 


Before correctiion of test.sh
-----------------------------
jonas@asterix /usr/share/doc/castor-0.9.9.1-r2/examples/SourceGenerator $ sh test.sh
: command not found
test.sh: line 57: syntax error: unexpected end of file

Above is fixed by running dos2unix on the file. After that the classpath is set up incorrectly. If I correct the classpath I get below error. 

Using CLASSPATH: 
/etc/java-config-2/current-system-vm/lib/tools.jar
.
../../../dist/*.jar
/usr/share/castor-0.9/lib/castor.jar
/usr/share/xerces-2/lib/xercesImpl.jar
/usr/share/log4j/lib/log4j.jar
/usr/share/commons-logging/lib/commons-logging.jar
Castor classes
Generating classes

About to compile generated source code
test/Address.java:29: cyclic inheritance involving test.Address
public class Address extends Address 
       ^
test/AddressDescriptor.java:59: cannot find symbol
symbol  : method setExtendsWithoutFlatten(test.AddressDescriptor)
location: class test.AddressDescriptor
        setExtendsWithoutFlatten(new AddressDescriptor());
        ^
test/AddressDescriptor.java:89: cannot find symbol
symbol  : method getExtends()
location: class java.lang.Object
        return super.getExtends();
                    ^
test/AddressDescriptor.java:102: cannot find symbol
symbol  : method getIdentity()
location: class java.lang.Object
            return super.getIdentity();
                        ^
test/AddressDescriptor.java:151: incompatible types
found   : test.AddressDescriptor
required: org.exolab.castor.xml.TypeValidator
        return this;
               ^
Note: test/Invoice.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
Compiling test class
InvoiceTest.java:59: package test.business does not exist
import test.business.*;
^
InvoiceTest.java:83: cannot find symbol
symbol  : class MyInvoice
location: class InvoiceTest
	    MyInvoice invoice = null;
            ^
InvoiceTest.java:84: cannot find symbol
symbol  : variable MyInvoice
location: class InvoiceTest
	    invoice = MyInvoice.unmarshal(new FileReader("invoice1.xml"));
                      ^
./test/Address.java:29: cyclic inheritance involving test.Address
public class Address extends Address 
       ^
InvoiceTest.java:100: cannot find symbol
symbol  : class AddressElement
location: class InvoiceTest
        AddressElement address = shipTo.getCustomer().getAddressElement();
        ^
InvoiceTest.java:100: cannot find symbol
symbol  : method getAddressElement()
location: class test.Customer
        AddressElement address = shipTo.getCustomer().getAddressElement();
                                                   ^
InvoiceTest.java:121: cannot find symbol
symbol  : method getSpecialPrice()
location: class test.Item
                System.out.println("  Price:"+item[i].getSpecialPrice());
                                                  ^
7 errors
about to run the test
Exception in thread "main" java.lang.NoClassDefFoundError: InvoiceTest


Portage 2.1.2.7 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 27 Jun 2007 21:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O3 -msse3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=nocona -O3 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distcc distlocks metadata-transfer multilib-strict sandbox sfperms strict test"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.du.se/pub/os/gentoo http://trumpetti.atm.tut.fi/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ds.thn.htu.se/linux/gentoo"
LC_ALL="en_DK.utf8"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi aiglx alsa amd64 arts atk berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dga directfb dri dts dvd dvdr dvdread eds emboss encode fam fbcn ffmpeg firefox fortran ftp gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 hal iconv icq ieee1394 ipv6 isdnlog java jpeg kde libg++ lm_sensors mad midi mikmod mjpeg mozilla mp3 mpeg mplayer msn mudflap ncurses nls nptl nptlonly ogg oggvorbis opengl openmp pam pcre pda pdf perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl sse3 ssl tcpd test threads tiff truetype truetype-fonts type1-fonts unicode vorbis xcomposite xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Togge 2007-07-04 17:56:40 UTC
I just wanted to add that it compiles with atleast these jdks (castor not the examples):
   blackdown-jdk-1.4.2
   ibm-jdk-bin-1.4
   ibm-jdk-bin-1.5
   sun-jdk-1.5
Comment 4 Robert Buchholz (RETIRED) gentoo-dev 2007-09-15 09:44:24 UTC
amd64 stable. sorry for the delay.