equal
deleted
inserted
replaced
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 |
25 package com.apple.jobjc; |
25 package com.apple.jobjc; |
26 |
26 |
27 import java.lang.ref.WeakReference; |
27 import java.lang.ref.WeakReference; |
28 import java.lang.reflect.Constructor; |
28 import java.lang.reflect.Constructor; |
29 |
29 |
30 import javax.tools.annotation.GenerateNativeHeader; |
|
31 |
30 |
32 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
33 @GenerateNativeHeader |
|
34 public class NSClass<T extends ID> extends ID { |
31 public class NSClass<T extends ID> extends ID { |
35 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
36 @GenerateNativeHeader |
|
37 public static class NSClassNotFoundException extends RuntimeException{ |
32 public static class NSClassNotFoundException extends RuntimeException{ |
38 public NSClassNotFoundException(String m){ super(m); } |
33 public NSClassNotFoundException(String m){ super(m); } |
39 public NSClassNotFoundException(String m, Throwable cause){ super(m, cause); } |
34 public NSClassNotFoundException(String m, Throwable cause){ super(m, cause); } |
40 } |
35 } |
41 |
36 |