Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
8235368: Update BCEL to Version 6.4.1
Reviewed-by: yan
Backport-of: e8f8eef
  • Loading branch information
Dmitry Cherepanov committed May 26, 2021
1 parent 7368c4b commit cea44d6
Show file tree
Hide file tree
Showing 318 changed files with 2,871 additions and 1,223 deletions.
110 changes: 82 additions & 28 deletions src/java.xml/share/classes/com/sun/org/apache/bcel/internal/Const.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
Expand All @@ -25,8 +25,8 @@
/**
* Constants for the project, mostly defined in the JVM specification.
*
* @version $Id$
* @since 6.0 (intended to replace the Constants interface)
* @LastModified: Jan 2020
*/
public final class Const {

Expand Down Expand Up @@ -180,6 +180,18 @@ public final class Const {
* */
public static final short MINOR_13 = 0;

/** Major version number of class files for Java 14.
* @see #MINOR_14
* @since 6.4.0
* */
public static final short MAJOR_14 = 58;

/** Minor version number of class files for Java 14.
* @see #MAJOR_14
* @since 6.4.0
* */
public static final short MINOR_14 = 0;

/** Default major version number. Class file is for Java 1.1.
* @see #MAJOR_1_1
* */
Expand All @@ -199,12 +211,14 @@ public final class Const {
public static final int MAX_BYTE = 255; // 2^8 - 1

/** One of the access flags for fields, methods, or classes.
* @see <a href='http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.5'>
* Flag definitions for Fields in the Java Virtual Machine Specification (Java SE 8 Edition).</a>
* @see <a href='http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.6'>
* Flag definitions for Methods in the Java Virtual Machine Specification (Java SE 8 Edition).</a>
* @see <a href='http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.6-300-D.1-D.1'>
* Flag definitions for Classes in the Java Virtual Machine Specification (Java SE 8 Edition).</a>
* @see <a href='http://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.1-200-E.1'>
* Flag definitions for Classes in the Java Virtual Machine Specification (Java SE 9 Edition).</a>
* @see <a href='http://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.5'>
* Flag definitions for Fields in the Java Virtual Machine Specification (Java SE 9 Edition).</a>
* @see <a href='http://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.6'>
* Flag definitions for Methods in the Java Virtual Machine Specification (Java SE 9 Edition).</a>
* @see <a href='http://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.6-300-D.1-D.1'>
* Flag definitions for Inner Classes in the Java Virtual Machine Specification (Java SE 9 Edition).</a>
*/
public static final short ACC_PUBLIC = 0x0001;

Expand All @@ -228,89 +242,123 @@ public final class Const {
*/
public static final short ACC_FINAL = 0x0010;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for the Module attribute.
* @see #ACC_PUBLIC
*/
public static final short ACC_OPEN = 0x0020;

/** One of the access flags for classes.
* @see #ACC_PUBLIC
*/
public static final short ACC_SUPER = 0x0020;

/** One of the access flags for methods.
* @see #ACC_PUBLIC
*/
public static final short ACC_SYNCHRONIZED = 0x0020;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for the Module attribute.
* @see #ACC_PUBLIC
*/
public static final short ACC_VOLATILE = 0x0040;
public static final short ACC_TRANSITIVE = 0x0020;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for methods.
* @see #ACC_PUBLIC
*/
public static final short ACC_BRIDGE = 0x0040;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for the Module attribute.
* @see #ACC_PUBLIC
*/
public static final short ACC_STATIC_PHASE = 0x0040;

/** One of the access flags for fields.
* @see #ACC_PUBLIC
*/
public static final short ACC_VOLATILE = 0x0040;

/** One of the access flags for fields.
* @see #ACC_PUBLIC
*/
public static final short ACC_TRANSIENT = 0x0080;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for methods.
* @see #ACC_PUBLIC
*/
public static final short ACC_VARARGS = 0x0080;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for methods.
* @see #ACC_PUBLIC
*/
public static final short ACC_NATIVE = 0x0100;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for classes.
* @see #ACC_PUBLIC
*/
public static final short ACC_INTERFACE = 0x0200;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for methods or classes.
* @see #ACC_PUBLIC
*/
public static final short ACC_ABSTRACT = 0x0400;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for methods.
* @see #ACC_PUBLIC
*/
public static final short ACC_STRICT = 0x0800;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for fields, methods, classes, MethodParameter attribute, or Module attribute.
* @see #ACC_PUBLIC
*/
public static final short ACC_SYNTHETIC = 0x1000;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for classes.
* @see #ACC_PUBLIC
*/
public static final short ACC_ANNOTATION = 0x2000;

/** One of the access flags for fields, methods, or classes.
/** One of the access flags for fields or classes.
* @see #ACC_PUBLIC
*/