Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Oracle: 'We Have to Fix Java'
eSecurity Planet ^ | 28 January 2013 | Sean Michael Kerner

Posted on 01/29/2013 7:04:53 AM PST by ShadowAce

click here to read article


Navigation: use the links below to view more comments.
first 1-2021-37 next last

1 posted on 01/29/2013 7:04:56 AM PST by ShadowAce
[ Post Reply | Private Reply | View Replies]

To: rdb3; Calvinist_Dark_Lord; Salo; JosephW; Only1choice____Freedom; amigatec; stylin_geek; ...

2 posted on 01/29/2013 7:05:52 AM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

To: AdmSmith; Big Giant Head; grey_whiskers; Brandybux; dfwright; Bikkuri; Dacula; BuddaBudd; mbj; ...

3 posted on 01/29/2013 7:06:13 AM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

I believe that allowing the use of reflection in Java was an unwise decision. It gives programmers tremendous power, but these classes and methods are much too dangerous in the hands of malicious programmers. At the very least, I would disable the reflection classes and methods in an applet context.


4 posted on 01/29/2013 7:17:30 AM PST by proxy_user
[ Post Reply | Private Reply | To 1 | View Replies]

To: proxy_user

I no longer program for a living—can you explain what a reflection class is? I think I know, based on the name alone, but would appreciate an explanation.


5 posted on 01/29/2013 7:20:27 AM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 4 | View Replies]

To: ShadowAce

A little cut’n’paste:

Uses of Reflection
Reflection is commonly used by programs which require the ability to examine or modify the runtime behavior of applications running in the Java virtual machine. This is a relatively advanced feature and should be used only by developers who have a strong grasp of the fundamentals of the language. With that caveat in mind, reflection is a powerful technique and can enable applications to perform operations which would otherwise be impossible.

Extensibility Features
An application may make use of external, user-defined classes by creating instances of extensibility objects using their fully-qualified names.
Class Browsers and Visual Development Environments
A class browser needs to be able to enumerate the members of classes. Visual development environments can benefit from making use of type information available in reflection to aid the developer in writing correct code.
Debuggers and Test Tools
Debuggers need to be able to examine private members on classes. Test harnesses can make use of reflection to systematically call a discoverable set APIs defined on a class, to insure a high level of code coverage in a test suite.
Drawbacks of Reflection
Reflection is powerful, but should not be used indiscriminately. If it is possible to perform an operation without using reflection, then it is preferable to avoid using it. The following concerns should be kept in mind when accessing code via reflection.

Performance Overhead
Because reflection involves types that are dynamically resolved, certain Java virtual machine optimizations can not be performed. Consequently, reflective operations have slower performance than their non-reflective counterparts, and should be avoided in sections of code which are called frequently in performance-sensitive applications.
Security Restrictions
Reflection requires a runtime permission which may not be present when running under a security manager. This is in an important consideration for code which has to run in a restricted security context, such as in an Applet.
Exposure of Internals
Since reflection allows code to perform operations that would be illegal in non-reflective code, such as accessing private fields and methods, the use of reflection can result in unexpected side-effects, which may render code dysfunctional and may destroy portability. Reflective code breaks abstractions and therefore may change behavior with upgrades of the platform.


6 posted on 01/29/2013 7:23:27 AM PST by proxy_user
[ Post Reply | Private Reply | To 5 | View Replies]

To: proxy_user
Someone once explained RAM to me thusly;

Take a desk you want to work on and clear what you need to do that work
If you learn you need more space after doing what you've done so far, you take that phase of the projecrt off the desk (clearing the space again), go to the shelf you need to get the materiels you need to perform phase two and sit down to work on a clear desk.

