jdk/test/tools/jlink/plugins/SystemModuleDescriptors/src/m1/p1/Main.java
changeset 45004 ea3137042a61
parent 44545 83b611b88ac8
equal deleted inserted replaced
44789:73fd39e0702e 45004:ea3137042a61
    60         };
    60         };
    61 
    61 
    62         // parse module-info.class
    62         // parse module-info.class
    63         ClassReader cr = new ClassReader(in);
    63         ClassReader cr = new ClassReader(in);
    64         cr.accept(cv, attrs, 0);
    64         cr.accept(cv, attrs, 0);
    65         return modTargets[0] != null &&
    65         return modTargets[0] != null && modTargets[0].targetPlatform() != null;
    66             (modTargets[0].osName() != null || modTargets[0].osArch() != null);
       
    67     }
    66     }
    68 
    67 
    69     public static void main(String... args) throws Exception {
    68     public static void main(String... args) throws Exception {
    70         // load another package
    69         // load another package
    71         p2.T.test();
    70         p2.T.test();