Commit 56e878a
authored
fix: resolve java method calls to long signature definitions correctly (#183)
* fix: resolve java method calls to long signature definitions correctly
* fix(java): resolve internal method calls using two-pass approach
When a method calls another method that is defined later in the same class, the current single-pass logic fails to find the callee method symbol and creates a stub. This commit introduces a two-pass approach within `processClass`:
1. Iterate over methods and create definitions/symbols.
2. Iterate over methods again to process method calls and resolve them against the symbols created in the first pass.1 parent 0f42164 commit 56e878a
3 files changed
Lines changed: 40 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
822 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
823 | 829 | | |
824 | 830 | | |
825 | 831 | | |
| |||
852 | 858 | | |
853 | 859 | | |
854 | 860 | | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
855 | 867 | | |
856 | 868 | | |
857 | 869 | | |
| |||
900 | 912 | | |
901 | 913 | | |
902 | 914 | | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
903 | 922 | | |
904 | | - | |
905 | 923 | | |
906 | | - | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
907 | 929 | | |
908 | 930 | | |
| 931 | + | |
909 | 932 | | |
910 | 933 | | |
911 | 934 | | |
| |||
924 | 947 | | |
925 | 948 | | |
926 | 949 | | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
927 | 960 | | |
928 | 961 | | |
929 | 962 | | |
930 | 963 | | |
931 | 964 | | |
932 | 965 | | |
933 | 966 | | |
934 | | - | |
| 967 | + | |
935 | 968 | | |
936 | 969 | | |
937 | 970 | | |
938 | 971 | | |
939 | 972 | | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | 973 | | |
945 | 974 | | |
946 | 975 | | |
| |||
Large diffs are not rendered by default.
0 commit comments