<p>Es ne feledkezzunk meg a legfontosabb fixrol: korrigaltak az evszamot a copyright-ban :-)</p>
<p>Garami Gábor<br>
<a href="mailto:gabor.garami@hron.me">gabor.garami@hron.me</a><br>
Skype: hron84<br>
Tel: +36 20 235 9621</p>
<p>Sent from my T-Mobile G2<br>
Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.</p>
<div class="gmail_quote">2012.08.31. 11:44, "Auth Gábor (Confluence)" <<a href="mailto:wiki@javaforum.hu">wiki@javaforum.hu</a>> ezt írta:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#f0f0f0" marginheight="0" marginwidth="0" style="font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;width:100%;background-color:#f0f0f0">
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color:#f0f0f0">
<tbody>
<tr valign="middle">
<td style="font-size:13px;padding:20px;text-align:center">
<table cellspacing="0" cellpadding="0" border="0" style="font-family:Arial,FreeSans,Helvetica,sans-serif;width:100%">
<tbody>
<tr valign="top">
<td align="left" style="font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;background-color:#fff;border:1px solid #bbb;padding:20px;text-align:left">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td rowspan="2" style="font-size:13px;text-align:left;vertical-align:top;width:56px"> <img src="cid:avatar_d7177d5506ab05ef431ea35647b597a3" border="0" height="48" width="48"> </td>
<td valign="top" style="font-size:13px">
<div style="margin:0;padding:0 0 4px 0;color:#505050">
<a href="http://wiki.javaforum.hu/display/~auth.gabor" style="color:#326ca6;text-decoration:none;color:#326ca6;text-decoration:none" target="_blank">Auth Gábor</a> wrote a blog post:
</div> </td>
</tr>
<tr>
<td valign="top" style="font-size:13px"> <h2 style="font-size:16px;line-height:20px;min-height:20px;margin:0;padding:0"> <a href="http://wiki.javaforum.hu/pages/viewpage.action?pageId=28442797" style="color:#326ca6;text-decoration:none" target="_blank"> <img src="cid:blogpost-icon" alt="" style="border:0;padding:0 2px 0 0;text-align:left"> <strong style="font-size:16px;line-height:20px;vertical-align:top">A Java 7 sebezhetőség javítása</strong> </a> </h2>
</td>
</tr>
</tbody>
</table>
<div style="margin:8px 0 16px 0">
<div>
<p style="font-size:13px">Tegnap este megjelent a hírhedt Java 7 sebezhetőség javítása: <a href="http://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html" rel="nofollow" style="text-decoration:none;color:#326ca6;text-decoration:none" target="_blank">http://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html</a></p>
<p style="font-size:13px">Kis kutakodással a források között találunk egy érdekességet a <a href="http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/diff/dfffff29f870/src/share/classes/com/sun/beans/finder/ClassFinder.java" rel="nofollow" style="color:#326ca6;text-decoration:none" target="_blank">ClassFinder.java</a> osztály módosításai között:</p>
<div style="border-width:1px">
<div style="border-bottom-width:1px">
<b>ClassFinder.java</b>
</div>
<div>
<pre style="font-size:12px;font-size:13px">--- a/src/share/classes/com/sun/beans/finder/ClassFinder.java        Tue May 25 15:58:33 2010 -0700
+++ b/src/share/classes/com/sun/beans/finder/ClassFinder.java        Tue Jun 19 21:04:48 2012 +0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -23,6 +23,8 @@
* questions.
*/
package com.sun.beans.finder;
+
+import static sun.reflect.misc.ReflectUtil.checkPackageAccess;
/**
* This is utility class that provides {@code static} methods
@@ -54,6 +56,7 @@ public final class ClassFinder {
* @see Thread#getContextClassLoader()
*/
public static Class<?> findClass(String name) throws ClassNotFoundException {
+ checkPackageAccess(name);
try {
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (loader == null) {
@@ -94,6 +97,7 @@ public final class ClassFinder {
* @see Class#forName(String,boolean,ClassLoader)
*/
public static Class<?> findClass(String name, ClassLoader loader) throws ClassNotFoundException {
+ checkPackageAccess(name);
if (loader != null) {
try {
return Class.forName(name, false, loader);</pre>
</div>
</div>
<p style="font-size:13px">Egyszerűen a problémát okozó metódusok elé bekerült egy <em>checkPackageAccess</em> hívás a <a href="http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/00cd9dc3c2b5/src/share/classes/sun/reflect/misc/ReflectUtil.java" rel="nofollow" style="color:#326ca6;text-decoration:none" target="_blank">ReflectUtil</a> osztályból, amely leellenőrzi, hogy az adott osztály betölthető-e:</p>
<div style="border-width:1px">
<div style="border-bottom-width:1px">
<b>ReflectionUtil.java</b>
</div>
<div>
<pre style="font-size:12px;font-size:13px">public static void checkPackageAccess(String name) {
SecurityManager s = System.getSecurityManager();
if (s != null) {
String cname = name.replace('/', '.');
if (cname.startsWith("[")) {
int b = cname.lastIndexOf('[') + 2;
if (b > 1 && b < cname.length()) {
cname = cname.substring(b);
}
}
int i = cname.lastIndexOf('.');
if (i != -1) {
s.checkPackageAccess(cname.substring(0, i));
}
}
}</pre>
</div>
</div>
<p style="font-size:13px">Amint láthatjuk, a javítás június 19-én került a forrásokba, az előző Java 7 update 6 kiadás augusztus 14-én kerül ki, jó kérdés, hogy egy ismert hiba javítása miért nem került bele ez utóbbi verzióba, amikor elegendő idő jutott volna a tesztelésére és javítására...</p>
<hr>
<p style="font-size:13px">
<img width="0px" height="0px" src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/loading_mini.gif"> <img width="0px" height="0px" src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif"> </p>
<table style="color:#949494;font-size:11px;margin:4px 4px;overflow:auto">
<tbody>
<tr>
<td style="font-size:13px;vertical-align:middle;padding-top:6px">Your Rating:</td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px">Thanks for voting!</td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px;padding-top:3px;padding-right:8px"> <a href="http://wiki.javaforum.hu/plugins/rate/rating.action?decorator=none&displayFilter.includeCookies=true&displayFilter.includeUsers=true&ceoId=28442797&rating=1&redirect=true" alt="Pathetic" title="Pathetic" style="color:#326ca6;text-decoration:none" target="_blank"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" style="min-height:18px;width:15px;border-style:none;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"></a><a href="http://wiki.javaforum.hu/plugins/rate/rating.action?decorator=none&displayFilter.includeCookies=true&displayFilter.includeUsers=true&ceoId=28442797&rating=2&redirect=true" alt="Bad" title="Bad" style="color:#326ca6;text-decoration:none" target="_blank"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" style="min-height:18px;width:15px;border-style:none;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"></a><a href="http://wiki.javaforum.hu/plugins/rate/rating.action?decorator=none&displayFilter.includeCookies=true&displayFilter.includeUsers=true&ceoId=28442797&rating=3&redirect=true" alt="OK" title="OK" style="color:#326ca6;text-decoration:none" target="_blank"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" style="min-height:18px;width:15px;border-style:none;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"></a><a href="http://wiki.javaforum.hu/plugins/rate/rating.action?decorator=none&displayFilter.includeCookies=true&displayFilter.includeUsers=true&ceoId=28442797&rating=4&redirect=true" alt="Good" title="Good" style="color:#326ca6;text-decoration:none" target="_blank"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" style="min-height:18px;width:15px;border-style:none;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"></a><a href="http://wiki.javaforum.hu/plugins/rate/rating.action?decorator=none&displayFilter.includeCookies=true&displayFilter.includeUsers=true&ceoId=28442797&rating=5&redirect=true" alt="Outstanding!" title="Outstanding!" style="color:#326ca6;text-decoration:none" target="_blank"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" style="min-height:18px;width:15px;border-style:none;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"></a> </td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px;padding-top:3px"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" alt="Please Wait" title="Please Wait" style="min-height:18px;width:15px;min-height:18px;width:20px;background:transparent url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/loading_mini.gif') no-repeat scroll center left;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"></td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px;padding-right:8px">Please Wait</td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px;padding-left:8px">Results:</td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px;padding-top:3px"> <img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" alt="Pathetic" title="Pathetic" style="min-height:18px;width:15px;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" alt="Bad" title="Bad" style="min-height:18px;width:15px;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" alt="OK" title="OK" style="min-height:18px;width:15px;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" alt="Good" title="Good" style="min-height:18px;width:15px;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"><img src="http://wiki.javaforum.hu/download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/blank.gif" alt="Outstanding!" title="Outstanding!" style="min-height:18px;width:15px;background:url('http://download/resources/com.adaptavist.confluence.rate:rate/resources/themes/v2/gfx/rater.gif') no-repeat top left"> </td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px">0</td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px">rates</td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px"> </td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px">
<u></u><u></u></td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px"> </td>
<td style="font-size:13px;vertical-align:middle;padding-top:6px">
<div></div></td>
</tr>
</tbody>
</table>
<p style="font-size:13px"></p>
<p style="font-size:13px"> </p>
<div>
<span> Page viewed 1 times by 1 users since Aug 31, 2012 </span>
</div>
<div>
<table>
<tbody>
<tr>
<th style="font-size:13px;border-bottom:1px solid #69c;font-weight:bold;text-align:left">Name</th>
<th style="font-size:13px;border-bottom:1px solid #69c;font-weight:bold;text-align:left">Last viewed</th>
<th style="font-size:13px;border-bottom:1px solid #69c;font-weight:bold;text-align:left">Times viewed</th>
</tr>
<tr>
<td style="font-size:13px;border-bottom:1px solid #bbb;text-align:left;padding:4px 16px 4px 0"> <a href="http://wiki.javaforum.hu/display/~javalist" style="color:#326ca6;text-decoration:none" target="_blank">Javaforum List</a><br>
</td>
<td style="font-size:13px;border-bottom:1px solid #bbb;text-align:left;padding:4px 16px 4px 0">Aug 31, 2012 11:43</td>
<td style="font-size:13px;border-bottom:1px solid #bbb;text-align:left;padding:4px 16px 4px 0">1</td>
</tr>
</tbody>
</table>
</div>
<p style="font-size:13px"></p>
<p style="font-size:13px"> </p>
<p style="font-size:13px"> </p>
<p style="font-size:13px"> </p>
</div>
</div>
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="border-top:1px solid #bbb;color:#505050;margin:8px 0 0 0;padding:0;color:#505050">
<tbody>
<tr>
<td valign="top" style="font-size:13px;padding-top:8px;max-width:45%;text-align:left"> <span><a href="http://wiki.javaforum.hu/pages/viewpage.action?pageId=28442797" style="color:#326ca6;text-decoration:none" target="_blank">View Online</a> </span> </td>
<td width="50%" valign="top" style="font-size:13px;padding-top:8px;text-align:right"> <span><a href="http://wiki.javaforum.hu/users/editmyemailsettings.action" style="color:#326ca6;text-decoration:none" target="_blank">Manage Notifications</a> </span> <span style="color:#505050;padding:0 0.350em">·</span> <span><a href="http://wiki.javaforum.hu/users/viewmyemailsettings.action" style="color:#326ca6;text-decoration:none" target="_blank">Unsubscribe from all blog posts</a> </span> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table></td>
</tr>
<tr>
<td align="center" style="font-size:13px;padding:0 16px 32px 16px;margin:0"> <small style="font-size:11px"> This message was sent by <a style="color:#505050;font-size:11px;text-decoration:none;color:#326ca6;text-decoration:none;color:#505050;font-size:11px" href="http://www.atlassian.com/software/confluence" target="_blank">Atlassian Confluence</a> 4.2.5, the <a style="color:#505050;font-size:11px;text-decoration:none;color:#326ca6;text-decoration:none;color:#505050;font-size:11px" href="http://www.atlassian.com/software/confluence/tour/enterprise-wiki.jsp" target="_blank">Enterprise Wiki</a> </small> </td>
</tr>
</tbody>
</table>
</div>
<br>_______________________________________________<br>
Javalist mailing list<br>
<a href="mailto:Javalist@lists.javaforum.hu">Javalist@lists.javaforum.hu</a><br>
<a href="http://lists.javaforum.hu/mailman/listinfo/javalist" target="_blank">http://lists.javaforum.hu/mailman/listinfo/javalist</a><br>
<br></blockquote></div>