• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bug 30516 - Shift more than 32 bits dosent work on a long

 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This bug is still present in Java 8 and bugzilla says there is no one assigned to fix it. Originally posted in 2007.
Is there any way to put this "major" bug into Oracle's priority list for fixes?

Note that the bug description https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30516
does not fully define the defective variations on 64-bit shift and compare operations. They are acting as if they are partially on a 32 bit machine running 32 bit Java.

Is there a patch in the works?
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"major" bug?
 
Bartender
Posts: 1845
10
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Two things

1: The bug has been marked as "RESOLVED INVALID". That would indicate that it is not a bug. Read the comments on it.
2: You've linked a bug from GCC - the C Compiler. That ain't Java.

My guess is that there is no bug, hence no patch. And it has nothing to do with Java anyway, let alone Java 8
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agreed. Can you explain how an *invalid* bug that was reported with the gcc c compiler have anything to do with Java 8? It is an invalid bug. It is for a different language. etc. etc.


BTW, I just bit shifted a long variable of value one, thirty three times to the left (as in the signed part of the example). The printed result is correct.

Henry
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic