Comments (9)
[deleted comment]
from beanshell2.
Original comment by [email protected]
on 20 Sep 2013 at 2:15
- Changed state: Started
from beanshell2.
There are more of these calls, I (or tests) didn't spot them because of legacy
code which automagically set "accessibility" to "true" if a class is generated
from beanshell code.
This has been removed with rev#135 (in v2.1 branch). This revealed some more
flaws. The major drawback of the change is compatibility - you can achieve the
old behaviour if you explictly switch "accessibility" on. But legacy code
couldn't be changed :(
One workaround is preserving the old behaviour for constructors: If the script
defines a class with a protected constructor creating an instance would fail
now. This is one use case I found by googling (and the only one - because of
the lack of documentation for class creation in beanshell - surly because of
the pure implementation). So the checkin contains a "fix" for this by setting
the constructor(s) public - if "accessibility" is off, which is the default now.
#$%& wtf, great mess..
Original comment by [email protected]
on 27 Sep 2013 at 3:33
from beanshell2.
One more thing: Initializing final fields from constructor failed, I can't see
if this is also caused by driving with seat belts now ("accessibility" =
false). Could be since setting final fields is allowed in the old mode. Fixed
also by r135, change is
http://code.google.com/p/beanshell2/source/diff?spec=svn135&r=135&format=side&pa
th=/branches/v2.1/src/bsh/Variable.java
Original comment by [email protected]
on 27 Sep 2013 at 3:42
from beanshell2.
Issue 97 has been merged into this issue.
Original comment by [email protected]
on 10 Feb 2014 at 9:55
from beanshell2.
Issue 98 has been merged into this issue.
Original comment by [email protected]
on 10 Feb 2014 at 2:58
from beanshell2.
Issue 99 has been merged into this issue.
Original comment by [email protected]
on 20 Feb 2014 at 12:12
from beanshell2.
This change makes the accessibility.bsh fail in line 87 when accessing a static
public member (in Java 1.6.0_45 ) ( mypackage.Accessibility1.supersfield4 )
Original comment by [email protected]
on 4 Jan 2015 at 7:00
from beanshell2.
Is this really because of the changes here? There is a comment over the
mentioned line: "why is this broken?".
Sounds for me like this was broken before (the script was never changed after
the initial fork).
Original comment by [email protected]
on 12 Jan 2015 at 8:33
from beanshell2.
Related Issues (20)
- A way to stop an Interpreter or at least see if it is running
- can't access public fields HOT 6
- improvement suggestion: make a built-in read-eval-print loop HOT 1
- Bean sheel extensions: printing live objects
- java.lang.VerifyError: (class: BshTestExtended, method: _bshSuperexecute signature: (J)J) Register 1 contains wrong type
- Mave HOT 2
- Reflect.getIndex() throws ArrayIndexOutOfBoundsException HOT 2
- JConsole improvement ideas + patch
- Outdated Splash Image for BeanShell Desktop
- Missing Clipboard Popup in BeanShell Desktop Workspace Editor
- Parser Error When Omitting Semi-colons in Blocks HOT 1
- Anonymous inner classes and referencing member variables
- Finally block is not executed if an exception is thrown in the previous catch block HOT 4
- Support for "final" inside method parameters HOT 1
- Parser Error for binary number
- Unable to call inherited methods HOT 1
- version 2.1.7: can not access a member of class with modifiers "public final" HOT 3
- Method size() not found on unmodifiable list HOT 2
- Cannot access methods of inner classes in Beanshell 2.1.7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beanshell2.