< prev index next >

src/java.base/share/classes/jdk/internal/nicl/StructImplGenerator.java

Print this page

        

*** 136,146 **** } @Override protected void generateMethodImplementation(BinderClassWriter cw, Method method) { if (method.isAnnotationPresent(Offset.class)) { ! if (!method.isAnnotationPresent(C.class) || !method.isAnnotationPresent(NativeType.class)) { throw new IllegalArgumentException("Unexpectedly found an @Offset annotated method without a @NativeType annotation"); } long off = method.getAnnotation(Offset.class).offset(); if (off < 0 || off % 8 != 0) { --- 136,146 ---- } @Override protected void generateMethodImplementation(BinderClassWriter cw, Method method) { if (method.isAnnotationPresent(Offset.class)) { ! if (!method.isAnnotationPresent(NativeType.class)) { throw new IllegalArgumentException("Unexpectedly found an @Offset annotated method without a @NativeType annotation"); } long off = method.getAnnotation(Offset.class).offset(); if (off < 0 || off % 8 != 0) {
< prev index next >