Community
Participate
Working Groups
Build Identifier: I20090611-1540 Consider two methods foo and bar and an annotation @Anno: private void foo(String s); private void bar(@Anno String s); When using the eclipse compiler, using refection to get the modifiers for foo returns 2, as expected. However, using reflection to get the modifiers for bar returns 0. When using the sun compiler both foo and bar are reported to have the modifier 2. Reproducible: Always Steps to Reproduce: 1. Write some code that uses reflection to the get the modifiers on a private method that has an annotation on a parameter. 2. Compile the code using the eclipse compiler. 3. Execute the code and observe that java.lang.Method.getModifiers() returns 0 (it should return 2).
Closing as a duplicate of bug 289576 *** This bug has been marked as a duplicate of bug 289576 ***
Francis, please verify that this works fine using 3.6M6.
I have tried this in I20100312-1448, and the problem has been fixed.