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

Epypj #54

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Merge branch 'master' into epypj

5c70502
Select commit
Loading
Failed to load commit list.
Open

Epypj #54

Merge branch 'master' into epypj
5c70502
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL failed Feb 10, 2024 in 2s

1 configuration not found

Warning: Code scanning may not have found all the alerts introduced by this pull request, because 1 configuration present on refs/heads/master was not found:

Actions workflow (codeql.yml)

  • ❓  /language:cpp

New alerts in code changed by this pull request

  • 2 errors
  • 20 warnings
  • 13 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 154 in native/java/jpype.jvm.asm/org/jpype/asm/Attribute.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'classWriter' is never used.

Check notice on line 155 in native/java/jpype.jvm.asm/org/jpype/asm/Attribute.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'code' is never used.

Check notice on line 156 in native/java/jpype.jvm.asm/org/jpype/asm/Attribute.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'codeLength' is never used.

Check notice on line 157 in native/java/jpype.jvm.asm/org/jpype/asm/Attribute.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'maxStack' is never used.

Check notice on line 158 in native/java/jpype.jvm.asm/org/jpype/asm/Attribute.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'maxLocals' is never used.

Check notice on line 125 in native/java/jpype.jvm.asm/org/jpype/asm/Attribute.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'charBuffer' is never used.

Check notice on line 126 in native/java/jpype.jvm.asm/org/jpype/asm/Attribute.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'codeAttributeOffset' is never used.

Check notice on line 127 in native/java/jpype.jvm.asm/org/jpype/asm/Attribute.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'labels' is never used.

Check notice on line 41 in native/java/jpype.python/org/jpype/python/Scope.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'name' is never used.

Check notice on line 30 in native/java/jpype.core/org/jpype/JPypeSignal.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Class.newInstance
should be avoided because it has been deprecated.

Check notice on line 434 in native/java/jpype.jvm.asm/org/jpype/asm/MethodVisitor.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
MethodVisitor.visitMethodInsn
should be avoided because it has been deprecated.

Check notice on line 197 in native/java/jpype.jvm.asm/org/jpype/asm/AnnotationWriter.java

See this annotation in the file changed.

Code scanning / CodeQL

Chain of 'instanceof' tests Note

This if block performs a chain of 14 type tests - consider alternatives, e.g. polymorphism or the visitor pattern.

Check notice on line 457 in native/java/jpype.jvm.asm/org/jpype/asm/SymbolTable.java

See this annotation in the file changed.

Code scanning / CodeQL

Chain of 'instanceof' tests Note

This if block performs a chain of 12 type tests - consider alternatives, e.g. polymorphism or the visitor pattern.

Check warning on line 52 in native/java/jpype.python/org/jpype/python/PyTypeManager.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless null check Warning

This check is useless.
instance
cannot be null at this check, since
new PyTypeManager(...)
always is non-null.

Check failure on line 53 in native/java/jpype.python/org/jpype/python/internal/PyBaseObject.java

See this annotation in the file changed.

Code scanning / CodeQL

Equals method does not inspect argument type Error

This 'equals()' method does not check argument type.

Check failure on line 653 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Array index out of bounds Error

This array access might be out of bounds, as the index might be equal to the array length.

Check warning on line 1084 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.

Check warning on line 1093 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.

Check warning on line 733 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.

Check warning on line 749 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.

Check warning on line 752 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.

Check warning on line 755 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.

Check warning on line 758 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.
Variable
symbolTable
may be null at this access because of
this
null argument.

Check warning on line 1019 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.

Check warning on line 1022 in native/java/jpype.jvm.asm/org/jpype/asm/Frame.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.
Variable
argSymbol
may be null at this access because of
this
null argument.