StackOverflow Questions for Tag: jls

Laird Nelson
Laird Nelson

Reputation: 16238

Why does directSupertypes(TypeMirror) return an IntersectionType containing only two bounds when given Object[]'s array type?

Score: 0

Views: 55

Answers: 0

Read More
Javier
Javier

Reputation: 12398

Is rethrow in multi-catch formally defined?

Score: 9

Views: 214

Answers: 3

Read More
Kanad
Kanad

Reputation: 1108

What is the difference (or relation) between JLS, JSR and JEP?

Score: 50

Views: 13019

Answers: 1

Read More
Adrian
Adrian

Reputation: 3731

What's the difference between getVolatile and getAcquire?

Score: 10

Views: 4685

Answers: 2

Read More
Turkhan Badalov
Turkhan Badalov

Reputation: 924

What exactly is meant by "any bracket pairs that follow the formal parameter list" in JLS to determine a precise array type in the result of a method?

Score: 2

Views: 53

Answers: 1

Read More
Turkhan Badalov
Turkhan Badalov

Reputation: 924

What is the meaning of the following rule in JLS if another rule makes it redundant?

Score: 1

Views: 94

Answers: 2

Read More
Unearthly
Unearthly

Reputation: 169

Is the Happens-Before mechanism only hb(w, r)?

Score: 0

Views: 79

Answers: 2

Read More
skaffman
skaffman

Reputation: 403591

How to create a class literal of a known type: Class<List<String>>

Score: 75

Views: 129232

Answers: 9

Read More
theutonium.18
theutonium.18

Reputation: 525

Behaviour of == with Generic types

Score: 1

Views: 109

Answers: 1

Read More
user996142
user996142

Reputation: 2883

Is it safe to assume that everything happened in a constructor is visible to threads running methods after object initialization?

Score: 4

Views: 132

Answers: 2

Read More
TUX
TUX

Reputation: 139

Is the Java null type a subtype of all primitive types?

Score: 5

Views: 150

Answers: 0

Read More
M. Justin
M. Justin

Reputation: 21325

What do Java subpackages do, given that they don't provide a special access relationship?

Score: 1

Views: 2646

Answers: 1

Read More
MattDs17
MattDs17

Reputation: 421

Why can a caught Throwable be rethrown without declaring Throwable in the method's throws clause?

Score: 2

Views: 49

Answers: 0

Read More
JJJ
JJJ

Reputation: 13

Could "correctly synchronized" be applied to a class instead of the whole program?

Score: 1

Views: 134

Answers: 2

Read More
Laird Nelson
Laird Nelson

Reputation: 16238

A @Target-less annotation cannot be applied to a type parameter declaration in Java 19: why not?

Score: 3

Views: 250

Answers: 1

Read More
Microtribute
Microtribute

Reputation: 1062

`\u0027\n\u0027` equals `'\''` in Java?

Score: 11

Views: 863

Answers: 0

Read More
Johannes Kuhn
Johannes Kuhn

Reputation: 15172

Why can't the Java compiler infer Iterable<String> from the constraints "Iterable<? extends CharSequence> and () -> (Iterator<String>)"?

Score: 8

Views: 904

Answers: 2

Read More
mjn
mjn

Reputation: 36664

What is the explanation of null values in a cyclic dependency in final private enum fields?

Score: 10

Views: 401

Answers: 3

Read More
theutonium.18
theutonium.18

Reputation: 525

Resolving the constraint on Exception during type inference

Score: 2

Views: 72

Answers: 1

Read More
theutonium.18
theutonium.18

Reputation: 525

Method Invocation Type inference in JLS

Score: 1

Views: 42

Answers: 0

Read More
PreviousPage 2Next