Bug 35206

Summary: Class.getModifiers() returns wrong value for static inner class
Product: gcc Reporter: Marcus Better <marcus>
Component: javaAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WONTFIX    
Severity: normal CC: gcc-bugs, java-prs
Priority: P3    
Version: 4.3.0   
Target Milestone: ---   
Host: x86_64-linux-gnu Target: x86_64-linux-gnu
Build: x86_64-linux-gnu Known to work:
Known to fail: Last reconfirmed:
Attachments: Test case

Description Marcus Better 2008-02-15 04:48:00 UTC
Calling getModifiers() for an inner class that is public static returns 33 (public synchronized) instead of the correct value 9.
Comment 1 Marcus Better 2008-02-15 04:50:04 UTC
Created attachment 15155 [details]
Test case

Result with gij:

~$ gij InnerTest
33 = public synchronized
static: false

~$ gij --version
java version "1.5.0"
gij (GNU libgcj) version 4.3.0 20080202 (experimental) [trunk revision 132072]

Expected result (Sun JRE 6):

~$ java InnerTest
9 = public static
static: true
Comment 2 Andrew Pinski 2016-09-30 22:49:11 UTC
Closing as won't fix as the Java front-end has been removed from the trunk.