Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405057 - dev-java/stringtemplate-3.2.1 fails tests with java 7
Summary: dev-java/stringtemplate-3.2.1 fails tests with java 7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 417895
Blocks: 483018
  Show dependency tree
 
Reported: 2012-02-20 15:46 UTC by Patrick Lauer
Modified: 2016-01-14 22:42 UTC (History)
0 users

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


Attachments
emerge =dev-java/stringtemplate-3.2.1 (emerge stringtemplate,59.65 KB, text/plain)
2015-08-31 09:07 UTC, charles17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2012-02-20 15:46:59 UTC
>>> Source compiled.
warning: [options] bootstrap class path not set in conjunction with -source 1.5
Note: test/org/antlr/stringtemplate/test/TestStringTemplate.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
JUnit version 4.10
.................................................................................E..........................................................................................................................................................................................................................................
Time: 0.478
There was 1 failure:
1) testNoGroupLoader(org.antlr.stringtemplate.test.TestStringTemplate)
junit.framework.ComparisonFailure: expected:<[no group loader registered]> but was:<[]>
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.antlr.stringtemplate.test.TestStringTemplate.testNoGroupLoader(TestStringTemplate.java:107)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:243)
        at junit.framework.TestSuite.run(TestSuite.java:238)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:24)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
        at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
        at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
        at org.junit.runner.JUnitCore.main(JUnitCore.java:45)

FAILURES!!!
Tests run: 315,  Failures: 1

 * ERROR: dev-java/stringtemplate-3.2.1 failed (test phase):
 *   Running junit failed


Portage 2.1.10.46 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r1-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.1
Timestamp of tree: Unknown
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gcj gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly objc openmp pam pcre pppd readline session sse sse2 ssl sysfs tcpd unicode xorg 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2012-05-06 10:21:06 UTC
Works fine with java 6, fails with java 7.
Comment 2 Mike Limansky 2012-12-26 20:22:05 UTC
Actually stringtemplate-3x is little bit outdated (see bug 417895). The latest version is 3.2.1 released on September 22, 2009. Possible, java7 users should use stringtemplate-4x.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-09-03 20:34:49 UTC
(In reply to Mike Limansky from comment #2)
> Possible, java7 users should use stringtemplate-4x.

We'll see, but bug #417895 comment #1 explains that they are not compatible.
Comment 4 Mike Limansky 2013-09-16 20:56:27 UTC
(In reply to Tom Wijsman (TomWij) from comment #3)
> (In reply to Mike Limansky from comment #2)
> > Possible, java7 users should use stringtemplate-4x.
> 
> We'll see, but bug #417895 comment #1 explains that they are not compatible.

Yes, it was my comment. But it looks like stringtemplate-3.x is unmaintained. So, it's upstream issue which possible will not be resolved. Also, it looks like there are no packages depends on stringtemplate. So, it's bit strange to block java7 stabilization because of this bug. IMHO, the only thing required here is to set DEPENDS on <java7.
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-09-16 21:24:27 UTC
(In reply to Mike Limansky from comment #4)
> So,
> it's bit strange to block java7 stabilization because of this bug. IMHO, the
> only thing required here is to set DEPENDS on <java7.

There are already such versions stable, please note this blocks <java7 removal.
Comment 6 James Le Cuirot gentoo-dev 2015-07-29 23:15:27 UTC
It's not true that nothing depends on stringtemplate. The most notable is antlr. antlr-4 uses stringtemplate-4 and antlr-3 uses stringtemplate-3. I would therefore say drop stringtemplate-3 but antlr-4 requires antlr-3 to build and includes it in the final result. Confused yet?

I need to look at antlr anyway because antlr-3 doesn't build with Java 8 and we haven't yet provided a fully working antlr-4 solution.
Comment 7 charles17 2015-08-31 09:07:00 UTC
Created attachment 410678 [details]
emerge =dev-java/stringtemplate-3.2.1

(In reply to Ralph Sennhauser from comment #1)
> Works fine with java 6, fails with java 7.

And does fine with =dev-java/icedtea-3.0.0_pre04-r1::java
Comment 8 James Le Cuirot gentoo-dev 2015-08-31 09:11:57 UTC
(In reply to charles17 from comment #7)
> And does fine with =dev-java/icedtea-3.0.0_pre04-r1::java

That is interesting but we can't rule out Java 7 yet. antlr has almost bubbled to the top of my list now.
Comment 9 James Le Cuirot gentoo-dev 2015-09-16 20:51:42 UTC
So here's a strange thing. I've been revamping the entire antlr/stringtemplate situation and trying to resolve any remaining issues like this one. Both in the original 3.2.1 and my local rewrite, the above test failure occurs on icedtea-bin-6, icedtea-bin-7, and oracle-jdk-bin-1.8. The latter also fails two other tests, whereby the order of some result is reversed. I don't have icedtea-3 to hand at the moment. I can't really explain this yet but I'll continue investigating.
Comment 10 James Le Cuirot gentoo-dev 2015-09-16 21:25:33 UTC
Okay, the tests were written for junit 3 so if I use that instead of junit 4, it passes under 7, only has two failures under 8, but still fails the same way under 6. Seriously, WTF?
Comment 11 James Le Cuirot gentoo-dev 2015-09-16 21:34:03 UTC
This appears to be a race condition. At least on 6 and 8, I've seen it randomly pass and fail. I've yet to see 7 fail. Race conditions suck.
Comment 12 James Le Cuirot gentoo-dev 2015-09-18 21:13:11 UTC
Sorted!

https://github.com/antlr/stringtemplate3/pull/3

I'll include this patch in my round of improvements.
Comment 13 James Le Cuirot gentoo-dev 2015-12-04 23:02:35 UTC
Dealt with in 3.2.1-r1. I'll close when stable.
Comment 14 James Le Cuirot gentoo-dev 2016-01-14 22:42:17 UTC
Now stable.