/openjdk7/langtools/test/tools/javac/T7179353/ |
H A D | GenericsAndTWRCompileErrorTest.java | 33 public static class Resource<E extends Exception> implements AutoCloseable { class in class:GenericsAndTWRCompileErrorTest 38 try (Resource<E> r = new Resource<E>()) {
|
/openjdk7/langtools/test/tools/javac/TryWithResources/ |
H A D | TwrTests.java | 67 try (Resource r0 = createResource(0, 0, 0, closedList)) { 68 throw new AssertionError("Resource creation succeeded"); 69 } catch (Resource.CreateFailException e) { 75 } catch (Resource.CloseFailException e) { 87 try (Resource r0 = createResource(0, createFailureId, bitMap, closedList); 88 Resource r1 = createResource(1, createFailureId, bitMap, closedList)) { 90 } catch (Resource.CreateFailException e) { 94 } catch (Resource.CloseFailException e) { 108 try (Resource r0 = createResource(0, createFailureId, bitMap, closedList)) { 109 try(Resource r 693 class Resource implements AutoCloseable { class in inherits:AutoCloseable 703 Resource(int resourceId, boolean createSucceeds, boolean closeSucceeds, method in class:Resource [all...] |
/openjdk7/jdk/test/javax/management/modelmbean/ |
H A D | UnserializableTargetObjectTest.java | 60 public static class Resource { // not serializable! class in class:UnserializableTargetObjectTest 80 Resource resource1 = new Resource(); 81 Resource resource2 = new Resource(); 82 Resource resource3 = new Resource(); 83 Method operationMethod = Resource.class.getMethod("operation"); 84 Method getCountMethod = Resource.class.getMethod("getCount"); 85 Method setCountMethod = Resource [all...] |
H A D | RequiredModelMBeanMethodTest.java | 76 Resource.class.getMethod("tralala", 77 new Class[] {int.class, Resource.class}); 97 "class=" + Resource.class.getName(), 120 new ModelMBeanInfoSupport(Resource.class.getName(), 146 new ModelMBeanInfoSupport(Resource.class.getName(), 185 mbs.invoke(fullMMBName, Resource.class.getName() + ".load", 243 Resource.class.getName()}); 315 public static class Resource { class in class:RequiredModelMBeanMethodTest 316 public String tralala(int x, Resource y) { 333 private static Resource resourc [all...] |
H A D | RequiredModelMBeanSetAttributeTest.java | 94 Resource.class.getName(), 95 "Resource MBean", 150 public static class Resource { class in class:RequiredModelMBeanSetAttributeTest 159 private static Resource resource = new Resource();
|
H A D | RequiredModelMBeanGetAttributeTest.java | 67 // Resource methods 70 Resource.class.getMethod("getNull", (Class[]) null); 72 Resource.class.getMethod("getInteger", (Class[]) null); 74 Resource.class.getMethod("getHashtable", (Class[]) null); 76 Resource.class.getMethod("getMap", (Class[]) null); 249 Resource.class.getName(), 250 "Resource MBean", 389 public static class Resource { class in class:RequiredModelMBeanGetAttributeTest 404 private static Resource resource = new Resource(); [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/javax/annotation/ |
H A D | Resources.java | 34 * @see javax.annotation.Resource 45 Resource[] value();
|
H A D | Resource.java | 33 * The Resource annotation marks a resource that is needed 55 public @interface Resource { interface
|
/openjdk7/jdk/test/java/net/URLClassLoader/closetest/ |
H A D | build.sh | 63 ${JAR} cvf ../test1.jar com/foo/*.class com/foo/Resource* 69 ${JAR} cvf ../test2.jar com/foo/*.class com/foo/Resource*
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/server/ |
H A D | AbstractInstanceResolver.java | 35 import javax.annotation.Resource; 205 Resource resource = field.getAnnotation(Resource.class); 223 Resource resource = method.getAnnotation(Resource.class); 245 * Returns true if the combination of {@link Resource} and the field/method type 248 private static boolean isInjectionPoint(Resource resource, Class fieldType, Localizable errorMessage, Class resourceType ) {
|
/openjdk7/jdk/src/share/classes/sun/misc/ |
H A D | URLClassPath.java | 185 * Finds the first Resource on the URL search path which has the specified 186 * name. Returns null if no Resource could be found. 188 * @param name the name of the Resource 190 * @return the Resource, or null if not found 192 public Resource getResource(String name, boolean check) { 199 Resource res = loader.getResource(name, check); 250 public Resource getResource(String name) { 256 * Returns an enumeration of the Resource objects. 261 public Enumeration<Resource> getResources(final String name, 263 return new Enumeration<Resource>() { [all...] |
H A D | Resource.java | 40 * This class is used to represent a Resource that has been loaded 46 public abstract class Resource { class 48 * Returns the name of the Resource. 53 * Returns the URL of the Resource. 58 * Returns the CodeSource URL for the Resource. 63 * Returns an InputStream for reading the Resource data. 68 * Returns the length of the Resource data, or -1 if unknown. 83 * Returns the Resource data as an array of bytes. 156 * Returns the Resource data as a ByteBuffer, but only if the input stream 168 * Returns the Manifest for the Resource, o [all...] |
/openjdk7/jdk/test/javax/management/modelmbean/ModelMBeanInfoSupport/ |
H A D | GetAllDescriptorsTest.java | 42 public static class Resource { class in class:GetAllDescriptorsTest 105 Resource resource = new Resource(); 106 Class resourceClass = Resource.class; 190 new ModelMBeanInfoSupport(Resource.class.getName(),
|
/openjdk7/jdk/test/javax/management/modelmbean/SimpleModelMBean/ |
H A D | SimpleModelMBeanCommand.java | 43 public static class Resource { class in class:SimpleModelMBeanCommand 106 Resource resource = new Resource(); 107 Class resourceClass = Resource.class; 191 new ModelMBeanInfoSupport(Resource.class.getName(),
|
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | URLClassLoader.java | 50 import sun.misc.Resource; 358 Resource res = ucp.getResource(path, false); 406 * Resource. The resulting Class must be resolved before it can be 409 private Class defineClass(String name, Resource res) throws IOException {
|
/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | ClassLoader.java | 56 import sun.misc.Resource; 1107 // -- Resource -- 1297 Resource res = ucp.getResource(name); 1307 final Enumeration<Resource> e =
|