/*
* 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 5027675 5048535
* @summary Tests FieldDeclaration.getConstantExpression method
* @library ../../lib
* @compile -source 1.5 ConstExpr.java
*/
}
// Declarations used by tests
public static final byte B = (byte) 0xBE;
public static final short S = (short) 32767;
public static final int I = -4;
public static final long l = 4294967296L;
public static final float f = 3.5f;
public static final char C = 'C';
"0xbe",
"32767",
"-4",
"4294967296L",
"3.5f",
"3.141592653589793",
"'C'",
"\"cheese\"",
"'\\u263a'",
"\"ab\\ncd\"",
"1.0/0.0",
"-1.0/0.0",
"0.0/0.0",
"1.0f/0.0f",
"-1.0f/0.0f",
"0.0f/0.0f",
"null",
"null"
},
ordered=true)
new SimpleDeclarationVisitor() {
public void visitFieldDeclaration(FieldDeclaration f) {
}
}));
return res;
}
}