@@ -57,9 +57,17 @@ local-install-plugins: build-plugins
5757touch$(BUILD_WORKSPACE ) /artifacts.xml
5858$(ECLIPSE_AUTO ) -initialize
5959
60+ # Work around https://bugs.eclipse.org/bugs/show_bug.cgi?id=465693 (actually a JDK bug)
61+ # Otherwise the net.sf.j2s.java.core build wil segfault about half of the time.
62+ # Annoyingly, the segfault causes java to exit 0; I was unable to figure out why.
63+ # So we add some extra checks, testing for the absence of crash logs.
64+ BADMETHOD1 = org/eclipse/jdt/internal/compiler/parser/TypeConverter.decodeType
65+ WORKAROUND1 = -vmargs -XX:CompileCommand=exclude,$(BADMETHOD1 )
6066build-libs : local-install-plugins
67+ test ! -f* err* .log
6168set -e; for i in $( CORE_J2SLIB) ; do \
62- $(ECLIPSE_J2S ) -cmd build -path$$ PWD/sources/$$ i; \
69+ $(ECLIPSE_J2S ) -cmd build -path$$ PWD/sources/$$ i$(WORKAROUND1 ) ; \
70+ test ! -f* err* .log; \
6371done
6472mkdir -p sources/net.sf.j2s.lib/bin sources/net.sf.j2s.lib/j2slib
6573cd sources/net.sf.j2s.lib/bin&& jar xf ../library.jar