Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
0623a8c0
Commit
0623a8c0
authored
Apr 24, 2006
by
Tom Tromey
Committed by
Tom Tromey
Apr 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.
From-SVN: r113229
parent
9fff6432
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
libjava/ChangeLog
+4
-0
libjava/java/lang/natClass.cc
+12
-5
No files found.
libjava/ChangeLog
View file @
0623a8c0
2006
-
04
-
24
Tom
Tromey
<
tromey
@
redhat
.
com
>
*
java
/
lang
/
natClass
.
cc
(
_Jv_getInterfaceMethod
):
Skip
<
clinit
>.
2006
-
04
-
21
Andrew
Haley
<
aph
@
redhat
.
com
>
*
include
/
execution
.
h
(
struct
_Jv_CompiledEngine
):
Define
for
...
...
libjava/java/lang/natClass.cc
View file @
0623a8c0
...
...
@@ -1182,9 +1182,14 @@ _Jv_getInterfaceMethod (jclass search_class, jclass &found_class, int &index,
if
(
!
klass
->
isInterface
())
return
false
;
int
i
=
klass
->
method_count
;
while
(
--
i
>=
0
)
int
max
=
klass
->
method_count
;
int
offset
=
0
;
for
(
int
i
=
0
;
i
<
max
;
++
i
)
{
// Skip <clinit> here, as it will not be in the IDT.
if
(
klass
->
methods
[
i
].
name
->
first
()
==
'<'
)
continue
;
if
(
_Jv_equalUtf8Consts
(
klass
->
methods
[
i
].
name
,
utf_name
)
&&
_Jv_equalUtf8Consts
(
klass
->
methods
[
i
].
signature
,
utf_sig
))
{
...
...
@@ -1197,9 +1202,11 @@ _Jv_getInterfaceMethod (jclass search_class, jclass &found_class, int &index,
found_class
=
klass
;
// Interface method indexes count from 1.
index
=
i
+
1
;
index
=
offset
+
1
;
return
true
;
}
++
offset
;
}
}
...
...
@@ -1211,8 +1218,8 @@ _Jv_getInterfaceMethod (jclass search_class, jclass &found_class, int &index,
{
using
namespace
java
::
lang
::
reflect
;
bool
found
=
_Jv_getInterfaceMethod
(
search_class
->
interfaces
[
i
],
found_class
,
index
,
utf_name
,
utf_sig
);
found_class
,
index
,
utf_name
,
utf_sig
);
if
(
found
)
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment