-
Bug
-
Resolution: Won't Fix
-
P5
-
9, 9-repo-kulla
-
None
-
generic
-
generic
JShell API couldn't determine import info exactly with some spaces in the qualifier:
-> debug
-> import java . sql . * ;
import java . sql . * ;
Compiling: import java . sql . * ;
Kind: IMPORT -- import java.sql.*;
compileAndLoad [Unit(import java . sql . * ;)]
++setCompilationInfo() Snippet:ImportKey(import java . sql . * ;,SINGLE_TYPE_IMPORT_SUBKIND)#35-import java . sql . * ;
import java . sql . * ;
-- diags: []
setStatus() Snippet:ImportKey(import java . sql . * ;,SINGLE_TYPE_IMPORT_SUBKIND)#35-import java . sql . * ; - status: VALID
compileAndLoad ins = [Unit(import java . sql . * ;)] -- legit = [Unit(import java . sql . * ;)]
compileAndLoad [Unit(import java . sql . * ;)] -- deps: [] success: true
recordCompilation: Snippet:ImportKey(import java . sql . * ;,SINGLE_TYPE_IMPORT_SUBKIND)#35-import java . sql . * ; -- status VALID, unresolved []
It will be "Snippet:ImportKey(java.sql.*,TYPE_IMPORT_ON_DEMAND_SUBKIND)#35-import java . sql . * ; -- status VALID, unresolved []"
^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This issue affects the display of jshell tool.
-> import java.util.stream.IntStream; // determine as good
-> import java . util . stream . DoubleStream; // determine as bad
-> IntStream.of(1)
| Expression value is: java.util.stream.IntPipeline$Head@2437c6dc
| assigned to temporary variable $3 of type IntStream
-> DoubleStream.of(1)
| Expression value is: java.util.stream.DoublePipeline$Head@532760d8
| assigned to temporary variable $4 of type java.util.stream.DoubleStream
^^^^^^^^^^^^^^^^^
-> /vars
/vars
| IntStream $3 = java.util.stream.IntPipeline$Head@2437c6dc
| java.util.stream.DoubleStream $4 = java.util.stream.DoublePipeline$Head@532760d8
^^^^^^^^^^^^^^^^^
I don't know that what other is affected by this issue.
-> debug
-> import java . sql . * ;
import java . sql . * ;
Compiling: import java . sql . * ;
Kind: IMPORT -- import java.sql.*;
compileAndLoad [Unit(import java . sql . * ;)]
++setCompilationInfo() Snippet:ImportKey(import java . sql . * ;,SINGLE_TYPE_IMPORT_SUBKIND)#35-import java . sql . * ;
import java . sql . * ;
-- diags: []
setStatus() Snippet:ImportKey(import java . sql . * ;,SINGLE_TYPE_IMPORT_SUBKIND)#35-import java . sql . * ; - status: VALID
compileAndLoad ins = [Unit(import java . sql . * ;)] -- legit = [Unit(import java . sql . * ;)]
compileAndLoad [Unit(import java . sql . * ;)] -- deps: [] success: true
recordCompilation: Snippet:ImportKey(import java . sql . * ;,SINGLE_TYPE_IMPORT_SUBKIND)#35-import java . sql . * ; -- status VALID, unresolved []
It will be "Snippet:ImportKey(java.sql.*,TYPE_IMPORT_ON_DEMAND_SUBKIND)#35-import java . sql . * ; -- status VALID, unresolved []"
^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This issue affects the display of jshell tool.
-> import java.util.stream.IntStream; // determine as good
-> import java . util . stream . DoubleStream; // determine as bad
-> IntStream.of(1)
| Expression value is: java.util.stream.IntPipeline$Head@2437c6dc
| assigned to temporary variable $3 of type IntStream
-> DoubleStream.of(1)
| Expression value is: java.util.stream.DoublePipeline$Head@532760d8
| assigned to temporary variable $4 of type java.util.stream.DoubleStream
^^^^^^^^^^^^^^^^^
-> /vars
/vars
| IntStream $3 = java.util.stream.IntPipeline$Head@2437c6dc
| java.util.stream.DoubleStream $4 = java.util.stream.DoublePipeline$Head@532760d8
^^^^^^^^^^^^^^^^^
I don't know that what other is affected by this issue.