This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

--bootclasspath overriding peer classfiles in a jar


Adam Megacz writes:
 > 
 > So part of my method-stripping stuff means that while you drop
 > unreachable methods, you don't always drop the calls to those methods.
 > Same with field references.  Previously, I was compiling one .class
 > file at a time and adding the "full, unpruned" libgcj.jar to the
 > CLASSPATH.
 > 
 > I'm trying to move towards jar-at-a-time, and my first step is to get
 > 'gcj -c foo.jar' working.  Unfortunately, it seems that if a class
 > appears in both the bootclasspath *and* in foo.jar, then other classes
 > in foo.jar which reference that class will get the jarred version, not
 > the bootclasspath version.
 > 
 >   1. Is this the intended behavior?

Yes.  I don't understand why you would want it to do anything else.

 >   2. If so, where should I start looking for a hack to alter this
 >      behavior?

I suspect that -findirect-dispatch will do what you want.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]