eclipse-jdt / eclipse-jdt/eclipse.jdt.core

The operator += is undefined for the argument type(s) CharSequence, String

Open
#1,811 3 comments 0 reactions 1 assignee Claimed by @srikanth-sankaran View on GitHub
bug compiler
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

The following code compiles with `javac`, but produces an error with jdt:
```java
public class JdtBug {
public static void main(String[] args) {
System.out.println("Hello, World!");
}

private static String convert(char[] seq) {
CharSequence res = "";
res += "";
return res.toString();
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.