THAT works for me (if it's correct)

Can you simplify what you just said for us non techies ?

7 posted on 01/29/2013 7:23:56 AM PST by knarf (I say things that are true ... I have no proof ... but they're true)
[ Post Reply | Private Reply | To 4 | View Replies]

To: knarf

Basically, reflection allows self-modifying code.

All these security exploits have used reflection in sneaky ways to get access to classes and data they’re not supposed to have access to.


8 posted on 01/29/2013 7:30:49 AM PST by proxy_user
[ Post Reply | Private Reply | To 7 | View Replies]

To: proxy_user

I work a lot with server-side Java, but there is NO WAY I would advocate using Java in the browser.


9 posted on 01/29/2013 7:31:16 AM PST by dfwgator
[ Post Reply | Private Reply | To 4 | View Replies]

To: ShadowAce

Yes, and I hope they do it soon. I am tired of Retina crapping all over it.


10 posted on 01/29/2013 7:32:00 AM PST by bmwcyle (People who do not study history are destine to believe really ignorant statements.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: dfwgator
...but there is NO WAY I would advocate using Java in the browser.

We use it internally here. We use HP servers with ILO licensed, and we access the ILO with JVM or .NET.

11 posted on 01/29/2013 7:34:35 AM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 9 | View Replies]

To: proxy_user

But ... what is reflection ?


12 posted on 01/29/2013 7:47:17 AM PST by knarf (I say things that are true ... I have no proof ... but they're true)
[ Post Reply | Private Reply | To 8 | View Replies]

To: knarf; proxy_user; ShadowAce

Perhaps an analogy will help.

***
Scenario: Pointy-Headed Boss (PHB) says to Dilbert: “I need an employee to do ImpossibleTask. And no, you may not hire a new employee from outside.” Dilbert frantically searches the list of employees that he manages for one with the capability of handling ImpossibleTask, and tells that employee to perform ImpossibleTask on PHB’s behalf.
***

Dilbert is the “reflection class” for PHB in this scenario. He can “see into” the capabilities of the employees that he manages and “reflect” those capabilities back to PHB.

PHB doesn’t (have to) know (or care) which employee actually performs ImpossibleTask, as long as Dilbert finds one that does.

In sum, a “reflection” class has the capability of inspecting the attributes (data) and behaviors (actions) of another class and providing that information to another class that requests it.


13 posted on 01/29/2013 7:50:36 AM PST by ShorelineMike (Constituo, ergo sum.)
[ Post Reply | Private Reply | To 7 | View Replies]

To: ShadowAce

This is such a “Duh” headline. If Java is not locked down somehow for internet transmission and use, it will be relegated to the dustbin of history. People are now associating it with big trouble under all circumstances, despite it really having problems only when being downloaded by websites. It is too technical for most people to realize that Java programs that they have been using for years and are resident on their computers are not affected by the malware exploits.


14 posted on 01/29/2013 7:58:51 AM PST by AFPhys ((Praying for our troops, our citizens, that the Bible and Freedom become basis of the US law again))
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce
"Java Reflection makes it possible to inspect classes, interfaces, fields and methods at runtime, without knowing the names of the classes, methods etc. at compile time. It is also possible to instantiate new objects, invoke methods and get/set field values using reflection."

Java Reflection Tutorial

15 posted on 01/29/2013 7:59:27 AM PST by central_va ( I won't be reconstructed and I do not give a damn.)
[ Post Reply | Private Reply | To 5 | View Replies]

To: ShorelineMike

Here is the problem with reflection:

field.setAccessible(true);


16 posted on 01/29/2013 8:00:32 AM PST by dfwgator
[ Post Reply | Private Reply | To 13 | View Replies]

To: ShadowAce

Top management never wants to admit it’s wrong.

Besides, I don’t like Larry Ellison.


17 posted on 01/29/2013 8:00:46 AM PST by I want the USA back
[ Post Reply | Private Reply | To 1 | View Replies]

To: central_va

C# also uses Reflection.


18 posted on 01/29/2013 8:02:16 AM PST by dfwgator
[ Post Reply | Private Reply | To 15 | View Replies]

To: ShorelineMike

So .. an outsider (hacker) can be called by dilbert or the hacker IS dilbert?


19 posted on 01/29/2013 8:04:19 AM PST by knarf (I say things that are true ... I have no proof ... but they're true)
[ Post Reply | Private Reply | To 13 | View Replies]

To: knarf

20 posted on 01/29/2013 8:05:48 AM PST by JoeProBono (A closed mouth gathers no feet - Mater tua caligas exercitus gerit ;-{)
[ Post Reply | Private Reply | To 12 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-37 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson