< prev index next >

src/java.base/share/classes/java/lang/invoke/GenerateJLIClassesHelper.java

Print this page
*** 392,20 ***
          for (Wrapper wrapper : Wrapper.values()) {
              if (wrapper == Wrapper.VOID) {
                  continue;
              }
              for (byte b = DirectMethodHandle.AF_GETFIELD; b < DirectMethodHandle.AF_LIMIT; b++) {
!                 int ftype = DirectMethodHandle.ftypeKind(wrapper.primitiveType());
                  LambdaForm form = DirectMethodHandle
!                         .makePreparedFieldLambdaForm(b, /*isVolatile*/false, ftype);
                  if (form.kind != LambdaForm.Kind.GENERIC) {
                      forms.add(form);
                      names.add(form.kind.defaultLambdaName);
                  }
                  // volatile
                  form = DirectMethodHandle
!                         .makePreparedFieldLambdaForm(b, /*isVolatile*/true, ftype);
                  if (form.kind != LambdaForm.Kind.GENERIC) {
                      forms.add(form);
                      names.add(form.kind.defaultLambdaName);
                  }
              }
--- 392,20 ---
          for (Wrapper wrapper : Wrapper.values()) {
              if (wrapper == Wrapper.VOID) {
                  continue;
              }
              for (byte b = DirectMethodHandle.AF_GETFIELD; b < DirectMethodHandle.AF_LIMIT; b++) {
!                 int ftype = DirectMethodHandle.ftypeKind(wrapper.primitiveType(), true);
                  LambdaForm form = DirectMethodHandle
!                         .makePreparedFieldLambdaForm(b, false /*isVolatile*/, ftype);
                  if (form.kind != LambdaForm.Kind.GENERIC) {
                      forms.add(form);
                      names.add(form.kind.defaultLambdaName);
                  }
                  // volatile
                  form = DirectMethodHandle
!                         .makePreparedFieldLambdaForm(b, true /*isVolatile*/, ftype);
                  if (form.kind != LambdaForm.Kind.GENERIC) {
                      forms.add(form);
                      names.add(form.kind.defaultLambdaName);
                  }
              }
< prev index next >