Coder Social home page Coder Social logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
[deleted comment]

from beanshell2.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024

Original comment by [email protected] on 20 Sep 2013 at 2:15

  • Changed state: Started

from beanshell2.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
Issue 97 has been merged into this issue.

Original comment by [email protected] on 10 Feb 2014 at 9:55

from beanshell2.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
Issue 98 has been merged into this issue.

Original comment by [email protected] on 10 Feb 2014 at 2:58

from beanshell2.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
Issue 99 has been merged into this issue.

Original comment by [email protected] on 20 Feb 2014 at 12:12

from beanshell2.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.