Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #5

Closed
nisrine opened this issue Mar 14, 2016 · 1 comment
Closed

Error #5

nisrine opened this issue Mar 14, 2016 · 1 comment

Comments

@nisrine
Copy link

nisrine commented Mar 14, 2016

Hi, When I run the compile.sh I get the following error

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

with the option -Xlint:unchecked I get

src/org/jakstab/ssl/parser/SSLPreprocessor.java:855: warning: [unchecked] unchecked call to putAll(Map<? extends K,? extends V>) as a member of the raw type Map
if (lhsIn.getVarMap() != null) newMap.putAll(lhsIn.getVarMap());
^
where K,V are type-variables:
K extends Object declared in interface Map
V extends Object declared in interface Map
src/org/jakstab/ssl/parser/SSLPreprocessor.java:856: warning: [unchecked] unchecked call to putAll(Map<? extends K,? extends V>) as a member of the raw type Map
if (rhsIn.getVarMap() != null) newMap.putAll(rhsIn.getVarMap());
^
where K,V are type-variables:
K extends Object declared in interface Map
V extends Object declared in interface Map
src/org/jakstab/ssl/parser/SSLPreprocessor.java:857: warning: [unchecked] unchecked conversion
tmp.add(new SSLInstructionName(lhsIn.getName() + rhsIn.getName(), newMap));
^
required: Map<String,AST>
found: Map
src/org/jakstab/ssl/parser/SSLLexer.java:47: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("m", this), new Integer(83));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:48: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("r", this), new Integer(82));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:49: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("LITTLE", this), new Integer(27));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:50: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("and", this), new Integer(91));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:51: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("BIG", this), new Integer(26));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:52: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("INTEGER", this), new Integer(10));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:53: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("FAST", this), new Integer(93));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:54: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("SHARES", this), new Integer(19));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:55: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("pow", this), new Integer(65));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:56: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("MEMSET", this), new Integer(80));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:57: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("rl", this), new Integer(40));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:58: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("COVERS", this), new Integer(17));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:59: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("rr", this), new Integer(41));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:60: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("FLOAT", this), new Integer(11));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:61: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("or", this), new Integer(92));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:62: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("rrc", this), new Integer(39));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:63: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("halt", this), new Integer(78));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:64: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("OPERAND", this), new Integer(21));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:65: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("rlc", this), new Integer(38));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:66: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("ENDIANNESS", this), new Integer(25));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
src/org/jakstab/ssl/parser/SSLLexer.java:67: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type Hashtable
literals.put(new ANTLRHashString("MEMCPY", this), new Integer(81));
^
where K,V are type-variables:
K extends Object declared in class Hashtable
V extends Object declared in class Hashtable
24 warnings

Any help please?

@jkinder
Copy link
Owner

jkinder commented Dec 10, 2019

This is not an error, just a warning due to non-type-safe conversions of generic types, for which the Java compiler can't guarantee an absence of runtime type errors. You can ignore it.

@jkinder jkinder closed this as completed Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants