< prev index next >

test/langtools/tools/javac/classfiles/attributes/innerclasses/InnerClassesTestBase.java

Print this page
rev 50604 : imported patch jep181-rev1

*** 1,7 **** /* ! * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 197,207 **** private void test(String classToTest, TestCase test, String...skipClasses) { printf("Testing :\n%s\n", test.getSource()); try { Map<String, Set<String>> class2Flags = test.getFlags(); ! ClassFile cf = readClassFile(compile(test.getSource()) .getClasses().get(classToTest)); InnerClasses_attribute innerClasses = (InnerClasses_attribute) cf.getAttribute(Attribute.InnerClasses); int count = 0; for (Attribute a : cf.attributes.attrs) { --- 197,207 ---- private void test(String classToTest, TestCase test, String...skipClasses) { printf("Testing :\n%s\n", test.getSource()); try { Map<String, Set<String>> class2Flags = test.getFlags(); ! ClassFile cf = readClassFile(compile(getCompileOptions(), test.getSource()) .getClasses().get(classToTest)); InnerClasses_attribute innerClasses = (InnerClasses_attribute) cf.getAttribute(Attribute.InnerClasses); int count = 0; for (Attribute a : cf.attributes.attrs) {
*** 322,331 **** --- 322,335 ---- .collect(Collectors.toSet()); type.addSpecificFlags(flags); return flags; } + protected List<String> getCompileOptions() { + return Collections.emptyList(); + } + private List<List<Modifier>> getAllCombinations(Modifier[] accessModifiers, Modifier[] otherModifiers) { List<List<Modifier>> list = new ArrayList<>(); for (Modifier access : accessModifiers) { for (int i = 0; i < otherModifiers.length; ++i) { Modifier mod1 = otherModifiers[i];
< prev index next >