Bug 35206 - Class.getModifiers() returns wrong value for static inner class
Summary: Class.getModifiers() returns wrong value for static inner class
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2008-02-15 04:48 UTC by Marcus Better
Modified: 2016-09-30 22:49 UTC (History)
2 users (show)

See Also:
Host: x86_64-linux-gnu
Target: x86_64-linux-gnu
Build: x86_64-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:

Test case (221 bytes, text/x-java)
2008-02-15 04:50 UTC, Marcus Better

Note You need to log in before you can comment on or make changes to this bug.
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.