This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: PATCH for java/nio buffers


Michael Koch wrote:

On Fri, Feb 13, 2004 at 10:15:58AM -0800, Per Bothner wrote:


Michael Koch wrote:



I'm unhappy with this because japitools will complain that our API is
different.


Not if japitools compares bytecodes.

An implicit default contructor generates the same bytecode
as an explicit default constructor.



You are right in this but SUN's API shows no accessible constructor for
java.nio.Buffer and java.nio.ByteBuffer. I think SUN doesnt want it to
be extended.


I think that is correct.

It allows for the JIT compilers to generate inline expansions of the methods instead of calling into the runtime libraries. Although you might still be able to do that if you allowed people to sub-class the various Buffer classes it might be more difficult.

David Daney.


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