replacing (not overriding) a core Java class with a custom one

A

Adam Monsen

Is it possible to inject or replace my own version of java.sql.Blob?

I'm using Sun's:

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)

Installed via "sudo apt-get install sun-java6-jdk" on Ubuntu 8.10.

I'm trying to compile this software project: http://mayfly.sf.net/
And am running into these errors: http://pastey.net/106904

The source for Mayfly includes JDBC 3 from libgcj, and this jar
includes java.sql.Blob, but the compiler appears to be ignoring this
class/jar. Any thoughts on what's going on here?

Thanks,
-Adam

here's another reference, for historical reasons:
http://thread.gmane.org/gmane.comp.db.mayfly.general/105
 
A

Arne Vajhøj

Adam said:
Is it possible to inject or replace my own version of java.sql.Blob?

I'm using Sun's:

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)

Installed via "sudo apt-get install sun-java6-jdk" on Ubuntu 8.10.

I'm trying to compile this software project: http://mayfly.sf.net/
And am running into these errors: http://pastey.net/106904

The source for Mayfly includes JDBC 3 from libgcj, and this jar
includes java.sql.Blob, but the compiler appears to be ignoring this
class/jar. Any thoughts on what's going on here?

That code "Mayfly" apparently does not build with Java 1.6.

(because of new methods added to various interfaces)

You need an older Java version.

Arne
 
L

Lew

Arne said:
That code "Mayfly" apparently does not build with Java 1.6.

(because of new methods added to various interfaces)

You need an older Java version.

It's a violation of Java compatibility and good sense to release a program
that substitutes for any of the 'java[x]' package classes. (Exception:
certified Java environments like IBM's.) Also, including anything from GCJ is
a mistake.

What interfaces got new methods?

You can control the boot class path with the 'java' command
'-Xbootclasspath:<directories and zip/jar files separated by : >' options.
The prefix version should let you plug in your own Blob implementation.

But don't.
 
A

Arne Vajhøj

Lew said:
Arne said:
That code "Mayfly" apparently does not build with Java 1.6.

(because of new methods added to various interfaces)

You need an older Java version.

It's a violation of Java compatibility and good sense to release a
program that substitutes for any of the 'java[x]' package classes.

It does not do that.
What interfaces got new methods?

Several of the interfaces in java.sql got new methods in 1.6.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top