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] Loose invocation conversion accepts int to Long and null to int · Issue #7149 · pmd/pmd Closed Labels in:type-resolutionAffects the type resolution code Milestone DescriptionAffects PMD Version: 7.28.0 (also 7.29.0-SNAPSHOT) Description: With When one side is primitive, pmd/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/types/internal/infer/Infer.java Lines 998 to 1015 in 5c9271c
For a primitive argument the second step accepts The test "Two overloads with boxed types, widening required, ambiguous" in Found while working on #7136. Code Sample demonstrating the issue: class Loose { static void f(int x, Long y) { } static void f(long x, long y) { } void t(Integer value) { f(value, 2); } } 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. |