829 .getOutput(Task.OutputKind.DIRECT)
830 .replaceAll("\\R", "\n");
831
832 if (!out.equals(expectedFailure)) {
833 throw new AssertionError("out=" + out + "; expected=" + expectedFailure);
834 }
835 }
836 }
837
838 @Test
839 void testExtendsInternalData1() throws Exception {
840 doTestData("""
841 module name m
842 header exports api extraModulePackages nonapi requires name\\u0020;java.base\\u0020;flags\\u0020;8000\\u0020;version\\u0020;0 flags 8000
843
844 class name api/Ann
845 header extends java/lang/Object implements java/lang/annotation/Annotation flags 2601
846
847 class name api/Api
848 header extends nonapi/Impl$Nested$Exp flags 21
849 innerclass innerClass nonapi/Impl$Nested outerClass nonapi/Impl innerClassName Nested flags 9
850 innerclass innerClass nonapi/Impl$Nested$Exp outerClass nonapi/Impl$Nested innerClassName Exp flags 9
851 method name <init> descriptor ()V flags 1
852
853 class name nonapi/Impl
854 header extends java/lang/Object nestMembers nonapi/Impl$Nested,nonapi/Impl$Nested$Exp flags 21
855 innerclass innerClass nonapi/Impl$Nested outerClass nonapi/Impl innerClassName Nested flags 9
856 innerclass innerClass nonapi/Impl$Nested$Exp outerClass nonapi/Impl$Nested innerClassName Exp flags 9
857 field name C descriptor Ljava/lang/String; constantValue flags 19
858 method name <init> descriptor ()V flags 1
859 method name test descriptor ()V flags 1
860
861 class name nonapi/Impl$Nested
862 header extends java/lang/Object nestHost nonapi/Impl flags 21 classAnnotations @Lapi/Ann;
863 innerclass innerClass nonapi/Impl$Nested outerClass nonapi/Impl innerClassName Nested flags 9
864 innerclass innerClass nonapi/Impl$Nested$Exp outerClass nonapi/Impl$Nested innerClassName Exp flags 9
865 method name <init> descriptor ()V flags 1
866
867 class name nonapi/Impl$Nested$Exp
868 header extends nonapi/Impl$Nested implements java/lang/Runnable nestHost nonapi/Impl flags 21
869 innerclass innerClass nonapi/Impl$Nested outerClass nonapi/Impl innerClassName Nested flags 9
870 innerclass innerClass nonapi/Impl$Nested$Exp outerClass nonapi/Impl$Nested innerClassName Exp flags 9
871 method name <init> descriptor ()V flags 1
872 method name run descriptor ()V flags 1
873 method name get descriptor ()Lnonapi/Impl$OtherNested; flags 1
874
875 """,
876 """
877 module m {
878 exports api;
879 exports nonapi to java.base;
880 }
881 """,
882 """
883 package api;
884 import nonapi.Impl;
885 public class Api extends Impl.Nested.Exp {
886 }
887 """,
888 """
889 package api;
890 public @interface Ann {
|
829 .getOutput(Task.OutputKind.DIRECT)
830 .replaceAll("\\R", "\n");
831
832 if (!out.equals(expectedFailure)) {
833 throw new AssertionError("out=" + out + "; expected=" + expectedFailure);
834 }
835 }
836 }
837
838 @Test
839 void testExtendsInternalData1() throws Exception {
840 doTestData("""
841 module name m
842 header exports api extraModulePackages nonapi requires name\\u0020;java.base\\u0020;flags\\u0020;8000\\u0020;version\\u0020;0 flags 8000
843
844 class name api/Ann
845 header extends java/lang/Object implements java/lang/annotation/Annotation flags 2601
846
847 class name api/Api
848 header extends nonapi/Impl$Nested$Exp flags 21
849 innerclass innerClass nonapi/Impl$Nested outerClass nonapi/Impl innerClassName Nested flags 29
850 innerclass innerClass nonapi/Impl$Nested$Exp outerClass nonapi/Impl$Nested innerClassName Exp flags 29
851 method name <init> descriptor ()V flags 1
852
853 class name nonapi/Impl
854 header extends java/lang/Object nestMembers nonapi/Impl$Nested,nonapi/Impl$Nested$Exp flags 21
855 innerclass innerClass nonapi/Impl$Nested outerClass nonapi/Impl innerClassName Nested flags 29
856 innerclass innerClass nonapi/Impl$Nested$Exp outerClass nonapi/Impl$Nested innerClassName Exp flags 29
857 field name C descriptor Ljava/lang/String; constantValue flags 19
858 method name <init> descriptor ()V flags 1
859 method name test descriptor ()V flags 1
860
861 class name nonapi/Impl$Nested
862 header extends java/lang/Object nestHost nonapi/Impl flags 21 classAnnotations @Lapi/Ann;
863 innerclass innerClass nonapi/Impl$Nested outerClass nonapi/Impl innerClassName Nested flags 29
864 innerclass innerClass nonapi/Impl$Nested$Exp outerClass nonapi/Impl$Nested innerClassName Exp flags 29
865 method name <init> descriptor ()V flags 1
866
867 class name nonapi/Impl$Nested$Exp
868 header extends nonapi/Impl$Nested implements java/lang/Runnable nestHost nonapi/Impl flags 21
869 innerclass innerClass nonapi/Impl$Nested outerClass nonapi/Impl innerClassName Nested flags 29
870 innerclass innerClass nonapi/Impl$Nested$Exp outerClass nonapi/Impl$Nested innerClassName Exp flags 29
871 method name <init> descriptor ()V flags 1
872 method name run descriptor ()V flags 1
873 method name get descriptor ()Lnonapi/Impl$OtherNested; flags 1
874
875 """,
876 """
877 module m {
878 exports api;
879 exports nonapi to java.base;
880 }
881 """,
882 """
883 package api;
884 import nonapi.Impl;
885 public class Api extends Impl.Nested.Exp {
886 }
887 """,
888 """
889 package api;
890 public @interface Ann {
|