/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 7003595
* @summary IncompatibleClassChangeError with unreferenced local class with subclass
*/
public class T7003595 {
/** global decls ***/
// Create a single file manager and reuse it for each compile to save time.
//statistics
enum ClassKind {
boolean staticAllowed;
this.memberInnerStr = memberInnerStr;
this.staticAllowed = staticAllowed;
}
}
System.out.println(" pos = " + pos + " kind = " + outerKinds[pos] + " sep = " + outerKinds[pos].sep);
if (pos == 0) {
} else {
}
}
return nestedKind != NESTED ||
}
}
enum LocalInnerClass {
this.localInnerStr = localInnerStr;
this.canonicalInnerStr = canonicalInnerStr;
}
}
new T7003595(new ClassKind[] {ck1, ck2, ck3}, new String[] { cname1, cname2, cname3 }).compileAndCheck();
}
}
}
}
/** instance decls **/
}
}
for (int i = 0; i < 3 ; i ++) {
checkCount++;
try {
}
InnerClasses_attribute innerClasses = (InnerClasses_attribute)cf.getAttribute(Attribute.InnerClasses);
if (innerClasses != null) {
}
}
//add inner class (if any)
}
//add inner classes
for (int j = 0 ; j != i + 1 && j < 3; j++) {
}
source);
}
}
}
throw new Error("InnerClasses attribute for " + cnames[i] + " does not contain expected signature: " +
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
public JavaSource() {
}
return source;
}
return source;
}
}
}