-
Bug
-
Resolution: Fixed
-
P3
-
9
-
None
-
b15
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045104 | 8u25 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8043978 | 8u20 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b17 |
JDK-8052506 | emb-8u26 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b18 |
This issue was reported by Adrian Druzgalski ("amdruz") via twitter.
File: Foo.java
class Foo {
public Foo() {}
}
$ javac Foo.java
$ jjs -classpath .
jjs> var Foo = Java.type("Foo")
jjs> Foo
[JavaClass Foo]
jjs> var obj = new Foo();
<shell>:1 TypeError: Can not construct Foo with the passed arguments; they do not match any of its constructor signatures.
The error could say "Foo" is a non-public class and so an instance of that can't be created - rather than not being able to match a constructor.
File: Foo.java
class Foo {
public Foo() {}
}
$ javac Foo.java
$ jjs -classpath .
jjs> var Foo = Java.type("Foo")
jjs> Foo
[JavaClass Foo]
jjs> var obj = new Foo();
<shell>:1 TypeError: Can not construct Foo with the passed arguments; they do not match any of its constructor signatures.
The error could say "Foo" is a non-public class and so an instance of that can't be created - rather than not being able to match a constructor.
- backported by
-
JDK-8043978 TypeError when attemping to create an instance of non-public class could be better
-
- Resolved
-
-
JDK-8045104 TypeError when attemping to create an instance of non-public class could be better
-
- Resolved
-
-
JDK-8052506 TypeError when attemping to create an instance of non-public class could be better
-
- Resolved
-