GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [java] Unqualified method call resolves to an enclosing class method that the inner class hides · Issue #7151 · pmd/pmd Closed Labels in:symbol-tableAffects the symbol table code Milestone DescriptionAffects PMD Version: 7.28.0 (also 7.29.0-SNAPSHOT) Description: In the sample, The unqualified lookup merges the methods of the enclosing class into the scope of the inner class and shadows only override-equivalent ones: pmd/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/JavaResolvers.java Lines 291 to 329 in 5c9271c
The merger is installed in Found while working on #7136. Code Sample demonstrating the issue: class Comb { void m(Object o) { } class Inner { void m(long x) { } void t(Integer value) { m(value); } } } Steps to reproduce:
Running PMD through: Other (PmdAnalysis API) Activity
MetadataMetadataAssigneesLabelsin:symbol-tableAffects the symbol table code TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |