Cross Reference: java_lang_Enum.java
xref
: /
openjdk7
/
jdk
/
test
/
java
/
beans
/
XMLEncoder
/
java_lang_Enum.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
0
N/A
/*
2362
N/A
* Copyright (c) 2006, 2007, Oracle
and
/
or
its affiliates. All rights reserved.
0
N/A
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0
N/A
*
0
N/A
* This code is free software; you can redistribute it
and
/
or
modify it
0
N/A
* under the terms of the GNU General Public License version 2 only, as
0
N/A
* published by the Free Software Foundation.
0
N/A
*
0
N/A
* This code is distributed in the hope that it will be useful, but WITHOUT
0
N/A
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0
N/A
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0
N/A
* version 2 for more details (a copy is included in the LICENSE file that
0
N/A
* accompanied this code).
0
N/A
*
0
N/A
* You should have received a copy of the GNU General Public License version
0
N/A
* 2 along with this work; if not, write to the Free Software Foundation,
0
N/A
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0
N/A
*
2362
N/A
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362
N/A
* or visit www.oracle.com if you need additional information or have any
2362
N/A
* questions.
0
N/A
*/
0
N/A
0
N/A
/*
0
N/A
* @test
0
N/A
* @bug 5015403
0
N/A
* @summary Tests Enum value encoding
0
N/A
* @author Sergey Malenkov
0
N/A
*/
0
N/A
0
N/A
public
final
class
java_lang_Enum
extends
AbstractTest
{
0
N/A
public
static
void
main
(
String
[]
args
) {
0
N/A
new
java_lang_Enum
().
test
(
true
);
0
N/A
}
0
N/A
0
N/A
protected
Object
getObject
() {
0
N/A
return
Alpha
.A;
0
N/A
}
0
N/A
0
N/A
protected
Object
getAnotherObject
() {
0
N/A
return
Alpha
.Z;
0
N/A
}
0
N/A
0
N/A
public
enum
Alpha
{
0
N/A
A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
0
N/A
}
0
N/A
}