Lines 947-953
Link Here
|
947 |
completeCodeAttributeForMissingAbstractProblemMethod( |
947 |
completeCodeAttributeForMissingAbstractProblemMethod( |
948 |
methodBinding, |
948 |
methodBinding, |
949 |
codeAttributeOffset, |
949 |
codeAttributeOffset, |
950 |
compilationResult.lineSeparatorPositions, |
950 |
compilationResult.getLineSeparatorPositions(), |
951 |
problem.getSourceLineNumber()); |
951 |
problem.getSourceLineNumber()); |
952 |
|
952 |
|
953 |
completeMethodInfo(methodAttributeOffset, attributeNumber); |
953 |
completeMethodInfo(methodAttributeOffset, attributeNumber); |
Lines 1000-1010
Link Here
|
1000 |
attributeNumber++; // code attribute |
1000 |
attributeNumber++; // code attribute |
1001 |
completeCodeAttributeForClinit( |
1001 |
completeCodeAttributeForClinit( |
1002 |
codeAttributeOffset, |
1002 |
codeAttributeOffset, |
1003 |
referenceBinding |
|
|
1004 |
.scope |
1005 |
.referenceCompilationUnit() |
1006 |
.compilationResult |
1007 |
.lineSeparatorPositions, |
1008 |
problemLine); |
1003 |
problemLine); |
1009 |
contents[attributeOffset++] = (byte) (attributeNumber >> 8); |
1004 |
contents[attributeOffset++] = (byte) (attributeNumber >> 8); |
1010 |
contents[attributeOffset] = (byte) attributeNumber; |
1005 |
contents[attributeOffset] = (byte) attributeNumber; |
Lines 1067-1073
Link Here
|
1067 |
.scope |
1062 |
.scope |
1068 |
.referenceCompilationUnit() |
1063 |
.referenceCompilationUnit() |
1069 |
.compilationResult |
1064 |
.compilationResult |
1070 |
.lineSeparatorPositions, |
1065 |
.getLineSeparatorPositions(), |
1071 |
problemLine); |
1066 |
problemLine); |
1072 |
completeMethodInfo(methodAttributeOffset, attributeNumber); |
1067 |
completeMethodInfo(methodAttributeOffset, attributeNumber); |
1073 |
} |
1068 |
} |
Lines 1157-1163
Link Here
|
1157 |
.scope |
1152 |
.scope |
1158 |
.referenceCompilationUnit() |
1153 |
.referenceCompilationUnit() |
1159 |
.compilationResult |
1154 |
.compilationResult |
1160 |
.lineSeparatorPositions, |
1155 |
.getLineSeparatorPositions(), |
1161 |
problemLine); |
1156 |
problemLine); |
1162 |
completeMethodInfo(methodAttributeOffset, attributeNumber); |
1157 |
completeMethodInfo(methodAttributeOffset, attributeNumber); |
1163 |
} |
1158 |
} |
Lines 1270-1276
Link Here
|
1270 |
.scope |
1265 |
.scope |
1271 |
.referenceCompilationUnit() |
1266 |
.referenceCompilationUnit() |
1272 |
.compilationResult |
1267 |
.compilationResult |
1273 |
.lineSeparatorPositions); |
1268 |
.getLineSeparatorPositions()); |
1274 |
// update the number of attributes |
1269 |
// update the number of attributes |
1275 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1270 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1276 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
1271 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
Lines 1300-1306
Link Here
|
1300 |
.scope |
1295 |
.scope |
1301 |
.referenceCompilationUnit() |
1296 |
.referenceCompilationUnit() |
1302 |
.compilationResult |
1297 |
.compilationResult |
1303 |
.lineSeparatorPositions); |
1298 |
.getLineSeparatorPositions()); |
1304 |
// update the number of attributes |
1299 |
// update the number of attributes |
1305 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1300 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1306 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
1301 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
Lines 1325-1331
Link Here
|
1325 |
.scope |
1320 |
.scope |
1326 |
.referenceCompilationUnit() |
1321 |
.referenceCompilationUnit() |
1327 |
.compilationResult |
1322 |
.compilationResult |
1328 |
.lineSeparatorPositions); |
1323 |
.getLineSeparatorPositions()); |
1329 |
// update the number of attributes |
1324 |
// update the number of attributes |
1330 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1325 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1331 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
1326 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
Lines 1354-1360
Link Here
|
1354 |
.scope |
1349 |
.scope |
1355 |
.referenceCompilationUnit() |
1350 |
.referenceCompilationUnit() |
1356 |
.compilationResult |
1351 |
.compilationResult |
1357 |
.lineSeparatorPositions); |
1352 |
.getLineSeparatorPositions()); |
1358 |
// update the number of attributes |
1353 |
// update the number of attributes |
1359 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1354 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1360 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
1355 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
Lines 1385-1391
Link Here
|
1385 |
.scope |
1380 |
.scope |
1386 |
.referenceCompilationUnit() |
1381 |
.referenceCompilationUnit() |
1387 |
.compilationResult |
1382 |
.compilationResult |
1388 |
.lineSeparatorPositions); |
1383 |
.getLineSeparatorPositions()); |
1389 |
// update the number of attributes |
1384 |
// update the number of attributes |
1390 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1385 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1391 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
1386 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
Lines 1416-1422
Link Here
|
1416 |
.scope |
1411 |
.scope |
1417 |
.referenceCompilationUnit() |
1412 |
.referenceCompilationUnit() |
1418 |
.compilationResult |
1413 |
.compilationResult |
1419 |
.lineSeparatorPositions); |
1414 |
.getLineSeparatorPositions()); |
1420 |
// update the number of attributes |
1415 |
// update the number of attributes |
1421 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1416 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1422 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
1417 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
Lines 1446-1452
Link Here
|
1446 |
.scope |
1441 |
.scope |
1447 |
.referenceCompilationUnit() |
1442 |
.referenceCompilationUnit() |
1448 |
.compilationResult |
1443 |
.compilationResult |
1449 |
.lineSeparatorPositions); |
1444 |
.getLineSeparatorPositions()); |
1450 |
// update the number of attributes |
1445 |
// update the number of attributes |
1451 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1446 |
contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); |
1452 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
1447 |
contents[methodAttributeOffset] = (byte) attributeNumber; |
Lines 2048-2060
Link Here
|
2048 |
* - code_length |
2043 |
* - code_length |
2049 |
* - exception table |
2044 |
* - exception table |
2050 |
* - and debug attributes if necessary. |
2045 |
* - and debug attributes if necessary. |
2051 |
* |
|
|
2052 |
* @param codeAttributeOffset <CODE>int</CODE> |
2053 |
* @param startLineIndexes int[] |
2054 |
*/ |
2046 |
*/ |
2055 |
public void completeCodeAttributeForClinit( |
2047 |
public void completeCodeAttributeForClinit( |
2056 |
int codeAttributeOffset, |
2048 |
int codeAttributeOffset, |
2057 |
int[] startLineIndexes, |
|
|
2058 |
int problemLine) { |
2049 |
int problemLine) { |
2059 |
// reinitialize the contents with the byte modified by the code stream |
2050 |
// reinitialize the contents with the byte modified by the code stream |
2060 |
this.contents = codeStream.bCodeStream; |
2051 |
this.contents = codeStream.bCodeStream; |