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] Numeric conditional with a char operand and an int constant is typed as int · Issue #7150 · pmd/pmd Closed Labels in:type-resolutionAffects the type resolution code Milestone DescriptionAffects PMD Version: 7.28.0 (also 7.29.0-SNAPSHOT) Description: In the sample, the second argument has type JLS 15.25.2 gives a numeric conditional expression the type Lines 103 to 105 in 5c9271c
The same lines type Found while working on #7136. Code Sample demonstrating the issue: class Cond { static void c(int x, int y) { } static void c(Integer x, char y) { } void t(Integer value, boolean flag) { c(value, flag ? 'a' : 1); } } Steps to reproduce:
Running PMD through: Other (PmdAnalysis API) Activity
MetadataMetadataAssigneesLabelsin:type-resolutionAffects the type resolution 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. |