FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cppjvm/java/testjava/test_nested.cpp at master · danielearwicker/cppjvm · GitHub
danielearwicker
cppjvm
Repository navigation
Code
Issues
1
(1)
Pull requests
1
(1)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
cppjvm
/
java
/
testjava
/
test_nested.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (16 loc) · 620 Bytes
Breadcrumbs
cppjvm
/
java
/
testjava
/
test_nested.cpp
Copy path
File metadata and controls
21 lines (16 loc) · 620 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
include
<
java/net/Proxy/Type.hpp
>
#
include
<
jvm/local_frame.hpp
>
#
include
"
assert.hpp
"
void
test_nested
()
{
jvm::local_frame lf;
//
should be able to allocate an array of a nested type
jvm::array<java::net::Proxy_n::Type>
arrayOfProxyTypes
(
1
);
ASSERT_EQUAL
(
int
,
1
, arrayOfProxyTypes.
length
());
//
Also obtain an array of instances and try using it
arrayOfProxyTypes =
java::net::Proxy_n::Type::values
();
for
(
int
n =
0
; n < arrayOfProxyTypes.
length
(); n++) {
std::cout << arrayOfProxyTypes[n].
name
().
str
() << std::endl;
}
}
REGISTER_TEST
(test_nested);
Back
|
FazBrowse Home
|
New Git URL