jdk/src/macosx/native/jobjc/src/core/java/com/apple/jobjc/Subclassing.java
changeset 16734 da1901d79073
parent 14342 8435a30053c1
equal deleted inserted replaced
16733:9267ec7004a1 16734:da1901d79073
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    31 
    31 
    32 import com.apple.jobjc.Coder.PrimitivePointerCoder;
    32 import com.apple.jobjc.Coder.PrimitivePointerCoder;
    33 import com.apple.jobjc.Coder.VoidCoder;
    33 import com.apple.jobjc.Coder.VoidCoder;
    34 import com.apple.jobjc.Invoke.MsgSend;
    34 import com.apple.jobjc.Invoke.MsgSend;
    35 
    35 
    36 import javax.tools.annotation.GenerateNativeHeader;
       
    37 
    36 
    38 /* No native methods here, but the constants are needed in the supporting JNI code */
       
    39 @GenerateNativeHeader
       
    40 final class Subclassing {
    37 final class Subclassing {
    41     static native long allocateClassPair(long superClass, String name);
    38     static native long allocateClassPair(long superClass, String name);
    42     static native boolean addIVarForJObj(long clazz);
    39     static native boolean addIVarForJObj(long clazz);
    43     static native boolean patchAlloc(long classPtr);
    40     static native boolean patchAlloc(long classPtr);
    44     static native boolean addMethod(long cls, String name, Method jMethod, CIF cif, long cifPtr, String objCEncodedType);
    41     static native boolean addMethod(long cls, String name, Method jMethod, CIF cif, long cifPtr, String objCEncodedType);