< prev index next >

src/jdk.rmic/share/classes/sun/tools/java/BinaryClass.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1994, 2019, 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. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1994, 2015, 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. Oracle designates this
*** 120,136 **** if (version < JAVA_MIN_SUPPORTED_VERSION) { throw new ClassFormatError( sun.tools.javac.Main.getText( "javac.err.version.too.old", String.valueOf(version))); - } else if ((version >= JAVA_MIN_PREVIEW_MAJOR_VERSION) - && (minor_version == JAVA_PREVIEW_MINOR_VERSION)) { - // reject all class files that have preview features enabled - throw new ClassFormatError( - sun.tools.javac.Main.getText( - "javac.err.version.preview", - version+"."+minor_version)); } else if ((version > JAVA_MAX_SUPPORTED_VERSION) || (version == JAVA_MAX_SUPPORTED_VERSION && minor_version > JAVA_MAX_SUPPORTED_MINOR_VERSION)) { throw new ClassFormatError( sun.tools.javac.Main.getText( --- 120,129 ----
< prev index next >