Bug 549967 - bad type on operand stack
Summary: bad type on operand stack
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: LTWeaving (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2019-08-12 09:29 EDT by Martin Lippert CLA
Modified: 2019-08-13 02:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Lippert CLA 2019-08-12 09:29:10 EDT
not exactly sure how I got into this state, but I am getting this error:

An internal error occurred during: "Initializing Java Tooling".
Bad type on operand stack
Exception Details:
  Location:
    org/eclipse/jdt/internal/core/search/matching/MatchLocator.reportMatching(Lorg/eclipse/jdt/internal/compiler/ast/FieldDeclaration;[Lorg/eclipse/jdt/internal/compiler/ast/FieldDeclaration;Lorg/eclipse/jdt/internal/compiler/ast/TypeDeclaration;Lorg/eclipse/jdt/core/IJavaElement;IZLorg/eclipse/jdt/internal/core/search/matching/MatchingNodeSet;)V @503: invokevirtual
  Reason:
    Type 'java/lang/Object' (current frame, stack[1]) is not assignable to 'org/eclipse/jdt/internal/compiler/ast/ASTNode'
  Current Frame:
    bci: @503
    flags: { }
    locals: { 'org/eclipse/jdt/internal/core/search/matching/MatchLocator', 'org/eclipse/jdt/internal/compiler/ast/FieldDeclaration', '[Lorg/eclipse/jdt/internal/compiler/ast/FieldDeclaration;', 'org/eclipse/jdt/internal/compiler/ast/TypeDeclaration', 'org/eclipse/jdt/core/IJavaElement', integer, integer, 'org/eclipse/jdt/internal/core/search/matching/MatchingNodeSet', 'org/eclipse/jdt/core/IJavaElement', integer, '[Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;', integer, 'org/eclipse/jdt/internal/core/search/matching/MemberDeclarationVisitor', integer, integer, 'java/lang/Object', 'java/lang/Integer', top, integer, 'org/eclipse/jdt/internal/core/search/matching/MatchLocator', 'org/eclipse/jdt/internal/core/search/matching/MatchingNodeSet', '[Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;', 'org/eclipse/jdt/core/IJavaElement' }
    stack: { 'org/eclipse/jdt/internal/core/search/matching/PatternLocator', 'java/lang/Object', 'org/eclipse/jdt/core/IJavaElement', 'org/eclipse/jdt/core/IJavaElement', '[Lorg/eclipse/jdt/core/IJavaElement;', 'org/eclipse/jdt/internal/compiler/lookup/FieldBinding', integer, 'org/eclipse/jdt/internal/core/search/matching/MatchLocator' }
  Bytecode:
    0000000: 2ab8 0bd0 013a 0815 0502 a400 7e2a 2b2d
    0000010: 1904 2ab8 0bd0 b603 f93a 082a 1908 2ab8
    0000020: 0bd0 b607 b699 0063 2b2a b80b d0b4 0acf
    0000030: 3609 2a19 082b 2ab8 0bd0 b40a d015 0515
    0000040: 092b 2ab8 0bd0 b40a d315 0964 0460 2ab8
    0000050: 0bd0 b60a d43a 0a2b 2ab8 0bd0 b40a d6c1
    0000060: 09a5 9900 1c2a 190a 2b2b 2ab8 0bd0 b40a
    0000070: d6c0 09a5 2ab8 0bd0 b60a daa7 000d 2a19
    0000080: 0a2a b80b d0b6 07bd 2b2a b80b d0b4 0adc
    0000090: 057e 9901 7219 08c7 0011 2a2b 2d19 042a
    00000a0: b80b d0b6 03f9 3a08 2b2a b80b d0b4 0add
    00000b0: 9a00 0e2b 2ab8 0bd0 b409 afa7 000b 2b2a
    00000c0: b80b d0b4 0add 3609 1506 9900 1919 072b
    00000d0: 2ab8 0bd0 b40a cf15 092a b80b d0b6 09fb
    00000e0: a700 0401 3a0a 2a2a b80b d0b4 019e 1008
    00000f0: 7e99 0014 2a19 082a b80b d0b6 07b6 9900
    0000100: 0704 a700 0403 360b 1908 150b 9900 0819
    0000110: 0aa7 0004 0119 072a 1506 3612 3a13 3a14
    0000120: 3a15 3a16 2ab8 0bd0 bb09 ff59 1916 1915
    0000130: 1914 1913 1512 b70a 013a 0c2b 190c 012a
    0000140: b80b d0b6 0ae0 a700 173a 172a b80b d019
    0000150: 173a 0d19 0d2a b80b d0b4 0a38 bf19 0ac6
    0000160: 00a5 190a be36 0d03 360e a700 9319 0a15
    0000170: 0e32 3a0f 1907 2ab8 0bd0 b40a 1019 0f2a
    0000180: b80b d0b6 0a12 c005 8b3a 1015 0b99 006d
    0000190: 1910 c600 6819 0fc1 0399 9900 2519 0fc0
    00001a0: 0399 2ab8 0bd0 b40a e33a 1119 11c6 0012
    00001b0: 1911 2ab8 0bd0 b409 a4c6 0006 2b3a 0f2a
    00001c0: 2ab8 0bd0 b401 9a19 0f19 0819 0c15 0e2a
    00001d0: b80b d0b6 0a15 190c 150e 2ab8 0bd0 b60a
    00001e0: 172b 2ab8 0bd0 b40a d019 102a b80b d0b6
    00001f0: 0597 2a2a b80b d0b6 0a1b 840e 0115 0e15
    0000200: 0da1 ff6c 013a 092b 2ab8 0bd0 b40a e5c6
    0000210: 0048 1908 c700 112a 2b2d 1904 2ab8 0bd0
    0000220: b603 f93a 082c c600 112a 2c2d 1904 2ab8
    0000230: 0bd0 b70a e63a 092a 2b2a b80b d0b4 0ae5
    0000240: 1908 1909 2b2a b80b d0b4 0ad0 1907 0404
    0000250: 2ab8 0bd0 b60a 4515 0699 0265 2b2a b80b
    0000260: d0b4 0ae8 9900 f119 072b 2ab8 0bd0 b40a
    0000270: eb2b 2ab8 0bd0 b40a e82a b80b d0b6 09fb
    0000280: 3a0a 190a c600 d12a 2ab8 0bd0 b401 9e10
    0000290: 087e 9a00 3103 360b 190a be36 0ca7 001c
    00002a0: 1907 2ab8 0bd0 b40a 1019 0a15 0b32 2ab8
    00002b0: 0bd0 b60a 1257 840b 0115 0b15 0ca1 ffe3
    00002c0: a700 9519 08c7 0011 2a2b 2d19 042a b80b
    00002d0: d0b6 03f9 3a08 2a19 082a b80b d0b6 07b6
    00002e0: 9900 7503 360b 190a be36 0ca7 0063 190a
    00002f0: 150b 323a 0d19 072a b80b d0b4 0a10 190d
    0000300: 2ab8 0bd0 b60a 12c0 058b 3a0e 2cc6 0016
    0000310: 1909 c700 112a 2c2d 1904 2ab8 0bd0 b70a
    0000320: e63a 092a 2ab8 0bd0 b401 9a19 0d19 0801
    0000330: 1909 2b2a b80b d0b4 0ad0 190e 2ab8 0bd0
    0000340: b605 972a 2ab8 0bd0 b60a 1b84 0b01 150b
    0000350: 150c a1ff 9c2b 2ab8 0bd0 b40a dd9a 000e
    0000360: 2b2a b80b d0b4 09af a700 0b2b 2ab8 0bd0
    0000370: b40a dd36 0a19 072b 2ab8 0bd0 b40a cf15
    0000380: 0a2a b80b d0b6 09fb 3a0b 190b c601 322a
    0000390: 2ab8 0bd0 b401 9e10 087e 9a00 3103 360c
    00003a0: 190b be36 0da7 001c 1907 2ab8 0bd0 b40a
    00003b0: 1019 0b15 0c32 2ab8 0bd0 b60a 1257 840c
    00003c0: 0115 0c15 0da1 ffe3 a700 f619 08c7 0011
    00003d0: 2a2b 2d19 042a b80b d0b6 03f9 3a08 2a19
    00003e0: 082a b80b d0b6 07b6 9900 d619 0819 0b19
    00003f0: 072a 1506 3618 3a19 3a1a 3a1b 3a1c 2ab8
    0000400: 0bd0 bb09 ff59 191c 191b 191a 1919 1518
    0000410: b70a 013a 0c2b 190c 012a b80b d0b6 0ae0
    0000420: 190b be36 0d03 360e a700 8e19 0b15 0e32
    0000430: 3a0f 1907 2ab8 0bd0 b40a 1019 0f2a b80b
    0000440: d0b6 0a12 c005 8b3a 1019 10c6 0068 190f
    0000450: c103 9999 0025 190f c003 992a b80b d0b4
    0000460: 0ae3 3a11 1911 c600 1219 112a b80b d0b4
    0000470: 09a4 c600 062b 3a0f 2a2a b80b d0b4 019a
    0000480: 190f 1908 190c 150e 2ab8 0bd0 b60a 1519
    0000490: 0c15 0e2a b80b d0b6 0a17 2b2a b80b d0b4
    00004a0: 0ad0 1910 2ab8 0bd0 b605 972a 2ab8 0bd0
    00004b0: b60a 1b84 0e01 150e 150d a1ff 71b1 b1  
  Exception Handler Table:
    bci [315, 326] => handler: 329
  Stackmap Table:
    append_frame(@126,Object[#179],Integer,Object[#1135])
    chop_frame(@136,2)
    same_frame(@168)
    same_frame(@190)
    same_locals_1_stack_item_frame(@198,Integer)
    append_frame(@227,Integer)
    same_locals_1_stack_item_frame(@228,Object[#2600])
    append_frame(@261,Object[#2600])
    same_locals_1_stack_item_frame(@262,Integer)
    full_frame(@276,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Integer,Object[#2600],Integer},{Object[#179]})
    full_frame(@277,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Integer,Object[#2600],Integer},{Object[#179],Object[#2600]})
    full_frame(@329,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Integer,Object[#2600],Integer,Object[#2559],Top,Top,Top,Top,Top,Integer,Object[#1],Object[#1279],Object[#2600],Object[#179]},{Object[#2617]})
    same_frame(@349)
    full_frame(@365,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Integer,Object[#2600],Integer,Object[#2559],Integer,Integer,Top,Top,Top,Integer,Object[#1],Object[#1279],Object[#2600],Object[#179]},{})
    full_frame(@447,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Integer,Object[#2600],Integer,Object[#2559],Integer,Integer,Object[#3],Object[#1419],Top,Integer,Object[#1],Object[#1279],Object[#2600],Object[#179]},{})
    same_frame(@506)
    full_frame(@509,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Integer,Object[#2600],Integer,Object[#2559],Integer,Integer,Top,Top,Top,Integer,Object[#1],Object[#1279],Object[#2600],Object[#179]},{})
    full_frame(@516,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179]},{})
    append_frame(@549,Null)
    full_frame(@567,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Object[#1021]},{})
    same_frame(@599)
    append_frame(@672,Object[#2600],Integer,Integer)
    same_frame(@697)
    chop_frame(@707,2)
    same_frame(@726)
    append_frame(@750,Integer,Integer)
    append_frame(@803,Object[#2097],Object[#1419])
    chop_frame(@846,2)
    chop_frame(@853,3)
    same_frame(@875)
    same_locals_1_stack_item_frame(@883,Integer)
    full_frame(@936,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Object[#1021],Integer,Object[#2600],Integer,Integer},{})
    same_frame(@961)
    chop_frame(@971,2)
    same_frame(@990)
    full_frame(@1067,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Object[#1021],Integer,Object[#2600],Object[#2559],Integer,Integer,Top,Top,Top,Top,Top,Top,Top,Top,Top,Integer,Object[#1],Object[#1279],Object[#2600],Object[#179]},{})
    full_frame(@1144,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Object[#1021],Integer,Object[#2600],Object[#2559],Integer,Integer,Object[#3],Object[#1419],Top,Top,Top,Top,Top,Top,Top,Integer,Object[#1],Object[#1279],Object[#2600],Object[#179]},{})
    same_frame(@1203)
    full_frame(@1206,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Object[#1021],Integer,Object[#2600],Object[#2559],Integer,Integer,Top,Top,Top,Top,Top,Top,Top,Top,Top,Integer,Object[#1],Object[#1279],Object[#2600],Object[#179]},{})
    full_frame(@1214,{Object[#1],Object[#909],Object[#936],Object[#921],Object[#179],Integer,Integer,Object[#1279],Object[#179],Object[#1021]},{})
Comment 1 Andrey Loskutov CLA 2019-08-12 14:10:49 EDT
Martin, please provide exact JDK and Eclipse versions used, command line arguments used to start Eclipse and eclipse.ini content.
Is this reproducible?
Comment 2 Stephan Herrmann CLA 2019-08-12 16:40:19 EDT
Also a copy of your org/eclipse/jdt/internal/core/search/matching/MatchLocator.class would be great. I have a hard time believing that this is an original class file which we have shipped.

Could JDT Weaving be involved by any chance?
Comment 3 Martin Lippert CLA 2019-08-13 02:26:47 EDT
Yes, indeed, looks like JDT Weaving did something wrong here. Will move this over to the AspectJ project to take a look.