Skip to content

Obfuscate bsh.Primitive from script engine#686

Merged
nickl- merged 1 commit into
beanshell:masterfrom
nickl-:obfuscate-primitive
Jan 3, 2023
Merged

Obfuscate bsh.Primitive from script engine#686
nickl- merged 1 commit into
beanshell:masterfrom
nickl-:obfuscate-primitive

Conversation

@nickl-

@nickl- nickl- commented Jan 3, 2023

Copy link
Copy Markdown
Member

Fixes #498 NPE in TargetError with null cause.
Fixes #322 /*** ***/ is not a formal comment
Fixes #536 added 5 new operators ??, ??=, ?:, ?., and <=>
Fixes #609 obfuscate bsh.Primitive to expose math methods
Fixes #684 can now cast to type Number from primitive
Fixes #663 identifier defined array dimensions for parameters
Fixes #651 avoid NPE on package access property and use null
Support for var keyword tested, appears to work with nothing added.
Added Types get primitive type and isNumeric from class
Auto narrowing and widening of primitives cast added
Detect method signature of widening to BigInteger and BigDecimal as assignable and more specific then Object

I am sure there are a few more things to note which I can't remember now off hand

@nickl- nickl- force-pushed the obfuscate-primitive branch from fe920d9 to c186cd1 Compare January 3, 2023 19:30
Fixes beanshell#498 NPE in TargetError with null cause.
Fixes beanshell#322 /*** ***/ is not a formal comment
Fixes beanshell#536 added 5 new operators ??, ??=, ?:, ?., and <=>
Fixes beanshell#609 obfuscate bsh.Primitive to expose math methods
Fixes beanshell#684 can now cast to type Number from primitive
Fixes beanshell#663 identifier defined array dimensions for parameters
Fixes beanshell#651 avoid NPE on package access property and use null
Support for var keyword tested, appears to work with nothing added.
Added Types get primitive type and isNumeric from class
Auto narrowing and widening of primitives cast added
Detect method signature of widening to BigInteger and BigDecimal as assignable and more specific then Object
@nickl- nickl- force-pushed the obfuscate-primitive branch from c186cd1 to 67a7c65 Compare January 3, 2023 20:05
@codecov

codecov Bot commented Jan 3, 2023

Copy link
Copy Markdown

Codecov Report

Merging #686 (67a7c65) into master (270dd71) will increase coverage by 0.66%.
The diff coverage is 97.70%.

@@             Coverage Diff              @@
##             master     #686      +/-   ##
============================================
+ Coverage     71.40%   72.07%   +0.66%     
- Complexity     2800     2867      +67     
============================================
  Files           106      107       +1     
  Lines          9152     9198      +46     
  Branches       1779     1794      +15     
============================================
+ Hits           6535     6629      +94     
+ Misses         2204     2174      -30     
+ Partials        413      395      -18     
Flag Coverage Δ
unittests 72.07% <97.70%> (+0.66%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/main/java/bsh/Types.java 76.28% <95.45%> (+0.64%) ⬆️
src/main/java/bsh/Reflect.java 82.45% <95.83%> (+0.99%) ⬆️
src/main/java/bsh/BSHAssignment.java 90.62% <100.00%> (+0.79%) ⬆️
src/main/java/bsh/BSHBinaryExpression.java 91.95% <100.00%> (+0.38%) ⬆️
src/main/java/bsh/BSHFormalParameter.java 93.33% <100.00%> (+0.47%) ⬆️
src/main/java/bsh/BSHMethodInvocation.java 90.47% <100.00%> (-2.12%) ⬇️
src/main/java/bsh/BSHPrimarySuffix.java 84.21% <100.00%> (+2.11%) ⬆️
src/main/java/bsh/BSHType.java 82.08% <100.00%> (+1.49%) ⬆️
src/main/java/bsh/BSHTypedVariableDeclaration.java 100.00% <100.00%> (+1.96%) ⬆️
src/main/java/bsh/BshMethod.java 73.91% <100.00%> (ø)
... and 16 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nickl- nickl- merged commit 50d09ba into beanshell:master Jan 3, 2023
pgiffuni pushed a commit to pgiffuni/beanshell that referenced this pull request Jan 8, 2024
Obfuscate bsh.Primitive from script engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant