sab39

... indistinguishable from magic
effing the ineffable since 1977
Japi Feet

Japi Feet

10/28/2006
Well, the Arrays bug is fixed and should be in tonight's Japi run, unless I messed up another fix for the "-p" flag. But I can't figure out what's up with DefaultTextUI. When I Japize it with the JDK on Windows it works fine, but with gcj on Ubuntu I get this with the latest cvs japitools:

sballard@tinian:~/japitest$ wget http://builder.classpath.org/dist/glibj-generics-latest.zip
[...]
sballard@tinian:~/japitest$ japize unzip as dtui packages glibj-generics-latest.zip =javax.swing.text
...

Processing package javax.swing.text,:=+++--+-++++++++-++++++ ++++--+++----+-+---+++-------+++-+-----------------+-+++--+++-++-
Failed to Japize javax.swing.text.DefaultTextUI: java.lang.NoClassDefFoundError: javax.swing.text.DefaultTextUI
java.lang.NoClassDefFoundError: javax.swing.text.DefaultTextUI
   at net.wuffies.japi.ClassFile.forName(ClassFile.java:1550)
   at net.wuffies.japi.Japize.getClassWrapper(Japize.java:1384)
   at net.wuffies.japi.Japize.japizeClass(Japize.java:715)
   at net.wuffies.japi.Japize.processPackage(Japize.java:503)
   at net.wuffies.japi.Japize.processRootSet(Japize.java:439)
   at net.wuffies.japi.Japize.doJapize(Japize.java:411)
   at net.wuffies.japi.Japize.main(Japize.java:310)
++++++--+-++-+-----+-++++++++--+--+++++++++++-+++ +++++-----++++++++-+-++++-+++++-+++++++++--++++--+-
sballard@tinian:~/japitest$ java -fullversion
java full version "gcj-1.4.2"

The fact that this works on the JDK suggests it's not a ClassFile bug as I originally thought. But I'm not sure what kind of bug it is. Does gcj have known issues in java.util.zip? And why would they trigger on this file only?
GCJ is strange
By Roman Kennke at 2006/10/31 02:43

Maybe the fact that this class is empty and unused shoots in the foot here? GCJ is strange in a couple of places. Maybe it works with a classpath-generics build with a different compiler?

Well...
By Stuart at 2006/10/31 20:00

Upgrading to edgy seems to have fixed it.

AFAIK since the untimely demise of gcjx there *is* only the one Free compiler that can build -generics, and that's ecj. But since the JDK could process the exact same zip file with no problems, I didn't think that could be it.

Anyway since it's fixed I'm not going to worry any further on the subject :)

Add a comment:
Subject:
Name:
Email:
Url:
Title: Don't enter anything here if you're a human.
CAPTCHA: Don't enter anything here if you're a human.
Comment: